AutoCompleteHighlighters Class
Provides pre-built result highlighters for AutoComplete.
Index
Methods
- charMatch static
- charMatchCase static
- charMatchFold static
- phraseMatch static
- phraseMatchCase static
- phraseMatchFold static
- startsWith static
- startsWithCase static
- startsWithFold static
- subWordMatch static
- subWordMatchCase static
- subWordMatchFold static
- wordMatch static
- wordMatchCase static
- wordMatchFold static
Methods
charMatch
-
query
-
results
Highlights any individual query character that occurs anywhere in a result. Case-insensitive.
Parameters:
-
query
StringQuery to match
-
results
ArrayResults to highlight
Returns:
Highlighted results
charMatchCase
-
query
-
results
Case-sensitive version of charMatch()
.
Parameters:
-
query
StringQuery to match
-
results
ArrayResults to highlight
Returns:
Highlighted results
charMatchFold
-
query
-
results
Accent-folding version of charMatch()
.
Parameters:
-
query
StringQuery to match
-
results
ArrayResults to highlight
Returns:
Highlighted results
phraseMatch
-
query
-
results
Highlights the complete query as a phrase anywhere within a result. Case- insensitive.
Parameters:
-
query
StringQuery to match
-
results
ArrayResults to highlight
Returns:
Highlighted results
phraseMatchCase
-
query
-
results
Case-sensitive version of phraseMatch()
.
Parameters:
-
query
StringQuery to match
-
results
ArrayResults to highlight
Returns:
Highlighted results
phraseMatchFold
-
query
-
results
Accent-folding version of phraseMatch()
.
Parameters:
-
query
StringQuery to match
-
results
ArrayResults to highlight
Returns:
Highlighted results
startsWith
-
query
-
results
Highlights the complete query as a phrase at the beginning of a result. Case-insensitive.
Parameters:
-
query
StringQuery to match
-
results
ArrayResults to highlight
Returns:
Highlighted results
startsWithCase
-
query
-
results
Case-sensitive version of startsWith()
.
Parameters:
-
query
StringQuery to match
-
results
ArrayResults to highlight
Returns:
Highlighted results
startsWithFold
-
query
-
results
Accent-folding version of startsWith()
.
Parameters:
-
query
StringQuery to match
-
results
ArrayResults to highlight
Returns:
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.
Parameters:
-
query
StringQuery to match
-
results
ArrayResults to highlight
Returns:
Highlighted results
subWordMatchCase
-
query
-
results
Case-sensitive version of subWordMatch()
.
Parameters:
-
query
StringQuery to match
-
results
ArrayResults to highlight
Returns:
Highlighted results
subWordMatchFold
-
query
-
results
Accent-folding version of subWordMatch()
.
Parameters:
-
query
StringQuery to match
-
results
ArrayResults to highlight
Returns:
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.
Parameters:
-
query
StringQuery to match
-
results
ArrayResults to highlight
Returns:
Highlighted results
wordMatchCase
-
query
-
results
Case-sensitive version of wordMatch()
.
Parameters:
-
query
StringQuery to match
-
results
ArrayResults to highlight
Returns:
Highlighted results
wordMatchFold
-
query
-
results
Accent-folding version of wordMatch()
.
Parameters:
-
query
StringQuery to match
-
results
ArrayResults to highlight
Returns:
Highlighted results