lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cabansag, Ronald-Alvin R" <ronald-alvin.caban...@cengage.com>
Subject RE: lucene norms cached twice
Date Fri, 29 Oct 2010 21:38:51 GMT
Yonik,

Thanks for the input. We'll try this out.
And you're right - I tried to simplify our first operation's description.

-Al
Cengage Learning

-----Original Message-----
From: yseeley@gmail.com [mailto:yseeley@gmail.com] On Behalf Of Yonik Seeley
Sent: Friday, October 29, 2010 3:40 PM
To: java-user@lucene.apache.org
Subject: Re: lucene norms cached twice

On Fri, Oct 29, 2010 at 3:32 PM, Cabansag, Ronald-Alvin R
<ronald-alvin.cabansag@cengage.com> wrote:
> We use a QueryWrapperFilter.getDocIdSet(indexReader) to get the DocIdSet and compute
the hit count using its iterator.

If you want to avoid double-caching of norms, then you should call
getDocIdSet() for each segment reader, not the top level reader.

Aside: presumably you're actually doing something more advanced than
getting the hit count (and you just simplified your description
because it wasn't pertinent)... since you can get the hit count from
TopDocs.

-Yonik
http://www.lucidimagination.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message