Avoid the need to use OR operator

2023-04-14 Thread Steven White
Hi everyone, I have the following very long query that I need to send to Solr: > search-text some-other-limits UNIQUE_MODELS:(19 OR 20 OR 9532 OR ...) See how I'm narrowing my query to a list of values limited to the field UNIQUE_MODELS ? The number of items that can be passed to UNIQUE_MODELS

Re: Avoid the need to use OR operator

2023-04-14 Thread Mikhail Khludnev
Hi, Steven. What about q=search-text some-other-limits {!terms f=UNIQUE_MODELS v=$um}&um=19,20,9532,.. Although it's quite limited without POST. Also, note there are many traps in this syntax, check debugQuery output thoroughly. see https://solr.apache.org/guide/7_3/other-parsers.html#terms-query-

Re: Avoid the need to use OR operator

2023-04-14 Thread Vivaldi
Did you try using q.op=OR as request parameter? It should override the default boolean operator. > On 14 Apr 2023, at 15:15, Steven White wrote: > > Hi everyone, > > I have the following very long query that I need to send to Solr: > >> search-text some-other-limits UNIQUE_MODELS:(19 OR 20