You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Mikhail Khludnev <mk...@apache.org> on 2017/05/11 08:43:35 UTC

How to avoid unnecessary query parsing on distributed search in QueryComponent.prepare()?

Hello,
When the distributed search is requested (SolrCloud), the query component
invokes prepare() where a query is parsed. But then it's just ignored, I
suppose because all work is done by subordinate shards' requests.
It's fine the most of the times because query parsing is cheap. Until we
have a heavy wildcarded complexphrase query, where the expensive expansion
is done during parsing.
How to avoid this waste of resources? Just bypass parsing is rb.isDistrib?
or refactor complexphrase parser moving expansion downstream to rewrite or
createWeight?
--
Mikhail