lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: Query with many clauses
Date Wed, 29 Oct 2014 08:07:57 GMT
Are the clauses simple TermQuery?  If so, try TermsFilter: it sorts
the terms which should give some [small] speedup when visiting them in
the terms dict, and it reuses a single TermsEnum across all terms.

Mike McCandless

On Tue, Oct 28, 2014 at 9:40 PM, Pawel Rog <> wrote:
> Hi,
> I have to run query with a lot of boolean should clauses. Queries like
> these were of course slow so I decided to change query to filter wrapped by
> ConstantScoreQuery but it also didn't help.
> Profiler shows that most of the time is spent on seekExact in
> BlockTreeTermsReader$FieldReader$SegmentTermsEnum
> When I go deeper in trace I see that inside seekExact most time is spent on
> loadBlock and even deeper ByteBufferIndexInput.clone.
> Do you have any ideas how I can make it work faster or it is not possible
> and I have to live with it?
> --
> Paweł Róg

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message