lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Debraj Manna <subharaj.ma...@gmail.com>
Subject Re: Getting a document version back after updating
Date Mon, 14 Dec 2015 10:15:10 GMT
Is there any seperate api available in solrj 5.2.1 for setting version=true
while adding or updating a solr doc?
On Dec 13, 2015 8:03 AM, "Debraj Manna" <subharaj.manna@gmail.com> wrote:

> Thanks Alex. This is what I was looking for. One more query how to set
> this from solrj while calling add() ? Do I have to make a curl call with
> this param set?
> On Dec 13, 2015 12:53 AM, "Shalin Shekhar Mangar" <shalinmangar@gmail.com>
> wrote:
>
>> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message