On Fri, Oct 29, 2010 at 3:32 PM, Cabansag, Ronald-Alvin R
<[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to