[Example] Compound Queries

2011-01-11 Thread Adam Estrada
All,

I have the following query which works just fine for querying a date range.
Now I would like to add any kind of spatial query to the mix. Would someone
be so kind as to help me out with an example spatial query that works in
conjunction with my date range query?

http://localhost:8983/solr/select/?q=hurricane+AND+eventdate:[2006-01-21T00:00:000Z+TO+2007-01-21T00:00:000Z]version=2.2start=0rows=10indent=on

I think it's something like this but my results are a not correct

http://localhost:8983/solr/select/?q=hurricane+AND+eventdate:[2006-01-21T00:00:000Z+TO+2007-01-21T00:00:000Z]sfield=storept=45.15,-93.85sort=geodist()%20ascversion=2.2start=0rows=10indent=on

Your feedback is greatly appreciated!
Adam


Re: [Example] Compound Queries

2011-01-11 Thread Estrada Groups
I am using Solr4.0 for my testing right now if that helps.

Adam



On Jan 11, 2011, at 10:46 PM, Adam Estrada estrada.adam.gro...@gmail.com 
wrote:

 All,
 
 I have the following query which works just fine for querying a date range.
 Now I would like to add any kind of spatial query to the mix. Would someone
 be so kind as to help me out with an example spatial query that works in
 conjunction with my date range query?
 
 http://localhost:8983/solr/select/?q=hurricane+AND+eventdate:[2006-01-21T00:00:000Z+TO+2007-01-21T00:00:000Z]version=2.2start=0rows=10indent=on
 
 I think it's something like this but my results are a not correct
 
 http://localhost:8983/solr/select/?q=hurricane+AND+eventdate:[2006-01-21T00:00:000Z+TO+2007-01-21T00:00:000Z]sfield=storept=45.15,-93.85sort=geodist()%20ascversion=2.2start=0rows=10indent=on
 
 Your feedback is greatly appreciated!
 Adam