public void ReIndex() { var search = new ElasticSearchFacade(_DBContext); search.ReIndexRaces(); search.ReIndexTriathletes(); }
public List <Race> GetRacesByRunCondition(string conditions) { var search = new ElasticSearchFacade(_DBContext); return(search.SearchRaceConditions("conditions.run*.tag.value", conditions)); }
public List <Triathlete> GetAthletesByName_UseElasticSearch(string name) { var search = new ElasticSearchFacade(_DBContext); return(search.SearchAthletesFieldQuery("name", name)); }