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

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

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

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