lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amit Phadke <>
Subject Lucene 5.5 with multi segment index
Date Wed, 24 Oct 2018 19:22:00 GMT
Hey Guys,

I have a question on Query.rewrite() in Lucene 5.5
I am noticing that Query.rewrite() is actually more expensive than the actual search on a
particular index with multiple segments (8 in my case).
Most of the rewrite cost seems to come from FuzzyQuery’s that need to be rewritten.

Tracing the code a bit, it looks like collectTerms() in TermCollectingRewrite seems to be
going through all segments sequentially.

A lot of these methods are final, so this behavior cannot be easily overriden.
Can rewrite() be not parallelized for each segment, or am I missing something more obvious?

Thanks for your help.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message