简体   繁体   English

Solr字段在查询结果中不可见

[英]Solr field not visible in query results

I have added a new field in the schemas: 我在模式中添加了一个新字段:

<field indexed="false" stored="true" docValues="true" sortMissingLast="true" name="RankScoreXXX" type="int" />

After all the indexing operations are done, in the solr admin panel while performing queries I do not see that field in any results where the value is actually 0. Results that contain a > 0 value in this specific field are shown. 在完成所有索引操作之后,在solr管理面板中执行查询时,我看不到任何该值实际上为0的结果中的字段。该特定字段中包含> 0值的结果被显示。

By using this parameter I can see that none result does not contain this value fq: -RankScoreXXX: [* TO *] .Also, I can sort results by this specific field. 通过使用此参数,我可以看到没有结果不包含以下值fq:-RankScoreXXX:[* TO *]。此外,我可以按此特定字段对结果进行排序。

I just do not understand why results with RankScoreXXX = 0 are not visible in the solr panel admin for given results. 我只是不明白为什么在给定结果的solr面板管理员中看不到RankScoreXXX = 0的结果。

Am I missing something? 我想念什么吗? Thanks. 谢谢。

I have ran into this scenario a few times. 我已经遇到过几次这种情况。 Let me tell you what each one was: 让我告诉你每个人是什么:

  1. Field was added but reindexing did not take place for all documents, only new ones. 添加了字段,但并未为所有文档(只有新文档)进行重新索引编制。 This is not your case as you reindexed. 重新索引时,情况并非如此。
  2. Request handler was not updated in solrconfig.xml. solrconfig.xml中的请求处理程序未更新。 In this case the person added the field and had configured the request handler to return a specific number of fields using fl. 在这种情况下,人员添加了字段并配置了请求处理程序以使用fl返回特定数量的字段。 The field was not in the list. 该字段不在列表中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM