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 <pawelro...@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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to