Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

Filtering a list of geo locations

$
0
0

We have trip object contains a list of geographic locations as this

     public NestedList<GeoLocation> GeoLocations { get; set; }

I can see the list being indexed

We have the filter like the below to find trips within an area.

   SearchQuery = SearchQuery.Filter(t => t.GeoLocations, geo => geo.Within(searchParameters.Sodermalm));

However the Find fails to execute the phase: failed to find geo_point field

 

{"error":"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures .........................

] failed to find geo_point field [GeoLocations$$nested.]]; }]","status":400}

Anyone can help this. Thanks a lot.


Viewing all articles
Browse latest Browse all 6894

Trending Articles