Những gì tôi có bây giờ là hai filds kép:Trong dih Solr nhập hai đôi tại một địa điểm
<field name="x_geo_x_coordinate" type="double" indexed="true" stored="true" default="0"/>
<field name="x_geo_y_coordinate" type="double" indexed="true" stored="true" default="0"/>
và những gì tôi muốn: 2 giá trị tăng gấp đôi trong lĩnh vực một địa điểm:
<field name="x_geo" type="location" indexed="true" stored="true" default="0.0,0.0"/>
Những gì tôi đã thử cho đến nay và không hoạt động:
<copyField source="*_coordinate" dest="x_geo"/>
<copyField source="x_geo_str" dest="x_geo"/>
Bất kỳ giải pháp đơn giản nào? Cảm ơn trước!
Bạn có thể cho tôi một ví dụ ngắn không? – vuky