On 3/14/2018 8:27 AM, mganeshs wrote:
As I mentioned before, since I am updating only docvalues i expect it should
update in faster than updating normal field. Isn't it ?
Maybe. But not always.
To do an in-place update, Solr must rewrite the docValues data for that
field in that segment. It must write this data for *EVERY* document in
that segment which has that field.
If the segment has a few documents, this will almost certainly be very
fast. But if the segment with the document you are updating is large
and contains enough documents that there are a million unique values for
that field, then Solr is going to have to gather those million values
from the existing data, then write a new file containing a million
values. This isn't going to be fast ... and a standard update probably
would be faster.
Segments are part of the organization of a Lucene index. Solr is a
Lucene application.
Thanks,
Shawn