I think I found the reason/bug
the type was wrong, it should be
<field name="location_geo" type="*location_rpt*" indexed="true" stored=
"true" *multiValued*="true" />


On Tue, May 28, 2013 at 1:37 AM, Eric Grobler <impalah...@googlemail.com>wrote:

> Hi Solr experts,
>
> I have a solr 4.3 schema
> <fieldType name="location_rpt" class=
> "solr.SpatialRecursivePrefixTreeFieldType" geo="true" distErrPct="0.025"
> maxDistErr="0.000009" units="degrees" />
>
>  <field name="location_geo" type="location" indexed="true" stored="true" *
> multiValued*="true" />
>
> and xml data
> <field name="location_geo">51.1164,6.9612</field>
> <field name="location_geo">52.3473,9.77564</field>
>
> If I run this query:
> fq={!geofilt pt=51.11,6.9 sfield=location_geo d=20}
> I get no result.
>
>
> But if I remove the second geo line and only have this geo coordinate it
> works:
> <field name="location_geo">51.1164,6.9612</field>
>
> *Thus it seems that the multi valued index does not work *even though
> solr returns the doc values as:
> <arr name="location_geo"> <str>51.1164,6.9612</str> <str>52.3473,9.77564</
> str> </arr>
>
>
> Is my schema wrongly configured?
>
> Thanks
> Ericz
>
>
>
>

Reply via email to