Re: Lucene's internal doc ID space

2012-05-12 Thread Michael McCandless
On Sat, May 12, 2012 at 9:12 AM, Valeriy Felberg wrote: >> the Document IDs in Lucene are per segment. ie. they are always >> segment based. > > @Simon I'm just wondering: If the document IDs are per segment how > does it work if I call Searcher.search(Query, int) and get TopDocs > referencing Sco

Re: Lucene Pagination with Query

2012-05-12 Thread janwen
That method is for your situation.See the javadoc api for more details. searchAfter publicTopDocs searchAfter(ScoreDoc

Re: Lucene's internal doc ID space

2012-05-12 Thread Valeriy Felberg
> the Document IDs in Lucene are per segment. ie. they are always > segment based. @Simon I'm just wondering: If the document IDs are per segment how does it work if I call Searcher.search(Query, int) and get TopDocs referencing ScoreDocs which contain document IDs? What happens if there are two m

Re: Lucene Pagination with Query

2012-05-12 Thread Yogesh patel
But is it possible to get results from between 200 to 300 documents with lucene query when i click on third page number? On Sat, May 12, 2012 at 4:47 PM, janwen wrote: > Yes.You can use the method: > > publicTopFieldDocs apache/lucene/sea

Re: Lucene Pagination with Query

2012-05-12 Thread janwen
Yes.You can use the method: publicTopFieldDocs search(Query query, Filter

Re: Lucene's internal doc ID space

2012-05-12 Thread Simon Willnauer
On Fri, May 11, 2012 at 7:56 AM, Jong Kim wrote: > When I update a document in Lucene (i.e., re-indexing), I have to delete > the existing document, and create a new one. My understanding is that this > assigns a new doc ID for the newly created document. If that is the case, > is it true that the

Re: Lucene's internal doc ID space

2012-05-12 Thread Trejkaz
On Fri, May 11, 2012 at 9:56 PM, Jong Kim wrote: > 2. If Lucene can recycle old IDs, it would be even better if I could force > it to re-use a particular doc ID when updating a document by deleting old > one and creating new one. This scheme will allow me to reference this doc > ID from another do