Solr管理员查询未显示集合模式中可用的所有属性。

huangapple go评论44阅读模式
英文:

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 -

Solr管理员查询未显示集合模式中可用的所有属性。

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.

Solr管理员查询未显示集合模式中可用的所有属性。

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

文本字段有时会被索引(以便可以搜索其中的值),但不会被存储。当它们未被存储时,您无法在查询中检索它们的值,这看起来很像这里所发生的情况。

您可以在模式屏幕中检查相关字段的具体信息。对于一个已存储的字段,您应该会看到类似于这样的内容:

Solr管理员查询未显示集合模式中可用的所有属性。

而对于一个未存储的字段,您会注意到“存储”列是缺失的:

Solr管理员查询未显示集合模式中可用的所有属性。

英文:

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:

Solr管理员查询未显示集合模式中可用的所有属性。

whereas for a not-stored field you'll notice that "stored" column is missing:

Solr管理员查询未显示集合模式中可用的所有属性。

huangapple
  • 本文由 发表于 2023年6月8日 20:30:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/76431876.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定