On Thu, Dec 19, 2024 at 10:42 AM Mingchun Zhao <mingchun.zha...@gmail.com>
wrote:

> Hi Ufuk,
>
> Thank you very much for your response!
>
> > Take a look at the cache and cost local parameters here:
>
> https://solr.apache.org/guide/solr/latest/query-guide/common-query-parameters.html#cache-local-parameter
>
>

>
> > Otherwise I don’t exactly know in what order they are executed but my
> guess is they are all executed in parallel and later an intersection or
> union is made on their results.
>

Pardon, I think there's only an intersection.


> If anyone has any hints, I would greatly appreciate it.
>
here we go
https://github.com/apache/solr/blob/61609b1b599b839952fe6a8f0e163254caddd472/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java#L1889

>
> Regards,
> Mingchun
>
> 2024年12月19日(木) 13:42 ufuk yılmaz <uyil...@vivaldi.net.invalid>:
>
> > Hello Zhao-san
> >
> > Take a look at the cache and cost local parameters here:
> >
> https://solr.apache.org/guide/solr/latest/query-guide/common-query-parameters.html#cache-local-parameter
> >
> > If a filter query is not cached and it is very expensive, it is possible
> > to tell Solr to execute it after all other q and fq using the above
> params.
> > Otherwise I don’t exactly know in what order they are executed but my
> guess
> > is they are all executed in parallel and later an intersection or union
> is
> > made on their results.
> >
> > -ufuk
> >
> > —
> >
> > > On Dec 19, 2024, at 10:51, Mingchun Zhao <mingchun.zha...@gmail.com>
> > wrote:
> > >
> > > Hi,
> > >
> > > When a search query includes both q and fq parameters, which one is
> > > executed first internally (in Solr or Lucene)?
> > > Additionally, is it possible to change this execution order?
> > >
> > > Regards,
> > > Mingchun
> >
>


-- 
Sincerely yours
Mikhail Khludnev

Reply via email to