Example #1
0
        public async Task ExecuteFilter()
        {
            IsBusy = true;
            try
            {
                var results = await _searchService.ExecuteSearch(SearchQuery, SearchFacets.ToList());

                var synonymMap = await GetSynonymMap(SearchQuery);
                await UpdateSearchResults(results.JobResults, synonymMap);

                UpdateFacets(results.Facets, true);
            }
            finally
            {
                IsBusy = false;
            }
        }
Example #2
0
        public async Task ExecuteGeoFilter()
        {
            IsBusy = true;
            try
            {
                var results = await _searchService.ExecuteSearch(SearchQuery, SearchFacets.ToList(), new PositionDistanceSearch()
                {
                    GeoPoint = _searchLocationIcon.GeoPoint, Radius = KilometersSelected
                });

                var synonymMap = await GetSynonymMap(SearchQuery);
                await UpdateSearchResults(results.JobResults, synonymMap);

                UpdateFacets(results.Facets, true);
            }
            finally
            {
                IsBusy = false;
            }
        }