I have a document in solr with Lat
and Lng
fields. I need to add a new field called store
containing data taken from both the Lat
and Lng
. I tried to use copyField
field but I got the error:
Field store is not multivalued and destination for multiple copyFields (2)
Here is my configuration:
<fields>
<field name="lat" type="sdouble" indexed="true" stored="true" required="true" multiValued="false" />
<field name="lng" type="sdouble" indexed="true" stored="true" required="true" multiValued="false" />
<field name="store" type="text" indexed="true" stored="true"/>
</fields>
<copyField source="lat" dest="store"/>
<copyField source="lng" dest="store"/>
Is it possible to copy the content of two fields within the same destination field?