You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Reinhard Budenstecher <ra...@maills.de> on 2016/11/04 12:29:09 UTC

Fields with stored=false are stored though

I'm using Solr 6.2.1. Schema is static (schema.xml) and some fields look like

  <field name="attributes_size" type="ints" indexed="true" stored="false"/>
  <field name="attributes_price" type="ints" indexed="true" stored="false"/>

and so on. But when querying in web browser GUI I can see, that these fields are stored though and values are returned on query. How can this happen?
Looking into web schema browser I can see fields with following attributes:

Field: attributes_size
Field-Type:org.apache.solr.schema.TrieIntField
Flags:	Indexed	DocValues	Multivalued	Omit Norms	Omit Term Frequencies & Positions
Properties	\u221a	\u221a	\u221a	\u221a	\u221a

Field: attributes_price
Field-Type:org.apache.solr.schema.TrieIntField
Flags:	Indexed	DocValues	Multivalued	Omit Norms	Omit Term Frequencies & Positions
Properties	\u221a	\u221a	\u221a	\u221a	\u221a
Schema	\u221a	\u221a	\u221a	\u221a	\u221a
Index	(unstored field)

What is wrong there?

______________________________________________________
Gesendet mit Maills.de - mehr als nur Freemail www.maills.de



Re: Fields with stored=false are stored though

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
docValues are enabled (in the type) and with the latest schema
version, docvalues can be returned even if stored is off.

You can disable docValues or disable them returning a value unless
requested explicitly in fl param.

Regards,
   Alex.
P.s. I am not say that was a smart idea to do in the default example
schema......
----
Solr Example reading group is starting November 2016, join us at
http://j.mp/SolrERG
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/


On 4 November 2016 at 23:29, Reinhard Budenstecher <ra...@maills.de> wrote:
> I'm using Solr 6.2.1. Schema is static (schema.xml) and some fields look like
>
>   <field name="attributes_size" type="ints" indexed="true" stored="false"/>
>   <field name="attributes_price" type="ints" indexed="true" stored="false"/>
>
> and so on. But when querying in web browser GUI I can see, that these fields are stored though and values are returned on query. How can this happen?
> Looking into web schema browser I can see fields with following attributes:
>
> Field: attributes_size
> Field-Type:org.apache.solr.schema.TrieIntField
> Flags:  Indexed DocValues       Multivalued     Omit Norms      Omit Term Frequencies & Positions
> Properties      √       √       √       √       √
>
> Field: attributes_price
> Field-Type:org.apache.solr.schema.TrieIntField
> Flags:  Indexed DocValues       Multivalued     Omit Norms      Omit Term Frequencies & Positions
> Properties      √       √       √       √       √
> Schema  √       √       √       √       √
> Index   (unstored field)
>
> What is wrong there?
>
> ______________________________________________________
> Gesendet mit Maills.de - mehr als nur Freemail www.maills.de
>
>