I have defined a Sitecore index field as below
[IndexField("_coordinates")]
public List<Coordinate> DealLocations { get; set; }
When I execute a query like
queryable.OrderByDistance(s => s.DealLocations, new Coordinate(latitude, longitude))
I got an exception in SOLR log as below
ERROR Solr Error : [The field _coordinates_sm does not support spatial filtering] - Query attempted: [({!geofilt pt=25.1406,55.1917 sfield=_coordinates_sm d=0 score=distance filter=false} AND _template:(f250acc7e16e4f6cb7b8a2e6f41a6bf4))]
It's working fine with a single Coordinate
but when I define the field List<Coordinate>
, I am getting an exception.
Is there any way, we can compare more than one Coordinates or list of Coordinates in SOLR query?