英文:
Solr Admin Query doesn't show all the attributes available in the collection schema
问题
我有一个Solr 8.4.1的集合,其中的属性如下所示:
但是,当我对该集合运行查询时,它只返回非常少的属性,如下所示。我已经为10000多条记录运行了此查询,将*传递给fl值,但它从未显示集合中任何记录的其他属性。
如果有人能够给我一些关于为什么在运行查询时大多数属性被丢弃的想法,我将不胜感激,尽管模式包含这些属性,其中一些属性也应该被填充。
注意:大多数未被检索的字段具有字段类型 - org.apache.solr.schema.TextField。
英文:
I have a solr 8.4.1 collection that has the attributes like below -
But when I run a query against that collection, it brings back just very few attributes as shown below. I have run this query for 10000s of records also, passing in * in the fl value, but it never shows the other attributes for any of the records in the collection.
Would be grateful if someone can give me some idea as to why most of the attributes getting dropped while the query is run, even though the schema contains those attributes and some of it should be populated as well.
NOTE: Most of the fields that are not getting retrieved have the field type - org.apache.solr.schema.TextField
答案1
得分: 1
文本字段有时会被索引(以便可以搜索其中的值),但不会被存储。当它们未被存储时,您无法在查询中检索它们的值,这看起来很像这里所发生的情况。
您可以在模式屏幕中检查相关字段的具体信息。对于一个已存储的字段,您应该会看到类似于这样的内容:
而对于一个未存储的字段,您会注意到“存储”列是缺失的:
英文:
Text fields are sometimes indexed (so you can search the values inside them) but not stored. When they are not stored you cannot retrieve their values in a query, which looks a lot like what's going on here.
You can check the specifics of the fields in question in the Schema screen. For an stored field you should see something like this:
whereas for a not-stored field you'll notice that "stored" column is missing:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论