You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Matteo Grolla <ma...@gmail.com> on 2014/11/03 14:53:19 UTC

order of updates

HI,
	can anybody give me a confirm?
If I add multiple document with the same id but differing on other fields and then issue a commit (no commits before this) the last added document gets indexed, right?
H.p.
	using solr 4 and default settings for optimistic locking.

Matteo

Re: order of updates

Posted by Matteo Grolla <ma...@gmail.com>.
Thanks really a lot Yonik!

Il giorno 03/nov/2014, alle ore 15:51, Yonik Seeley ha scritto:

> On Mon, Nov 3, 2014 at 8:53 AM, Matteo Grolla <ma...@gmail.com> wrote:
>> HI,
>>        can anybody give me a confirm?
>> If I add multiple document with the same id but differing on other fields and then issue a commit (no commits before this) the last added document gets indexed, right?
> 
> Correct.
> 
>> using solr 4 and default settings for optimistic locking.
> 
> If you haven't seen it, I did an example of that a while back:
> 
> http://heliosearch.org/solr/optimistic-concurrency/
> 
> -Yonik
> http://heliosearch.org - native code faceting, facet functions,
> sub-facets, off-heap data


Re: order of updates

Posted by Yonik Seeley <yo...@heliosearch.com>.
On Mon, Nov 3, 2014 at 8:53 AM, Matteo Grolla <ma...@gmail.com> wrote:
> HI,
>         can anybody give me a confirm?
> If I add multiple document with the same id but differing on other fields and then issue a commit (no commits before this) the last added document gets indexed, right?

Correct.

> using solr 4 and default settings for optimistic locking.

If you haven't seen it, I did an example of that a while back:

http://heliosearch.org/solr/optimistic-concurrency/

-Yonik
http://heliosearch.org - native code faceting, facet functions,
sub-facets, off-heap data