solrsolr8

Solr8- stored=false fields show up in the response


I have fields that set up as "stored=false", still they are showing up in the response. I checked "useDocValuesAsStored" is set to false. Any idea why these fields showing up in the response.


Solution

  • I am new in solr but when I checked the schema.xml file, I saw that, all fieldTypes are almost DocValues (docValues="true")

    <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"/>
    

    you can check it in Schema in Admin UI. so set docValues to false if you dont want to retrive in result set.