Thanks to both of you. 
I got it working as follows after your helpful posts.
I get this polygon search working.
fq=geo:"Intersects(POLYGON((149.4023 -34.6072, 149.4023 -34.8690, 149.9022
-34.8690, 149.9022 -34.6072, 149.4023 -34.6072)))"

AND I can get this search working (as in results returned)
fq=geo:"Intersects(POLYGON((151.506958 -33.458943, 150.551147 -33.60547,
151.00708 -34.257216, 151.627808 -33.861293, 151.506958 -33.458943)))"

But no matter what MULTIPOLYGON I try with various Parentheses combinations
and im still not getting results, I will get results from either only 1 of
the polygons in the multipolygon search, or the error unable to read .

fq=geo:"Intersects(MULTIPOLYGON(((149.4023 -34.6072, 149.4023 -34.8690,
149.9022 -34.8690, 149.9022 -34.6072, 149.4023 -34.6072))), ((151.506958
-33.458943, 150.551147 -33.60547, 151.00708 -34.257216, 151.627808
-33.861293, 151.506958 -33.458943)))"

Returns only the results from the first polygon.

fq=geo:"Intersects(MULTIPOLYGON(((149.4023 -34.6072, 149.4023 -34.8690,
149.9022 -34.8690, 149.9022 -34.6072, 149.4023 -34.6072)), ((151.506958
-33.458943, 150.551147 -33.60547, 151.00708 -34.257216, 151.627808
-33.861293, 151.506958 -33.458943)))"

Gives error 
ERROR 500

error reading WKT

Finally this
fq=geo:"Intersects(MULTIPOLYGON(((149.4023 -34.6072, 149.4023 -34.8690,
149.9022 -34.8690, 149.9022 -34.6072, 149.4023 -34.6072)), ((151.506958
-33.458943, 150.551147 -33.60547, 151.00708 -34.257216, 151.627808
-33.861293, 151.506958 -33.458943))))"

Worked :)



--
View this message in context: 
http://lucene.472066.n3.nabble.com/solr4-MULTIPOLYGON-search-syntax-tp4021199p4021435.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to