Tôi có tài liệu bằng solr với các trường Lat
và Lng
. Tôi cần phải thêm một trường mới có tên là store
chứa dữ liệu được lấy từ cả hai Lat
và Lng
. Tôi cố gắng để sử dụng copyField
lĩnh vực nhưng tôi đã nhận lỗi:Làm thế nào có thể sao chép dữ liệu trường 2 vào một trường trên Solr
Field store is not multivalued and destination for multiple copyFields (2)
Dưới đây là cấu hình của tôi:
<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"/>
Có thể sao chép nội dung của hai lĩnh vực trong lĩnh vực địa điểm giống nhau không?
nếu bạn nhìn thấy tôi đã không giải quyết vấn đề này. – Mirodil