: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
wrote:
> We use a QueryWrapperFilter.getDocIdSet(indexReader) to get the DocIdSet and
> compute the hit count using its iterator.
If you want to avoid do
On Fri, Oct 29, 2010 at 3:32 PM, Cabansag, Ronald-Alvin R
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, no
where the sub-reader caches its own copy of norms.
Regards,
Al
-Original Message-
From: Michael McCandless [mailto:luc...@mikemccandless.com]
Sent: Friday, October 29, 2010 1:27 PM
To: java-user@lucene.apache.org
Subject: Re: lucene norms cached twice
Norms should not normally be loaded
Norms should not normally be loaded twice.
Since 2.9, searching is done at the sub-reader level, and so norms
should never be loaded for the main reader.
But can you describe how you're using Lucene?
Mike
On Fri, Oct 29, 2010 at 9:27 AM, Cabansag, Ronald-Alvin R
wrote:
>
> We are working with