Re: commit question

2012-05-16 Thread Mark Miller

On May 16, 2012, at 5:23 AM, marco crivellaro wrote:

> Hi all,
> this might be a silly question but I've found different opinions on the
> subject.
> 
> When a search is run after a commit is performed will the result include all
> document(s) committed until last commit?
> 
> use case (sync):
> 1- add document
> 2- commit
> 3- search (faceted)
> 
> will faceted search on point 3 include the document added at point 1?
> 
> thank you,
> Marco Crivellaro
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/commit-question-tp3984044.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Yes - as long as that commit has the option of waiting for a new searcher set 
to true. Otherwise it would be a race.

- Mark Miller
lucidimagination.com













Re: commit question

2009-05-26 Thread Anshuman Manur
Hey Ashish,

If commit fails, the documents won't be indexed! You can look at your index
by pointing luke  to your data folder (a Solr
index is a Lucene index) or hit:

http://host:port/solr/admin/luke/

to get an xml reply of what your index looks like.

You can commit again and there won't be any document duplicates as long as
you are using a unique ID to identify each document. A same ID commit causes
solr to overwrite/update any existing documents.

But, I'm not sure what happens if commit fails halfway through a large
document set! Would the docs that have already been committed stay or is
commit an atomic op.?

Anshu

On Wed, May 27, 2009 at 8:43 AM, Ashish P  wrote:

>
> Hi,
> Any idea if documents from solr server are cleared even if commit fails or
> I
> can still again try commit after some time??
> Thanks,
> Ashish
>
>
> Ashish P wrote:
> >
> > If I add 10 document to solrServer as in solrServer.addIndex(docs) (
> Using
> > Embedded ) and then I commit and commit fails for for some reason. Then
> > can I retry this commit lets say after some time or the added documents
> > are lost??
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/commit-question-tp23717415p23735301.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>


Re: commit question

2009-05-26 Thread Ashish P

Hi,
Any idea if documents from solr server are cleared even if commit fails or I
can still again try commit after some time??
Thanks,
Ashish


Ashish P wrote:
> 
> If I add 10 document to solrServer as in solrServer.addIndex(docs) ( Using
> Embedded ) and then I commit and commit fails for for some reason. Then
> can I retry this commit lets say after some time or the added documents
> are lost??
> 
> 

-- 
View this message in context: 
http://www.nabble.com/commit-question-tp23717415p23735301.html
Sent from the Solr - User mailing list archive at Nabble.com.