On 11/17/2017 12:53 AM, S G wrote:
Going through
https://www.elastic.co/guide/en/elasticsearch/guide/current/_deep_dive_on_doc_values.html
,
is it possible to enable only docValues and disable stored/indexed
attributes for a field?

Yes, this is possible. In fact, if you want to do in-place Atomic updates, this is how the field must be set up.

https://lucene.apache.org/solr/guide/6_6/updating-parts-of-documents.html#UpdatingPartsofDocuments-In-PlaceUpdates

In that case, the field will become only sortable/facetable/pivotable but
it cannot be searched nor can it be retrieved?

Recent Solr versions can use docValues instead of stored when retrieving data for results. This can be turned on/off on a per-field basis. The default setting is enabled if you're using a current schema version.

https://lucene.apache.org/solr/guide/6_6/docvalues.html#DocValues-RetrievingDocValuesDuringSearch

As I understand it, you actually *can* search docValues-only fields (which would require a match to the entire field -- no text analysis), but because it works similarly to a full-table scan in a database, the performance is dreadful on most fields, and it's NOT recommended.

Thanks,
Shawn

Reply via email to