簡體   English   中英

在Wordpress中編輯Solr schema.xml

[英]Editing Solr schema.xml in Wordpress

我正在使用以下插件將Solr合並到Wordpress中: https : //github.com/mattweber/solr-for-wordpress

默認的schema.xml( https://github.com/mattweber/solr-for-wordpress/blob/master/schema.xml )似乎無法正確索引作者字段-搜索時沒有任何結果作者名,但是當我搜索帖子名時,我確實會得到結果。

模式中有一個用於作者的字段:

field name="author" type="string" indexed="true" stored="true"

但是由於我搜索時沒有結果,因此這似乎是不正確的。

那么,如何糾正這個問題並確保作者被正確索引?

將作者字段的type屬性更改為更適合搜索的內容,例如text類型:

<field name="author" type="text" indexed="true" stored="true" />

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM