Skip to content

Instantly share code, notes, and snippets.

@kdhollow
Created February 27, 2016 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdhollow/6d302fa000f93b32fd1f to your computer and use it in GitHub Desktop.
Save kdhollow/6d302fa000f93b32fd1f to your computer and use it in GitHub Desktop.
var result = await azureSearchEngine.SearchDocumentsAsync<Airport>(indexName, searchText, facetfields, true, top, null,
model.Filter,
airport => new Airport() {Id = airport.Id, Identifier = airport.Identifier, Name = airport.Name, City = airport.City, State = airport.State, Chart = airport.Chart, Region = airport.Region, AfdLink = airport.AfdLink},
(facetName, facets) =>
{
facetResults.Add(new FacetInfo() {FacetName = facetName, Facets = facets});
},
count => { });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment