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 forest_soup <ta...@gmail.com> on 2015/06/16 10:44:45 UTC

Do we need to add docValues="true" to "_version_" field in schema.xml?

For the "_version_" field in the schema.xml, do we need to set it be
docValues="true"?
   <field name="_version_" type="long" indexed="true" stored="true"/>

As we noticed there are FieldCache for "_version_" in the solr stats:
<http://lucene.472066.n3.nabble.com/file/n4212123/IMAGE%245A8381797719FDA9.jpg> 



--
View this message in context: http://lucene.472066.n3.nabble.com/Do-we-need-to-add-docValues-true-to-version-field-in-schema-xml-tp4212123.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Do we need to add docValues="true" to "_version_" field in schema.xml?

Posted by Erick Erickson <er...@gmail.com>.
Did you look in the example schema files? None of them have
_version_ set as docValues.

Best,
Erick

On Tue, Jun 16, 2015 at 1:44 AM, forest_soup <ta...@gmail.com> wrote:
> For the "_version_" field in the schema.xml, do we need to set it be
> docValues="true"?
>    <field name="_version_" type="long" indexed="true" stored="true"/>
>
> As we noticed there are FieldCache for "_version_" in the solr stats:
> <http://lucene.472066.n3.nabble.com/file/n4212123/IMAGE%245A8381797719FDA9.jpg>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Do-we-need-to-add-docValues-true-to-version-field-in-schema-xml-tp4212123.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Re: Do we need to add docValues="true" to "_version_" field in schema.xml?

Posted by Chris Hostetter <ho...@fucit.org>.
: For the "_version_" field in the schema.xml, do we need to set it be
: docValues="true"?

you *can* add docValues, but it is not required.

There is an open discussion about wether we should add docValues to 
the _version_ field (or even switch completely to indexed="false") in this 
jira...

https://issues.apache.org/jira/browse/SOLR-6337

...if you try it out and find it works better for you, please post a 
comment with your experiences and any annecdotal performance impacts you 
notice.  (real world use cases/observations are always helpful)



-Hoss
http://www.lucidworks.com/