You're on the right track. In the default schemas it's kind of tricky. You
see the bit of the "location" definition as:
subFieldSuffix="_coordinate"

And later, you see:
<dynamicField name="*_coordinate"  type="tdouble" indexed="true"
stored="false"/>

So the latlng_0/latlng_1 _coordinate fields are created by this
dynamic field mapping.
You can either leave the dynamic field stuff there, or I suppose
create your own. I'd
use the "tdouble" though, presumably the folks who created the example
did it for a
reason....

Best
Erick

On Thu, May 10, 2012 at 5:01 AM, Spadez <james_will...@hotmail.com> wrote:
> Right, for Long/Lat I found this information:
>
> <-----Long / Lat Field Type----->
>
> <fieldType name="location" class="solr.LatLonType"
> subFieldSuffix="_coordinate"/>
>
> <-----Fields----->
>
> <field name="latlng" type="location" indexed="true" stored="true" />
> <field name="latlng_0_coordinate" type="double" indexed="true" stored="true"
> />
> <field name="latlng_1_coordinate" type="double" indexed="true" stored="true"
> />
>
> Does this look more logical?
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Newbie-tries-to-make-a-Schema-xml-tp3974200p3976539.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to