Mladen,
  FYI I just committed this to 4.x: 
https://issues.apache.org/jira/browse/SOLR-4230
~ David


mladen micevic wrote
> Hi,
> I went through example for spatial search in Solr 4.0
> (http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4)
> Both indexing and searching work fine.
> 
> Example is: fq=geo:"Intersects(-74.093 41.042 -69.347 44.558)" 
> 
> My problem is how to send values to "Intersects" operation as parameters.
> If would like to send custom parameters in URL: 
>         ...&lon1=-74.093&lat1=41.042&lon2=-69.347&lat2=44.558
> and have default filter query:
>           fq=geo:"Intersects($lon1 $lat1 $lon2 $lat2)
> I tried this approach - but it did not work.
> 
> How do I do this?
> 
> Using {!bbox} is not documented in 4.0 wiki.
> Anyways, I tried to use it against "geo" field but got following error:
>    field does not support spatial filtering ...
> Can I use {!bbox}  in 4.0 ?
> 
> 
> Thanks.
> Mladen





-----
 Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Spatial-filter-in-solr-4-0-Intersects-operation-with-parameters-tp4029034p4030138.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to