Hello all,

we are not able to access individual latitude and longitude values as
subfields of latlongtype field in solr 9.5

In SOLR 8.10:
<fieldType name="latlongtype" class="solr.LatLonType"
subFieldSuffix="_coordinate"/>
<field name="latlon" type="latlongtype" indexed="true" stored="true"
required="false" multiValued="false"/>
<dynamicField name="*_coordinate" type="double" indexed="true"
stored="true"/>

Here, we are able to access individual latitute and longitude values of doc
as below:
latlon_0_coordinate
latlon_1_coordinate

Here, we were able to calculate distance using dist():
*dist(2,28.406963,77.8498292,latlon_0_coordinate,latlon_1_coordinate)*


Now, after migrating to solr 9.5, we are not able to access them

In solr 9.5:
<fieldType name="latlongtype" class="solr.LatLonPointSpatialField"
docValues="true"/>
<field name="latlon" type="latlongtype" indexed="true" stored="true"
required="false" multiValued="false"/>
<dynamicField name="*_coordinate" type="double" indexed="true"
stored="true"/>

Pls help us know if we are missing anything here

Reply via email to