lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject Re: Getting a document version back after updating
Date Sat, 12 Dec 2015 19:22:54 GMT
Oh yes, I had forgotten about that! Thanks Alexandre!

On Sat, Dec 12, 2015 at 11:57 PM, Alexandre Rafalovitch
<arafalov@gmail.com> wrote:
> Does "versions=true" flag match what you are looking for? It is
> described towards the end of:
> https://cwiki.apache.org/confluence/display/solr/Updating+Parts+of+Documents#UpdatingPartsofDocuments-OptimisticConcurrency
>
> Regards,
>    Alex.
> ----
> Newsletter and resources for Solr beginners and intermediates:
> http://www.solr-start.com/
>
>
> On 12 December 2015 at 11:35, Debraj Manna <subharaj.manna@gmail.com> wrote:
>> I was thinking if it is possible to get the version without making one more
>> extra call getById. Can I get that as part of the update response when I am
>> updating or adding a new document?
>> On Dec 12, 2015 3:28 PM, "Shalin Shekhar Mangar" <shalinmangar@gmail.com>
>> wrote:
>>
>>> You will have to request a real-time-get with the unique key of the
>>> document you added/updated. In Solr 5.1+ you can go
>>> client.getById(String id) to get this information.
>>>
>>> On Sat, Dec 12, 2015 at 10:19 AM, Debraj Manna <subharaj.manna@gmail.com>
>>> wrote:
>>> > Is there a way I can get the version of a document back in response after
>>> > adding or updating the document via Solrj 5.2.1?
>>>
>>>
>>>
>>> --
>>> Regards,
>>> Shalin Shekhar Mangar.
>>>



-- 
Regards,
Shalin Shekhar Mangar.

Mime
View raw message