On 4/15/2016 7:42 AM, Vincenzo D'Amore wrote:
> I would like to add docValues to few fields definition in production.
>
> I first tried in a test environment during partial reindexing and it seems
> have no effect, (i.e. no real benefits with small number of documents to
> reindex, 30% of total).

Adding docValues requires a full reindex.  If your index meets the
criteria for Atomic Updates, then you could do an atomic update on every
document, but either way, you're going to be indexing every document again.

The problem with not reindexing is that certain Solr features will
switch to use docValues if the schema says the field has them ... but
until you reindex, your existing documents will not actually contain
docValues, so those features will not work on the majority of your
index.  Those features will *not* fall back to indexed data if the
schema says docValues="true".

The list of features that won't work right without a reindex is the list
of features that benefit from docValues (sorting, faceting, grouping),
so usually there's no reason to add docValues unless you're using at
least one of those features.

Thanks,
Shawn

Reply via email to