

The frequency represents the number of times the term appears in the documents of that index. The higher the score, the better the suggestion is. To learn about the slop option, see Options. To autocomplete this phrase, use the match_phrase_prefix query to search all text_entry fields that begin with the prefix “qui.” To make the word order and relative positions flexible, specify a slop value. Prefix matching finds documents that matches the last term in the query string.įor example, assume that the user types “qui” into a search UI. These methods are described in the following sections. Implement autocomplete using one of three methods: OpenSearch lets you design autocomplete that updates with each keystroke, provides a few relevant suggestions, and tolerates typos. Highlight the search term in the results.Īutocomplete shows suggestions to users while they type.įor example, if a user types “pop,” OpenSearch provides suggestions like “popcorn” or “popsicles.” These suggestions preempt your user’s intention and lead them to a possible search term more quickly. Return a large number of results in batches.Īllow sorting results by different criteria. Rather than a single, long list, break search results into pages.
