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 Dennis Gearon <ge...@sbcglobal.net> on 2010/12/02 01:51:03 UTC
spatial query parinsg error: org.apache.lucene.queryParser.ParseException
I am trying to get spatial search to work on my Solr installation. I am running
version 1.4.1 with the Jayway Team spatial-solr-plugin. I am performing the
search with the following url:
http://localhost:8080/solr/select?wt=json&indent=true&q=title:Art%20Loft{!spatial%20lat=37.326375%20lng=-121.892639%20radius=3%20unit=km%20threadCount=3}
The result that I get is the following error:
HTTP Status 400 - org.apache.lucene.queryParser.ParseException: Cannot parse
'title:Art Loft{!spatial lat=37.326375 lng=-121.892639 radius=3 unit=km
threadCount=3}': Encountered " <RANGEEX_GOOP> "lng=-121.892639 "" at line 1,
column 38. Was expecting: "}"
Not sure why it would be complaining about the lng parameter in the query. I
double-checked to make sure that I had the right name for the longitude field in
my solrconfig.xml file.
Any help/suggestions would be greatly appreciated
Dennis Gearon
Signature Warning
----------------
It is always a good idea to learn from your own mistakes. It is usually a better
idea to learn from others’ mistakes, so you do not have to make them yourself.
from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036'
EARTH has a Right To Life,
otherwise we all die.
Re: spatial query parinsg error: org.apache.lucene.queryParser.ParseException
Posted by Dennis Gearon <ge...@sbcglobal.net>.
Forwarded to my partner, thx, will let you know.
Dennis Gearon
Signature Warning
----------------
It is always a good idea to learn from your own mistakes. It is usually a better
idea to learn from others’ mistakes, so you do not have to make them yourself.
from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036'
EARTH has a Right To Life,
otherwise we all die.
----- Original Message ----
From: Jean-Sebastien Vachon <js...@videotron.ca>
To: solr-user@lucene.apache.org
Sent: Wed, December 1, 2010 8:50:58 PM
Subject: Re: spatial query parinsg error:
org.apache.lucene.queryParser.ParseException
I just saw the parameter 'lng' in your query... I believe it should be 'long'.
Give it a try if the link I sent you is not working
----- Original Message ----- From: "Dennis Gearon" <ge...@sbcglobal.net>
To: <so...@lucene.apache.org>
Sent: Wednesday, December 01, 2010 11:39 PM
Subject: Re: spatial query parinsg error:
org.apache.lucene.queryParser.ParseException
Thanks Jean-Sebastion. I forwarded it to my partner. His membership is still
being held up.
I'll be the go between until he has access.
Dennis Gearon
Signature Warning
----------------
It is always a good idea to learn from your own mistakes. It is usually a better
idea to learn from others’ mistakes, so you do not have to make them yourself.
from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036'
EARTH has a Right To Life,
otherwise we all die.
----- Original Message ----
From: Jean-Sebastien Vachon <js...@videotron.ca>
To: solr-user@lucene.apache.org
Sent: Wed, December 1, 2010 7:12:20 PM
Subject: Re: spatial query parinsg error:
org.apache.lucene.queryParser.ParseException
Try this...
http://localhost:8080/solr/select?wt=json&indent=true&q={!spatial%20lat=37.326375%20lng=-121.892639%20radius=3%20unit=km%20threadCount=3}title:Art%20Loft
----- Original Message ----- From: "Dennis Gearon" <ge...@sbcglobal.net>
To: <so...@lucene.apache.org>
Sent: Wednesday, December 01, 2010 7:51 PM
Subject: spatial query parinsg error:
org.apache.lucene.queryParser.ParseException
I am trying to get spatial search to work on my Solr installation. I am running
version 1.4.1 with the Jayway Team spatial-solr-plugin. I am performing the
search with the following url:
http://localhost:8080/solr/select?wt=json&indent=true&q=title:Art%20Loft{!spatial%20lat=37.326375%20lng=-121.892639%20radius=3%20unit=km%20threadCount=3}
The result that I get is the following error:
HTTP Status 400 - org.apache.lucene.queryParser.ParseException: Cannot parse
'title:Art Loft{!spatial lat=37.326375 lng=-121.892639 radius=3 unit=km
threadCount=3}': Encountered " <RANGEEX_GOOP> "lng=-121.892639 "" at line 1,
column 38. Was expecting: "}"
Not sure why it would be complaining about the lng parameter in the query. I
double-checked to make sure that I had the right name for the longitude field in
my solrconfig.xml file.
Any help/suggestions would be greatly appreciated
Dennis Gearon
Signature Warning
----------------
It is always a good idea to learn from your own mistakes. It is usually a better
idea to learn from others’ mistakes, so you do not have to make them yourself.
from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036'
EARTH has a Right To Life,
otherwise we all die.
Re: spatial query parinsg error:
org.apache.lucene.queryParser.ParseException
Posted by Jean-Sebastien Vachon <js...@videotron.ca>.
I just saw the parameter 'lng' in your query... I believe it should be
'long'. Give it a try if the link I sent you is not working
----- Original Message -----
From: "Dennis Gearon" <ge...@sbcglobal.net>
To: <so...@lucene.apache.org>
Sent: Wednesday, December 01, 2010 11:39 PM
Subject: Re: spatial query parinsg error:
org.apache.lucene.queryParser.ParseException
Thanks Jean-Sebastion. I forwarded it to my partner. His membership is still
being held up.
I'll be the go between until he has access.
Dennis Gearon
Signature Warning
----------------
It is always a good idea to learn from your own mistakes. It is usually a
better
idea to learn from others’ mistakes, so you do not have to make them
yourself.
from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036'
EARTH has a Right To Life,
otherwise we all die.
----- Original Message ----
From: Jean-Sebastien Vachon <js...@videotron.ca>
To: solr-user@lucene.apache.org
Sent: Wed, December 1, 2010 7:12:20 PM
Subject: Re: spatial query parinsg error:
org.apache.lucene.queryParser.ParseException
Try this...
http://localhost:8080/solr/select?wt=json&indent=true&q={!spatial%20lat=37.326375%20lng=-121.892639%20radius=3%20unit=km%20threadCount=3}title:Art%20Loft
----- Original Message ----- From: "Dennis Gearon" <ge...@sbcglobal.net>
To: <so...@lucene.apache.org>
Sent: Wednesday, December 01, 2010 7:51 PM
Subject: spatial query parinsg error:
org.apache.lucene.queryParser.ParseException
I am trying to get spatial search to work on my Solr installation. I am
running
version 1.4.1 with the Jayway Team spatial-solr-plugin. I am performing the
search with the following url:
http://localhost:8080/solr/select?wt=json&indent=true&q=title:Art%20Loft{!spatial%20lat=37.326375%20lng=-121.892639%20radius=3%20unit=km%20threadCount=3}
The result that I get is the following error:
HTTP Status 400 - org.apache.lucene.queryParser.ParseException: Cannot parse
'title:Art Loft{!spatial lat=37.326375 lng=-121.892639 radius=3 unit=km
threadCount=3}': Encountered " <RANGEEX_GOOP> "lng=-121.892639 "" at line 1,
column 38. Was expecting: "}"
Not sure why it would be complaining about the lng parameter in the query. I
double-checked to make sure that I had the right name for the longitude
field in
my solrconfig.xml file.
Any help/suggestions would be greatly appreciated
Dennis Gearon
Signature Warning
----------------
It is always a good idea to learn from your own mistakes. It is usually a
better
idea to learn from others’ mistakes, so you do not have to make them
yourself.
from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036'
EARTH has a Right To Life,
otherwise we all die.
Re: spatial query parinsg error: org.apache.lucene.queryParser.ParseException
Posted by Dennis Gearon <ge...@sbcglobal.net>.
Thanks Jean-Sebastion. I forwarded it to my partner. His membership is still
being held up.
I'll be the go between until he has access.
Dennis Gearon
Signature Warning
----------------
It is always a good idea to learn from your own mistakes. It is usually a better
idea to learn from others’ mistakes, so you do not have to make them yourself.
from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036'
EARTH has a Right To Life,
otherwise we all die.
----- Original Message ----
From: Jean-Sebastien Vachon <js...@videotron.ca>
To: solr-user@lucene.apache.org
Sent: Wed, December 1, 2010 7:12:20 PM
Subject: Re: spatial query parinsg error:
org.apache.lucene.queryParser.ParseException
Try this...
http://localhost:8080/solr/select?wt=json&indent=true&q={!spatial%20lat=37.326375%20lng=-121.892639%20radius=3%20unit=km%20threadCount=3}title:Art%20Loft
----- Original Message ----- From: "Dennis Gearon" <ge...@sbcglobal.net>
To: <so...@lucene.apache.org>
Sent: Wednesday, December 01, 2010 7:51 PM
Subject: spatial query parinsg error:
org.apache.lucene.queryParser.ParseException
I am trying to get spatial search to work on my Solr installation. I am running
version 1.4.1 with the Jayway Team spatial-solr-plugin. I am performing the
search with the following url:
http://localhost:8080/solr/select?wt=json&indent=true&q=title:Art%20Loft{!spatial%20lat=37.326375%20lng=-121.892639%20radius=3%20unit=km%20threadCount=3}
The result that I get is the following error:
HTTP Status 400 - org.apache.lucene.queryParser.ParseException: Cannot parse
'title:Art Loft{!spatial lat=37.326375 lng=-121.892639 radius=3 unit=km
threadCount=3}': Encountered " <RANGEEX_GOOP> "lng=-121.892639 "" at line 1,
column 38. Was expecting: "}"
Not sure why it would be complaining about the lng parameter in the query. I
double-checked to make sure that I had the right name for the longitude field in
my solrconfig.xml file.
Any help/suggestions would be greatly appreciated
Dennis Gearon
Signature Warning
----------------
It is always a good idea to learn from your own mistakes. It is usually a better
idea to learn from others’ mistakes, so you do not have to make them yourself.
from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036'
EARTH has a Right To Life,
otherwise we all die.
Re: spatial query parinsg error: org.apache.lucene.queryParser.ParseException
Posted by Dennis Gearon <ge...@sbcglobal.net>.
It WORKED!!!!
Thank you so much everybody!
I feel like jumping up and down like 'Hiro' on Heroes
Dennis Gearon
----- Original Message ----- From: "Dennis Gearon" <ge...@sbcglobal.net>
To: <so...@lucene.apache.org>
Sent: Wednesday, December 01, 2010 7:51 PM
Subject: spatial query parinsg error:
org.apache.lucene.queryParser.ParseException
I am trying to get spatial search to work on my Solr installation. I am running
version 1.4.1 with the Jayway Team spatial-solr-plugin. I am performing the
search with the following url:
http://localhost:8080/solr/select?wt=json&indent=true&q=title:Art%20Loft{!spatial%20lat=37.326375%20lng=-121.892639%20radius=3%20unit=km%20threadCount=3}
The result that I get is the following error:
HTTP Status 400 - org.apache.lucene.queryParser.ParseException: Cannot parse
'title:Art Loft{!spatial lat=37.326375 lng=-121.892639 radius=3 unit=km
threadCount=3}': Encountered " <RANGEEX_GOOP> "lng=-121.892639 "" at line 1,
column 38. Was expecting: "}"
Not sure why it would be complaining about the lng parameter in the query. I
double-checked to make sure that I had the right name for the longitude field in
my solrconfig.xml file.
Any help/suggestions would be greatly appreciated
Dennis Gearon
Signature Warning
----------------
It is always a good idea to learn from your own mistakes. It is usually a better
idea to learn from others’ mistakes, so you do not have to make them yourself.
from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036'
EARTH has a Right To Life,
otherwise we all die.
Re: spatial query parinsg error:
org.apache.lucene.queryParser.ParseException
Posted by Jean-Sebastien Vachon <js...@videotron.ca>.
Try this...
http://localhost:8080/solr/select?wt=json&indent=true&q={!spatial%20lat=37.326375%20lng=-121.892639%20radius=3%20unit=km%20threadCount=3}title:Art%20Loft
----- Original Message -----
From: "Dennis Gearon" <ge...@sbcglobal.net>
To: <so...@lucene.apache.org>
Sent: Wednesday, December 01, 2010 7:51 PM
Subject: spatial query parinsg error:
org.apache.lucene.queryParser.ParseException
I am trying to get spatial search to work on my Solr installation. I am
running
version 1.4.1 with the Jayway Team spatial-solr-plugin. I am performing the
search with the following url:
http://localhost:8080/solr/select?wt=json&indent=true&q=title:Art%20Loft{!spatial%20lat=37.326375%20lng=-121.892639%20radius=3%20unit=km%20threadCount=3}
The result that I get is the following error:
HTTP Status 400 - org.apache.lucene.queryParser.ParseException: Cannot parse
'title:Art Loft{!spatial lat=37.326375 lng=-121.892639 radius=3 unit=km
threadCount=3}': Encountered " <RANGEEX_GOOP> "lng=-121.892639 "" at line 1,
column 38. Was expecting: "}"
Not sure why it would be complaining about the lng parameter in the query. I
double-checked to make sure that I had the right name for the longitude
field in
my solrconfig.xml file.
Any help/suggestions would be greatly appreciated
Dennis Gearon
Signature Warning
----------------
It is always a good idea to learn from your own mistakes. It is usually a
better
idea to learn from others’ mistakes, so you do not have to make them
yourself.
from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036'
EARTH has a Right To Life,
otherwise we all die.