Try our conversational search powered by Generative AI!

Epi customFilter + WithinDistanceFrom

Vote:
 

Hi all!

I'm struggling to find a solution for my custom filter. I need to search through the objects where every object has a collection of GeoLocations. I need to check the items of the collection and grab the object which has at least one GeoLocation in defined radius. I need something like this (request is wrong):

  FilterBuilder = SearchClient.Instance.BuildFilter().And(x => x.GeoLocations.Where(n=>n.WithinDistanceFrom(location, radius)));

Thanks in advance!

#196512
Sep 03, 2018 10:48
Vote:
 

Hi Olga,

I think this is what you're looking for https://world.episerver.com/documentation/developer-guides/find/NET-Client-API/searching/Geo-Search/ ?

Hope this help,

/Son Do

#196548
Edited, Sep 04, 2018 3:02
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.