You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Alex Bulygin <al...@bk.ru.INVALID> on 2020/12/23 14:13:00 UTC
Question by solr queries optimization
Good day to all! Perhaps a stupid question, I'm not very experienced in using solr, please, tell me, if I send such a request to solr id: (% key or% key or% key) and the keys are equal, will there be any optimization of such a request ? Or tell me from the code where such an optimization can take place? Hope for help
------
Bulygin Alex
Re: Question by solr queries optimization
Posted by Adrien Grand <jp...@gmail.com>.
Hi Alex,
Indeed Solr would automatically rewrite this query to `id:%key^3` since
versions 7.1 / 8.0.
This happens via BooleanQuery#rewrite, you can check out the JIRA where
this was implemented: https://issues.apache.org/jira/browse/LUCENE-7925.
On Wed, Dec 23, 2020 at 3:13 PM Alex Bulygin <al...@bk.ru.invalid>
wrote:
> Good day to all! Perhaps a stupid question, I'm not very experienced in
> using solr, please, tell me, if I send such a request to solr id: (% key
> or% key or% key) and the keys are equal, will there be any optimization of
> such a request ? Or tell me from the code where such an optimization can
> take place? Hope for help
>
> ------
> Bulygin Alex
>
--
Adrien