lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
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

http://blog.mikemccandless.com


On Tue, Oct 28, 2014 at 9:40 PM, Pawel Rog <pawelrog88@gmail.com> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message