Hi,

I need help figuring why I keep getting the error below.  I am running the
example store core using Solr 4.3.0 on Centos.  When I use the solr web app
(http://localhost:8983/solr) to issue the following query against the
example docs:

In the q edit box:
*:*

In the fq edit box:
store:"IsWithin(POLYGON((149.4023 -34.6072, 149.4023 -34.8690, 149.9022
-34.8690, 149.9022 -34.6072, 149.4023 -34.6072)))"

I get the following error when I click on "Execute Query" which is also the
same error if I were to send the query as 

http://localhost:8983/solr/collection1/select?&q=*:*&fq=store:%22IsWithin(POLYGON((149.4023%20-34.6072,%20149.4023%20-34.8690,%20149.9022%20-34.8690,%20149.9022%20-34.6072,%20149.4023%20-34.6072)))%22:




<?xml version="1.0" encoding="UTF-8"?>
<response>

<lst name="responseHeader">
  <int name="status">500</int>
  <int name="QTime">4</int>
  <lst name="params">
    <str name="indent">true</str>
    <str name="q">*:*</str>
    <str name="_">1368060041286</str>
    <str name="wt">xml</str>
    <str name="fq">store:"IsWithin(POLYGON((149.4023 -34.6072, 149.4023
-34.8690, 149.9022 -34.8690, 149.9022 -34.6072, 149.4023 -34.6072)))"</str>
  </lst>
</lst>
<lst name="error">
  <str name="msg">For input string: "IsWithin(POLYGON((149.4023
-34.6072"</str>
  <str name="trace">java.lang.NumberFormatException: For input string:
"IsWithin(POLYGON((149.4023 -34.6072"
        at 
sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1242)
        at java.lang.Double.parseDouble(Double.java:527)
        at 
org.apache.solr.schema.TrieField.readableToIndexed(TrieField.java:396)
        at org.apache.solr.schema.FieldType.getFieldQuery(FieldType.java:697)
        at org.apache.solr.schema.TrieField.getFieldQuery(TrieField.java:353)
        at org.apache.solr.schema.LatLonType.getFieldQuery(LatLonType.java:138)
        at
org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:961)
        at
org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:574)
        at
org.apache.solr.parser.SolrQueryParserBase.handleQuotedTerm(SolrQueryParserBase.java:779)
        at org.apache.solr.parser.QueryParser.Term(QueryParser.java:404)
        at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:186)
        at org.apache.solr.parser.QueryParser.Query(QueryParser.java:108)
        at org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:97)
        at
org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:160)
        at 
org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:72)
        at org.apache.solr.search.QParser.getQuery(QParser.java:142)
        at
org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:136)
        at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:187)
        at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1816)
        at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:656)
        at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:359)
        at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:155)
        at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
        at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
        at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
        at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
        at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
        at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
        at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
        at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
        at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
        at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
        at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
        at org.eclipse.jetty.server.Server.handle(Server.java:365)
        at
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
        at
org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
        at
org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
        at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
        at
org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
        at
org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
        at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
        at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
        at java.lang.Thread.run(Thread.java:679)
</str>
  <int name="code">500</int>
</lst>
</response>



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-4-3-0-Error-when-sending-a-IsWithin-Polygon-query-tp4061737.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to