It is precisely this limitation which triggered me to develop a grid indexing 
approach using Geohashes: https://issues.apache.org/jira/browse/SOLR-2155
This patch requires a Solr trunk release.

If you have a small number of distinct points in total, and you only need 
filtering, then the geohash field in Solr 3.1 may be fast enough for you.

~ David Smiley

On Jun 28, 2011, at 7:53 AM, Darren Govoni wrote:

> Will it be possible to do spatial searches on multi-valued spatial 
> fields soon?
> 
> I have a latlon field (point) that is multi-valued and don't know how to 
> search against it
> such that the lats and lons match correctly - since they are split apart.
> 
> e.g. I have a document with 10 point/latlon values for the same field.
> 
> On 06/28/2011 05:15 AM, marthinal wrote:
>> Yonik Seeley-2-2 wrote:
>>> On Sat, Jun 25, 2011 at 5:56 AM, marthinal
>>> <jm.rodriguez.ve...@gmail.com> wrote:
>>>>> sfield, pt and d can all be specified directly in the spatial
>>>>> functions/filters too, and that will override the global params.
>>>>> 
>>>>> Unfortunately one must currently use lucene query syntax to do an OR.
>>>>> It just makes it look a bit messier.
>>>>> 
>>>>> q=_query_:"{!geofilt}" _query:"{!geofilt sfield=location_2}"
>>>>> 
>>>>> -Yonik
>>>>> http://www.lucidimagination.com
>>>>> 
>>>> @Yonik it seems to work like this, i triyed houndreds of other
>>>> possibilities
>>>> without success:
>>>> 
>>>> q={!geofilt sfield=location_1 pt=36.62,-6.23 d=50}&fq={!geofilt
>>>> sfield=location_2 pt=40.51,-5.91 d=500}
>>> Ah, right.  I had thought you wanted docs that matched either geofilt
>>> (hence OR), not docs that only matched both.
>>> 
>>> -Yonik
>>> http://www.lucidimagination.com
>>> 
>> Yes Yonik what i do now is
>> 
>> q={!geofilt sfield=location_1 pt=36.62,-6.23 d=50}&fq=_query_:"{!geofilt
>> sfield=location_2 pt=40.51,-5.91 d=500}" other_filter:value ......
>> 
>> I write here the query because maybe it *helps* to someone that need to do
>> something like this ...
>> 
>> 
>> 
>> --
>> View this message in context: 
>> http://lucene.472066.n3.nabble.com/multiple-spatial-values-tp1555668p3117145.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
> 

Reply via email to