Hi,

Update is delete and add. I mean, instead of updating existing document, it 
deletes it and adds it as new document.
And those deleted documents are just marked as deleted and aren’t actually 
removed from index until the segment merge.

IDF doesn’t take those deleted-but-not-removed document into account (it counts 
those documents).
That’s the reason you see different IDF score (you see both maxDocs and docFreq 
are incremented).

Regarding 424 v.s. 0, the document had ID 424 (lucene’s internal ID). But when 
the document is updated (delete + add), it got new ID 0 in new segment.

So, I think it’s not possible to keep score when you update documents.
You can run optimise with max_num_segments=1 every time you update documents 
but it’s not practical (and until optimise is done, you see different score)


Masaru



-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/etPan.54acade5.625558ec.13b%40citra.local.
For more options, visit https://groups.google.com/d/optout.

Reply via email to