开发者

Solr Spatial Search: "can not use FieldCache on multivalued field"

I'm getting this message from Solr.

The relev开发者_运维技巧ant line on my schema.xml puts the location field as a non multiValued Field as shown below.

<field name="latlong_current" type="location" indexed="true" stored="false" omitNorms="true" multiValued="false" />

Has anyone else run into this with the spatial search feature?


I haven't used location fieldtypes, but I would look to make sure the analysis on that type isn't breaking it into multiple tokens. Apparently there's a LatLonType for storing geocodes, is "location" set to that?

Otherwise, the Solr people are really responsive on their mailing list and on IRC, if you don't get the answer you want here, try there!


If you have these fields in your schema.xml as you should, make sure they are set to multiValued=false

<dynamicField name="*_coordinate"  type="tdouble" indexed="true"  stored="false" multiValued="false"/>
<dynamicField name="*_p" type="location" indexed="true" stored="true" multiValued="false"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜