lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Joiner <thomas.b.joi...@gmail.com>
Subject Re: Problems indexing spatial field - undefined subField
Date Wed, 01 Sep 2010 13:25:50 GMT
While you have already solved your problem, my guess as to why it didn't
work originally is that you probably didn't have a
<dynamicField name="*_latLon" indexed="true" stored="true" />

What subFieldType does is it registers a dynamicField for you.
 subFieldSuffix requires that you have already defined that dynamicField.

On Tue, Aug 31, 2010 at 8:07 PM, Simon Wistow <simon@thegestalt.org> wrote:

> On Wed, Sep 01, 2010 at 01:05:47AM +0100, me said:
> > I'm trying to index a latLon field.
> >
> > <fieldType name="latLon" class="solr.LatLonType"
> subFieldSuffix="_latLon"/>
> > <field name="location" type="latLon"  indexed="true"  stored="true"/>
>
> Turns out changing it to
>
> <fieldType name="latLon" class="solr.LatLonType" subFieldType="double"/>
>
> fixed it.
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message