Export (0) Print
Expand All

SearchOptions.AutocorrectQuery Property

This documentation is no longer available on MSDN. It is available as a CHM or PDF download. For the newest Geocoding, Imagery, Routing and Traffic services, see the Bing Maps REST Services

A bool indicating if the spelling of words in the search query should be corrected. Optional. The default value is true. Set this property before making a service request.


public bool AutocorrectQuery { set; get; }

If AutocorrectQuery property is true, then any misspelled words in the search query are corrected before performing the search.

If the search service finds that a search query needs to be corrected, the corrected query is returned in the SearchResponse.QuerySuggestion Property. However, the corrected query is only used to search for results if AutocorrectQuery property is set to true.

If a corrected query was used to search for results, the returned SearchResultSet.QueryCorrected Property is true.

Show:
© 2014 Microsoft