I don't know if it will help in this case, but I have sometimes found that the parser can have difficulty properly finding the end of a localparam with a complex following argument (your polygon intersects for example, a graph query when I last recall encountering this problem years ago) I think the problem is that the solr parser yields control to the alternate parser in the local params, and that parser doesn't always give control back to the main parser at the right location (since space delimited tokens are a thing for some parsers, this probably isn't even possible in all cases).
An alternate technique that sometimes resolves problems like this is to put the complicated stuff inside a quoted v="" within the {} ( see https://solr.apache.org/guide/8_6/local-parameters-in-queries.html#specifying-the-parameter-value-with-the-v-key ) So in your case maybe try something like: {!field f='geo_rpt' v='Intersects(POLYGON((9.262772086904576 47.98679078170882,9.043045524404576 46.616047902306306,10.427322868154576 46.60095313349165,10.504227165029576 48.01619508323075,9.262772086904576 47.98679078170882)))'} On Sun, Sep 29, 2024 at 11:33 AM Patryk Mazurkiewicz <pmaz...@gmail.com> wrote: > Hi Carlo, > > If this is still an issue, what error message are you getting when trying > to combine the filters using your method? What happens if you don’t wrap > with parentheses? > > Thank you > > On 2024/09/19 07:32:05 Carlo Ascani wrote: > > Hi all, > > > > I am trying to combine these 2 filters with a logical OR, without > success: > > > > 1. {!tag=REGION}(geo_bezirk_id:("2" OR "4")) > > 2. {!field f=geo_rpt}Intersects(POLYGON((9.262772086904576 > > 47.98679078170882,9.043045524404576 46.616047902306306,10.427322868154576 > > 46.60095313349165,10.504227165029576 48.01619508323075,9.262772086904576 > > 47.98679078170882))) > > > > What I tried so far is: > > > > - Wrapping the filters with parens and put an OR between them > > > > ({!field f=geo_rpt}Intersects(POLYGON((9.262772086904576 > > 47.98679078170882,9.043045524404576 46.616047902306306,10.427322868154576 > > 46.60095313349165,10.504227165029576 48.01619508323075,9.262772086904576 > > 47.98679078170882)))) OR ({!tag=REGION}(geo_bezirk_id:("2" OR "4"))) > > > > Solr version is 8.6.3 > > > > Kind Regards, > > Carlo > > -- http://www.needhamsoftware.com (work) https://a.co/d/b2sZLD9 (my fantasy fiction book)