Lucene Solr在新字段上没有搜索结果

Lucene Solr在新字段上没有搜索结果,lucene,solr,indexing,Lucene,Solr,Indexing,我向schema.xml添加了一个多值字段,如下所示: <field name="fieldsharedsite" type="string" indexed="true" stored="false" multiValued="true" /> <field name="fieldsharedchannelnew" type="string" indexed="true" stored="false" multiValued="true" /> 对于fieldsh

我向schema.xml添加了一个多值字段,如下所示:

<field name="fieldsharedsite" type="string" indexed="true" stored="false" multiValued="true" /> 
<field name="fieldsharedchannelnew" type="string" indexed="true" stored="false" multiValued="true" /> 
对于fieldsharedchannnelnew,我有:


在添加FieldSharedChannel新索引时,我错过了哪一步?为什么我搜索时它不返回任何结果?

字段fieldsharedchannnelnew的架构浏览器结果并不表示它已填充到文档中。 文档信息缺失,fieldsharedsite显示它存在于902个文档中

Field Type: string
Properties:  Indexed, Multivalued, Omit Norms, Sort Missing Last
Index Analyzer: org.apache.solr.schema.FieldType$DefaultAnalyzer 
Query Analyzer: org.apache.solr.schema.FieldType$DefaultAnalyzer
搜索文档内容时,会得到以下结果:

<fieldsharedsite><item key="0">33</item></fieldsharedsite> 
<fieldsharedchannelnew><item key="0">52</item></fieldsharedchannelnew> 
<fieldsharedsite><item key="0">33</item></fieldsharedsite> 
<fieldsharedchannelnew><item key="0">52</item></fieldsharedchannelnew>
由于未存储字段,因此字段不会随结果一起返回。 这是你提供给Solr的数据吗?它们是如何出现在结果中的? 您是按原样使用值还是要使用copyfield

您可以将字段标记为已存储,并对内容重新编制索引,检查它们是否与结果一起返回,架构浏览器显示文档信息。
如果是这样,您也应该能够搜索它。

以下是solr在搜索文档时返回的内容:33 52以便我可以看到索引与结果一起返回。但是当我搜索它时,fieldsharedcahnnelnew:52我没有得到文档。如果我做了fieldsharedsite:33,我就明白了。两个索引都没有存储在schema.xml中:为什么文档信息会丢失?文档信息显示了有多少文档填充了字段,即使它没有存储,在上面的情况下,这并不表示字段没有任何值。
Field Type: string
Properties:  Indexed, Multivalued, Omit Norms, Sort Missing Last
Index Analyzer: org.apache.solr.schema.FieldType$DefaultAnalyzer 
Query Analyzer: org.apache.solr.schema.FieldType$DefaultAnalyzer
<fieldsharedsite><item key="0">33</item></fieldsharedsite> 
<fieldsharedchannelnew><item key="0">52</item></fieldsharedchannelnew>