I also had similar problem. It was essentially a 'group by'-like
requirement.I used both get(fieldName) and getTermFreqVector(...),
it seemed that get(fieldName) on a page of results (say, 10 results
per page) was faster than getTermFreqVector() for me.
ray,
On 7/29/05, mark harwood <[EMAIL
> Is there a faster way to access the total hits
> count??
The solution I outlined could be adapted to work
across multiple indexes - you'd just have to aggregate
the totals.
If going from all category terms to matching doc ids
is slow you could do it the other way going from
matching doc ids to
otal hits count??
-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
org] On Behalf Of markharw00d
Sent: Wednesday, July 27, 2005 4:42 PM
To: java-user@lucene.apache.org
Subject: Re: hit count within categories
I posted the code I use to do this (based on a single ind
I posted the code I use to do this (based on a single index) here:
http://marc.theaimsgroup.com/?l=lucene-dev&m=111044178212335&w=2
Cheers
Mark
___
Yahoo! Messenger - NEW crystal clear PC to PC calling
I'm working on a problem where I need to search over 160 million
documents. I know Lucene can do this no sweat; my problem is that these
documents are grouped in more then 500 categories. I need to get a
count of documents that match a given query, within each category.
There is no need for scori