Re: Prevent Document to get partially indexed if document is not available

2017-12-13 Thread kumar gaurav
Yes . It is working for me . Thanks Emir & Mikhali :) Just a last question . Will it hurt any other document index while indexing partially with _version_ field or any other fallback if i am regularly sending _version_:1 for each partial document update . Example - {"product_id":"12345","produ

Re: Prevent Document to get partially indexed if document is not available

2017-12-13 Thread Emir Arnautović
Hi, Did you try with _version_=1 “If the content in the _version_ field is equal to '1', then the document must simply exist. In this case, no version matching occurs, but if the document does not exist, the updates will be rejected.” Regards, Emir -- Monitoring - Log Management - Alerting - An

Re: Prevent Document to get partially indexed if document is not available

2017-12-13 Thread kumar gaurav
Hi Mikhali Thanks for this knowledge . But i want to prevent partial update in case of document not exists . I do not want to call rest solr api to check existence of document before updating document partially . Is there not any configuration in solr to prevent creating new document in case of

Re: Prevent Document to get partially indexed if document is not available

2017-12-12 Thread Mikhail Khludnev
https://lucene.apache.org/solr/guide/6_6/updating-parts-of-documents.html#UpdatingPartsofDocuments-OptimisticConcurrency If the content in the _version_ field is less than '0' (i.e., '-1'), then the document must *not* exist. In this case, no version matching occurs, but if the document exists, the