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 vishal patel <vi...@outlook.com> on 2020/05/19 14:16:19 UTC

Large query size in Solr 8.3.0

Which query parser is used if my query length is large?
My query is https://drive.google.com/file/d/1P609VQReKM0IBzljvG2PDnyJcfv1P3Dz/view


Regards,
Vishal Patel

Re: Large query size in Solr 8.3.0

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
Does this actually work? This individual ID matching feels very
fragile attempt at enforcing the sort order and maybe represents an
architectural issue. Maybe you need to do some joins or graph walking
instead. Or, more likely, you would benefit from over-fetching and
just sorting on the ids on the frontend, since you have those IDs
already. You are over-fetching already anyway (rows=250), so you don't
seem to worry that much about payload size.

But, apart from that:
1) Switch from GET to POST
2) 'fl' field list and others after it are probably not very mutable,
this can go into defaults for the request handler (custom one perhaps)
3) You don't seem to use filter queries. But you also have a lot of
binary flags that may benefit from being pushed into 'fq' and improve
caching/minimize score calculations. You could also have not-cached
FQs if you think they will not be reused
4) If you have sets of params that repeat often but not always, you
could do some variable substitutions to loop them in with paramSets
5) Move the sorting query into a boost query, just for clarity of intent

Regards,
  Alex.


On Tue, 19 May 2020 at 10:16, vishal patel
<vi...@outlook.com> wrote:
>
>
> Which query parser is used if my query length is large?
> My query is https://drive.google.com/file/d/1P609VQReKM0IBzljvG2PDnyJcfv1P3Dz/view
>
>
> Regards,
> Vishal Patel

Re: Large query size in Solr 8.3.0

Posted by Vincenzo D'Amore <v....@gmail.com>.
Hi, I don't think query size can affect the kind of the parser chosen. I
remember there is a maximum number of boolean clause  (maxBooleanClauses),
but this a slight different thing.
If the query is too large, you can have an http error (bad request?), I
don't remember, well just change the http method used (instead of GET use
POST)

On Tue, May 19, 2020 at 4:16 PM vishal patel <vi...@outlook.com>
wrote:

>
> Which query parser is used if my query length is large?
> My query is
> https://drive.google.com/file/d/1P609VQReKM0IBzljvG2PDnyJcfv1P3Dz/view
>
>
> Regards,
> Vishal Patel
>


-- 
Vincenzo D'Amore