在Wordpress中编辑Solr schema.xml

在Wordpress中编辑Solr schema.xml,wordpress,solr,schema,Wordpress,Solr,Schema,我正在使用以下插件将Solr整合到Wordpress中: default schema.xml()似乎没有正确索引author字段——搜索作者姓名时没有结果,但搜索帖子名时确实会得到结果 架构中有一个“作者”字段: field name="author" type="string" indexed="true" stored="true" 但它似乎不正确,因为我在搜索时没有得到任何结果 那么,我如何纠正这一点并确保作者被正确索引?将author字段的type属性更改为更适合搜索的属性,如tex

我正在使用以下插件将Solr整合到Wordpress中:

default schema.xml()似乎没有正确索引author字段——搜索作者姓名时没有结果,但搜索帖子名时确实会得到结果

架构中有一个“作者”字段:

field name="author" type="string" indexed="true" stored="true"
但它似乎不正确,因为我在搜索时没有得到任何结果


那么,我如何纠正这一点并确保作者被正确索引?

将author字段的
type
属性更改为更适合搜索的属性,如
text
类型:

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