Hi all,

Assume I already had lot of documents inside ES and each document represent 
one file. 

But now I want to update some files' fields, so I need to find the 
document, get its id, and then apply the _update operation. 

And If I have n document to do such things and there are m document inside 
the ES, the performance to search the desired document to get its id is 
O(n*m), right?  Because each finding operation needs to scan entire 
documents inside the index, does it exist any way to find the desired 
document with unique key, return immediately when found it?

If so, it's really not a good option when to update a document's field. I 
am wondering what's the suggested workflow to update some file without 
knowing its id first.

Ideas?

Cheers,

Ivan

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/8c91ab7e-1ae5-4f97-abad-68afec17aa76%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to