Hello,
I'm trying to perform some queries on a location field on the index.
The requirement is to search listings inside a pair of coordinates, like a
bounding box.
Taking a look on the wiki, I noticed that there is the option to use the
bbox query but in does not create a retangular shaped box
What are your results? Can you show us the field definition for local
and the results of adding debugQuery=on?
Because this should work as far as I can tell.
Best
Erick
On Thu, Mar 29, 2012 at 11:04 AM, Alexandre Rocco alel...@gmail.com wrote:
Hello,
I'm trying to perform some queries on a
Erick,
My location field is defined like in the example project:
field name=local type=location indexed=true stored=true/
Also, there is the dynamic that stores the splitted coordinates:
dynamicField name=*_coordinate type=double indexed=true
stored=false multiValued=false/
The response XML
This all looks fine, so the next question is whether or not your
documents have the value you think.
+local_0_coordinate:[-23.6674 TO -23.6705] +local_1_coordinate:[-46.7314 TO
-46.7274]
is the actual translated filter.
So I'd check the actual documents in the index to see if you have a single
Erick,
Just checked on the separate fields and everything looks fine.
One thing that I'm not completely sure is if this query I tried to perform
is correct.
One sample document looks like this:
doc
str name=id200/str
str name=local-23.6696784,-46.7290193/str
double
On Thu, Mar 29, 2012 at 6:20 PM, Alexandre Rocco alel...@gmail.com wrote:
http://localhost:8984/solr/select?q=*:*fq=local:[-23.6677,-46.7315 TO
-23.6709,-46.7261]
Range queries always need to be [lower_bound TO upper_bound]
Try
http://localhost:8984/solr/select?q=*:*fq=local:[-23.6709,-46.7315
Yonik,
Thanks for the heads-up. That one worked.
Just trying to wrap around how it would work on a real case. To test this
one I just got the coordinates from Google Maps and searched within the
pair of coordinates as I got them. Should I always check which is the lower
and upper to assemble the
On Thu, Mar 29, 2012 at 6:44 PM, Alexandre Rocco alel...@gmail.com wrote:
Yonik,
Thanks for the heads-up. That one worked.
Just trying to wrap around how it would work on a real case. To test this
one I just got the coordinates from Google Maps and searched within the pair
of coordinates as