Example #1
0
        public void ReIndex()
        {
            var search = new ElasticSearchFacade(_DBContext);

            search.ReIndexRaces();
            search.ReIndexTriathletes();
        }
Example #2
0
        public List <Race> GetRacesByRunCondition(string conditions)
        {
            var search = new ElasticSearchFacade(_DBContext);

            return(search.SearchRaceConditions("conditions.run*.tag.value", conditions));
        }
Example #3
0
        public List <Triathlete> GetAthletesByName_UseElasticSearch(string name)
        {
            var search = new ElasticSearchFacade(_DBContext);

            return(search.SearchAthletesFieldQuery("name", name));
        }