Re: Boolean expression for spatial query

2017-03-02 Thread David Smiley
I recommend the MULTIPOINT approach. BTW if you go the route of multiple OR'ed sub-clauses, I recommend avoiding the _query_ syntax which predates Solr 4.x's (4.2?) ability to embed fully the sub-clauses more naturally; though you need to beware of the gotcha of needing to add a leading space. If

Re: Boolean expression for spatial query

2017-02-27 Thread Emir Arnautovic
Hi Michael, I haven't been playing with spatial for a while, but if it fully supports WKT, you could use Intersects instead of Contains and MULTIPOINT instead of POINT. Something like: fq={!field f=regionGeometry}Intersects(MULTIPOINT((x1 y1), (x2, y2))) In any case you can use OR-ed _query_