Neeraj Gupta is out of the office.

2008-10-26 Thread Neeraj Gupta
Regarding your message: RE: example on RegexQuery I will be out of the office starting 27-Oct-2008 and will not return until 03-Nov-2008. I will respond to your message when I return. The information contained in this e-mail and any accompanying documents may contain information that is c

Re: Paging & Sorting

2008-08-07 Thread Neeraj Gupta
u can get the 100 most relevant docs and then sort only those, then you should look at FieldSortedHitQueue. What you'd do is feed the top 100 documents into an instance of FieldSortedHit queue then read traverse the queue. If none of this applies, could you explain in a bit more detail? Best

Re: Paging & Sorting

2008-08-05 Thread Neeraj Gupta
should look at FieldSortedHitQueue. What you'd do is feed the top 100 documents into an instance of FieldSortedHit queue then read traverse the queue. If none of this applies, could you explain in a bit more detail? Best Erick On Tue, Aug 5, 2008 at 4:35 PM, Neeraj Gupta <[EMAIL PROTECTED]

Paging & Sorting

2008-08-05 Thread Neeraj Gupta
Hi, I need first 100 documents in a sorted order lets say sorted on the document id and there are more then 50K documents in the index. My search query is matching all those 50K documents. Is there any way to get only first 100 documents that too in a sorted order of document id. I mean Lucene

Re: checking existing docs before indexing

2007-07-12 Thread Neeraj Gupta
provided. Cheers, Neeraj "Samuel LEMOINE" <[EMAIL PROTECTED]> 07/12/2007 09:38 PM Please respond to java-user@lucene.apache.org To java-user@lucene.apache.org cc [EMAIL PROTECTED] Subject Re: checking existing docs before indexing Neeraj Gupta a écrit : >

Re: checking existing docs before indexing

2007-07-12 Thread Neeraj Gupta
Hi, You an use updateDocument() method of IndexWriter to update any existing document.. It searches for a document matching the Term, if document existes then delete that document. After that it adds the provided document to the indexes in both the cases whether document exists or not. Cheers,

Re: Lucene 2.2, NFS, Lock obtain timed out

2007-07-03 Thread Neeraj Gupta
e NativeFSLockFactory. I was hoping this would have stopped these errors. Patrick On 03/07/07, Neeraj Gupta <[EMAIL PROTECTED]> wrote: > Hi > > this is the case where index create by one server is updated by other > server, results into index corruption. This exception occurin

Re: Lucene 2.2, NFS, Lock obtain timed out

2007-07-03 Thread Neeraj Gupta
Hi this is the case where index create by one server is updated by other server, results into index corruption. This exception occuring while creating instance of Index writer because at the time of index writer instance creation it checks if index exists or not, if you are not creating a new