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 partial update ?




On Tue, Dec 12, 2017 at 9:29 PM, Mikhail Khludnev <m...@apache.org> wrote:

> 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 updates will be rejected.
>
> On Tue, Dec 12, 2017 at 4:23 PM, kumar gaurav <kg2...@gmail.com> wrote:
>
> > Hi
> >
> > I need to update documents partially to solr only if it is already
> present
> > there . But the problem is it creates a new document if document not
> > available .
> >
> > Please help someone .
> >
> > Thanks
> >
> > regards
> > Kumar Gaurav
> >
>
>
>
> --
> Sincerely yours
> Mikhail Khludnev
>

Reply via email to