[
https://issues.apache.org/jira/browse/SOLR-8740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15185002#comment-15185002
]
Varun Thacker commented on SOLR-8740:
-------------------------------------
Can we please not mix up the issues.
The issue here which Yonik created is about making docValues as default. So
even if you don't mark a field explicitly with docValues="true" in your schema
, Solr will enable it. You have to explicitly turn it off instead. This does
not change any behaviour on how fields are returned etc.
Discussions which started with {{I still find the whole docValues vs. Stored
fields narrative extremely confusing.}} and any followups on this are
tangential to this issue. Solr now supports two way to return back the actual
field values. SOLR-8220 has all the details and there is a very detailed entry
about it in the CHANGES file. Can we please have any followup discussions on
that on another mailing list discussion/SOLR-8220 Jira
{code}
* The Solr schema version has been increased to 1.6. Since schema version 1.6,
all non-stored docValues fields
will be returned along with other stored fields when all fields (or pattern
matching globs) are specified
to be returned (e.g. fl=*) for search queries. This behavior can be turned on
and off by setting
'useDocValuesAsStored' parameter for a field or a field type to true (default
since schema version 1.6)
or false (default till schema version 1.5).
Note that enabling this property has performance implications because
DocValues are column-oriented and may
therefore incur additional cost to retrieve for each returned document. All
example schema are upgraded to
version 1.6 but any older schemas will default to useDocValuesAsStored=false
and continue to work as in
older versions of Solr. If this new behavior is desirable, then you should
set version attribute in your
schema file to '1.6'. Re-indexing is not necessary to upgrade the schema
version.
Also note that while returning non-stored fields from docValues (default in
schema versions 1.6+, unless
useDocValuesAsStored is false), the values of a multi-valued field are
returned in sorted order.
If you require the multi-valued fields to be returned in the original
insertion order, then make your
multi-valued field as stored. This requires re-indexing.
See SOLR-8220 for more details.
{code}
> use docValues by default
> ------------------------
>
> Key: SOLR-8740
> URL: https://issues.apache.org/jira/browse/SOLR-8740
> Project: Solr
> Issue Type: Improvement
> Affects Versions: master
> Reporter: Yonik Seeley
> Fix For: master
>
>
> We should consider switching to docValues for most of our non-text fields.
> This may be a better default since it is more NRT friendly and acts to avoid
> OOM errors due to large field cache or UnInvertedField entries.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]