: I know in applications where we search for a words or phrases and expect
: the result sorted by relevance, TopDocCollector would work like a dream.
: But what about scenario where the result needs to be sorted
: chronologically or by some kind of metadata.
These two methods are available, and
On Sep 17, 2008, at 6:53 PM, Dino Korah wrote:
Thanks Grant.. Please see my comments/response below.
2008/9/17 Grant Ingersoll <[EMAIL PROTECTED]>
On Sep 17, 2008, at 4:39 PM, Dino Korah wrote:
I know in applications where we search for a words or phrases and
expect
the
result sorted by
Thanks Grant.. Please see my comments/response below.
2008/9/17 Grant Ingersoll <[EMAIL PROTECTED]>
>
> On Sep 17, 2008, at 4:39 PM, Dino Korah wrote:
>
> I know in applications where we search for a words or phrases and expect
>> the
>> result sorted by relevance, TopDocCollector would work lik
On Sep 17, 2008, at 4:39 PM, Dino Korah wrote:
I know in applications where we search for a words or phrases and
expect the
result sorted by relevance, TopDocCollector would work like a dream.
But what about scenario where the result needs to be sorted
chronologically
or by some kind of me
I know in applications where we search for a words or phrases and expect the
result sorted by relevance, TopDocCollector would work like a dream.
But what about scenario where the result needs to be sorted chronologically
or by some kind of metadata.
A very common application would be email applic
On Sep 17, 2008, at 11:51 AM, Cam Bazz wrote:
And how about queries that need starting position, like hits between
100 and 200?
could we pass something to the collector that will count between 0 to
100 and then get the next 100 records?
The collector uses a Priority Queue to store doc ids a
And how about queries that need starting position, like hits between
100 and 200?
could we pass something to the collector that will count between 0 to
100 and then get the next 100 records?
Best.
On Wed, Sep 17, 2008 at 5:16 PM, Erick Erickson <[EMAIL PROTECTED]> wrote:
> Doesn't TopDocCollecto
Doesn't TopDocCollector have a getTotalHits method?
Remember that in order to get the top N documents, a
all documents must be examined. I believe that the
numHits parameter passed to the constructor just
limits the number of hits stored in (and thus the size)
of the TopDocs object
Best
Erick
Hello All,
Anyone has tried this?
My UI has a requirement to show total number of results and then show
results in pages. How do I do that with TopDocCollector, without having to
run search() twice, one to get the total number of hits and then the next
one to get the page being displayed. (lik