This section will detail the order in which spellings, rules, redirects are activated. It is useful to understand the order in which events happen to make the best use of the tools at your disposal.
- If a
Redirectexists, all processing of the query stops and the search service returns the redirect URL.
- If there are
"within the search query, none of the query-rewrite apply (Stop Words, Phrases, Spelling, Synonyms).
Stop Wordsare removed from the search query before any further processing is carried out unless the query contains quotes.
Spellingcorrection is then applied to the search query unless the query contains quotes.
Related QueryTerms are found based on the search query at this point (with spell corrections applied).
Phrasesare then applied to the search query, incorporating all of the above rewrites. Only the largest phrase will be applied.
Synonymsare then applied to the search query unless the search query contains quotes.
- If you are using the legacy master-variant model, at this point the check for a variant term in the query is done, and the correct collection is determined.
- A pre-query check of the rule using the original search string is done to determine if a biasing profile, or other rule level configurations, should be applied to this search query. Any query zones within the triggered rule will be fired off.
- The engine evaluates the
Dynamic Navigationsthat are defined within by the query (following normal precedence of Area - Rule - Query specificity) and fetches the list of Dynamic Navigations to request.
search queryis then fired off against the search engine. This will bring back the results and the navigations together.
Automatic spell correction: If no results were returned, and there is a Did You Mean, and autocorrect was not disabled, a second query is fired on the first Did You Mean. No query rewrites or rule validations will be applied to that search.
- If at query time the API defined
restrictNavigation, the response is truncated to those navigations.
- If no rule was fired prior, a post-query check is done on rules with “No Result” and “No Navigation” triggers to see if a rule needs to be activated. Any query zones within the triggered rule will be fired off.
- Finally, the response is returned to the calling application.