You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by leevduhl <ld...@corp.realcomp.com> on 2014/03/04 20:58:30 UTC
Polygon search returning "Invalid Number" error.
I'm attempting to run a polygon search but I'm getting back an "Invalid
Number: Intersects(POLYGON(-83.63493346958422 42.47186899701156"," response.
My geoloc data is stored in the index as follows: "geoloc":
"-82.549200,43.447400"
My polygon query is as follows:
q=geoloc:"Intersects(POLYGON(-83.63493346958422 42.47186899701156,
-83.50962066440843 42.47186899701156, -83.50962066440843 42.43387178026946,
-83.63493346958422 42.43387178026946, -83.63493346958422
42.47186899701156))"
Error response is as follows:
{
"responseHeader": {
"status": 400,
"QTime": 2,
"params": {
"debugQuery": "true",
"fl": "id, geoloc",
"indent": "true",
"q": "geoloc:\"Intersects(POLYGON(-83.63493346958422
42.47186899701156, -83.50962066440843 42.47186899701156, -83.50962066440843
42.43387178026946, -83.63493346958422 42.43387178026946, -83.63493346958422
42.47186899701156)\"",
"_": "1393962573621",
"wt": "json"
}
},
"error": {
"msg": "Invalid Number: Intersects(POLYGON(-83.63493346958422
42.47186899701156",
"code": 400
}
}
Can really find any info to explain the area so any info that can be
provided would be appreciated.
Thanks
Lee
--
View this message in context: http://lucene.472066.n3.nabble.com/Polygon-search-returning-Invalid-Number-error-tp4121189.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Polygon search returning "Invalid Number" error.
Posted by leevduhl <ld...@corp.realcomp.com>.
My bad, I think this error was actually a result of using the Solr Admin
utility to query the index and the query I entered included the double
quotes.
However, this left me with a different error that I may post a question
about if I cannot figure it out.
--
View this message in context: http://lucene.472066.n3.nabble.com/Polygon-search-returning-Invalid-Number-error-tp4121189p4121677.html
Sent from the Solr - User mailing list archive at Nabble.com.