lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maria Muslea <maria.mus...@gmail.com>
Subject Re: field with stored="false" is still stored
Date Tue, 18 Apr 2017 03:19:06 GMT
Thank you so much. This is the setting that I was missing. It is working as
expected now.

Maria

On Mon, Apr 17, 2017 at 8:10 PM, Shawn Heisey <apache@elyograg.org> wrote:

> On 4/17/2017 4:40 PM, Maria Muslea wrote:
> > I just upgraded to SOLR 6.4.1 from SOLR 4.10, and am having trouble with
> > fields set as stored="false".
> >
> > I edited solrconfig.xml according to the documentation, so I could edit
> the schema using schema api.
> >
> > <schemaFactory class="ManagedIndexSchemaFactory">
> >    <bool name="mutable">true</bool>
> >    <str name="managedSchemaResourceName">managed-schema</str>
> >  </schemaFactory>
> >
> > I added a field using "Add Field" from the Schema GUI, and the field
> does appear in managed-schema as:
> >
> > <field name="concept" type="string" indexed="true" stored="false"/>
>
> In newer versions of Solr, certain field classes have docValues enabled
> by default.  I think StrField is one of them.  I tried to look at the
> code to verify this, but was unable to figure it out on short notice.
>
> Fields with docValues enabled will show up in search results even if the
> field is not stored, unless you disable the
> |useDocValuesAsStored|setting on the field.
>
> Thanks,
> Shawn
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message