Provides pre-built result highlighters for AutoComplete.
charMatch
query
results
Highlights any individual query character that occurs anywhere in a result. Case-insensitive.
Highlighted results
charMatchCase
query
results
Case-sensitive version of charMatch()
.
Highlighted results
charMatchFold
query
results
Accent-folding version of charMatch()
.
Highlighted results
phraseMatch
query
results
Highlights the complete query as a phrase anywhere within a result. Case- insensitive.
Highlighted results
phraseMatchCase
query
results
Case-sensitive version of phraseMatch()
.
Highlighted results
phraseMatchFold
query
results
Accent-folding version of phraseMatch()
.
Highlighted results
startsWith
query
results
Highlights the complete query as a phrase at the beginning of a result. Case-insensitive.
Highlighted results
startsWithCase
query
results
Case-sensitive version of startsWith()
.
Highlighted results
startsWithFold
query
results
Accent-folding version of startsWith()
.
Highlighted results
subWordMatch
query
results
Highlights portions of results in which words from the query match either whole words or parts of words in the result. Non-word characters like whitespace and certain punctuation are ignored. Case-insensitive.
Highlighted results
subWordMatchCase
query
results
Case-sensitive version of subWordMatch()
.
Highlighted results
subWordMatchFold
query
results
Accent-folding version of subWordMatch()
.
Highlighted results
wordMatch
query
results
Highlights individual words in results that are also in the query. Non-word characters like punctuation are ignored. Case-insensitive.
Highlighted results