Quick Tour

With a focus on speed, relevance, and ease of use, Live Search is a game changer for shoppers and merchants alike. Watch the following video, then take a quick tour of Live Search from the storefront.

For a more in-depth video about using and configuring Live Search, see the Full Demonstration on Live Search topic.

Search as you type

Live Search responds with suggested products and a thumbnail image of top search results in a popover as shoppers type queries into the Search box. The product detail page displays when shoppers click a suggested or featured product. A View all link in the footer of the popover displays the search results page.

Live Search returns “search as you type” results for a query of two or more characters. For a partial match, the maximum number of characters per word is 20. The number of characters in the query is not configurable. The popover includes thename, sku, and category_ids fields.

Example storefront - search as you type

View all search results

To list all products returned by the “search as you type” query, click View all in the footer of the popover.

Example storefront - price facets

How Live Search handles typos

When a search is made, Live Search runs a non-fuzzy search which does not account for any typos. If no results are found, Live Search performs a second fuzzy search, which takes into account minor typos. The fuzzy search is run with a maximum edit distance of 1. This edit distance uses the concept of Levenshtein distance, and it allows for three types of operations:

Operation
Description
Example
Insertion
Adding a character.
“cat” -> “cart”
Deletion
Removing a character.
“cart” -> “cat”
Substitution
Replacing one character with another.
“cart” -> “cast”

In addition to the fuzzy search logic, transpositions are also accounted for, that is, where two adjacent characters in a word are swapped, for example “teh” instead of “the”. Note that these edit limits are per word and not the phrase as a whole.