So here is my spec for lat/long (similar to yours except I explicitly
define the sub-field names for clarity)
<fieldType name="latLon" class="solr.LatLonType" subFieldSuffix="_latLon"/>
<field name="location" type="latLon" indexed="true" stored="true"/>
<!-- Could use dynamic fields here but prefer explicitly defining them
so it's clear what's going on. The LatLonType looks to be a wrapper
around these fields? -->
<field name="location_0_latLon" type="tdouble" indexed="true" stored="true"/>
<field name="location_1_latLon" type="tdouble" indexed="true" stored="true"/>

So then the query would be location_0_latLon:[ * TO *].

Looking at your schema, my guess would be:
location_0_coordinate:[* TO *]
location_1_coordinate:[* TO *]

Let me know if that helps
Amit

On Fri, Oct 19, 2012 at 9:37 AM, darul <daru...@gmail.com> wrote:
> Your idea looks great but with this schema info :
>
>  <fieldType name="point" class="solr.PointType" dimension="2"
> subFieldSuffix="_d"/>
> <fieldType name="location" class="solr.LatLonType"
> subFieldSuffix="_coordinate"/>
> <fieldtype name="geohash" class="solr.GeoHashField"/>
> .....
>
> <field name="geodata" type="location" indexed="true" stored="true"/>
> <dynamicField name="*_coordinate"  type="tdouble" indexed="true"
> stored="false" />
>
> How can I use it ?
>
> fq=location_coordinate:[1 to *] not working by instance
>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Easy-question-docs-with-empty-geodata-field-tp4014751p4014779.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to