On Sun, 29 Sept 2024 at 18:01, Gus Heck <gus.h...@gmail.com> wrote: > 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)))'} >
Yeah, that works like a charm. Thank you! Cheers > > 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) >