首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Solr8 8- stored=false字段显示在响应中。

Solr8 8- stored=false字段显示在响应中。
EN

Stack Overflow用户
提问于 2021-04-19 21:24:45
回答 1查看 259关注 0票数 1

我有设置为"stored=false“的字段,它们仍然显示在响应中。我检查了"useDocValuesAsStored“设置为false。知道为什么这些字段会出现在响应中吗。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-04-26 08:23:26

我是solr的新手,但是当我检查schema.xml文件时,我发现,所有的fieldTypes几乎都是DocValues (docValues="true")。

代码语言:javascript
复制
<fieldType name="pint" class="solr.IntPointField" docValues="true"/>
<fieldType name="pints" class="solr.IntPointField" docValues="true" multiValued="true"/>
<fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true"/>
<fieldType name="strings" class="solr.StrField" sortMissingLast="true" docValues="true" multiValued="true"/>
<fieldType name="plong" class="solr.LongPointField" docValues="true"/>
<fieldType name="plongs" class="solr.LongPointField" docValues="true" multiValued="true"/>

您可以在管理UI中的Schema中检查它。因此,如果您不想在结果集中检索,请将docValues设置为false。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67169526

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档