lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zehua <>
Subject Re: Question for top term frequency
Date Wed, 17 Jun 2009 21:33:53 GMT

Thanks for the reply.

The problem is that the number of global document maybe huge, for example
If we returned all these doucments and find the top author using the term
frequency loop,
it can take longer time.

We are considering to use CustomScoreQuery. First parameter is the normal
query to match the result.
Second parameter is to use the Field "Author"'s frequency to increase the
score. So the results for
top authors will have higher score and returned. Does it makes sense?

Ted Dunning wrote:
> It is easy to get global document frequencies for all authors.
> Then it is easy to build a query that accepts documents from any of the
> top
> authors.
> It requires more than one query, but only a few lines of code.
> On Tue, Jun 16, 2009 at 1:30 PM, zehua <> wrote:
>> Is there a
>> good way to do it? I searched the mailing list, and did not find a good
>> match.

View this message in context:
Sent from the Lucene - General mailing list archive at

View raw message