what about  UpdateRequest().getParam().add("versions","true") ?

On Mon, Dec 14, 2015 at 1:15 PM, Debraj Manna <subharaj.ma...@gmail.com>
wrote:

> 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.ma...@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" <
> shalinman...@gmail.com>
> > wrote:
> >
> >> Oh yes, I had forgotten about that! Thanks Alexandre!
> >>
> >> On Sat, Dec 12, 2015 at 11:57 PM, Alexandre Rafalovitch
> >> <arafa...@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.ma...@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" <
> >> shalinman...@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.ma...@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.
> >>
> >
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
<mkhlud...@griddynamics.com>

Reply via email to