public final class AutocompleteOptions extends Object
Constructor and Description |
---|
AutocompleteOptions() |
Modifier and Type | Method and Description |
---|---|
AutocompleteMode |
getAutocompleteMode()
Get the autocompleteMode property: Specifies the mode for Autocomplete.
|
String |
getFilter()
Get the filter property: An OData expression that filters the documents used to produce completed terms for the
Autocomplete result.
|
String |
getHighlightPostTag()
Get the highlightPostTag property: A string tag that is appended to hit highlights.
|
String |
getHighlightPreTag()
Get the highlightPreTag property: A string tag that is prepended to hit highlights.
|
Double |
getMinimumCoverage()
Get the minimumCoverage property: A number between 0 and 100 indicating the percentage of the index that must be
covered by an autocomplete query in order for the query to be reported as a success.
|
List<String> |
getSearchFields()
Get the searchFields property: The list of field names to consider when querying for auto-completed terms.
|
Integer |
getTop()
Get the top property: The number of auto-completed terms to retrieve.
|
AutocompleteOptions |
setAutocompleteMode(AutocompleteMode autocompleteMode)
Set the autocompleteMode property: Specifies the mode for Autocomplete.
|
AutocompleteOptions |
setFilter(String filter)
Set the filter property: An OData expression that filters the documents used to produce completed terms for the
Autocomplete result.
|
AutocompleteOptions |
setHighlightPostTag(String highlightPostTag)
Set the highlightPostTag property: A string tag that is appended to hit highlights.
|
AutocompleteOptions |
setHighlightPreTag(String highlightPreTag)
Set the highlightPreTag property: A string tag that is prepended to hit highlights.
|
AutocompleteOptions |
setMinimumCoverage(Double minimumCoverage)
Set the minimumCoverage property: A number between 0 and 100 indicating the percentage of the index that must be
covered by an autocomplete query in order for the query to be reported as a success.
|
AutocompleteOptions |
setSearchFields(String... searchFields)
Set the searchFields property: The list of field names to consider when querying for auto-completed terms.
|
AutocompleteOptions |
setTop(Integer top)
Set the top property: The number of auto-completed terms to retrieve.
|
AutocompleteOptions |
setUseFuzzyMatching(Boolean useFuzzyMatching)
Set the useFuzzyMatching property: A value indicating whether to use fuzzy matching for the autocomplete query.
|
Boolean |
useFuzzyMatching()
Get the useFuzzyMatching property: A value indicating whether to use fuzzy matching for the autocomplete query.
|
public AutocompleteMode getAutocompleteMode()
public AutocompleteOptions setAutocompleteMode(AutocompleteMode autocompleteMode)
autocompleteMode
- the autocompleteMode value to set.public String getFilter()
public AutocompleteOptions setFilter(String filter)
filter
- the filter value to set.public Boolean useFuzzyMatching()
public AutocompleteOptions setUseFuzzyMatching(Boolean useFuzzyMatching)
useFuzzyMatching
- the useFuzzyMatching value to set.public String getHighlightPostTag()
public AutocompleteOptions setHighlightPostTag(String highlightPostTag)
highlightPostTag
- the highlightPostTag value to set.public String getHighlightPreTag()
public AutocompleteOptions setHighlightPreTag(String highlightPreTag)
highlightPreTag
- the highlightPreTag value to set.public Double getMinimumCoverage()
public AutocompleteOptions setMinimumCoverage(Double minimumCoverage)
minimumCoverage
- the minimumCoverage value to set.public List<String> getSearchFields()
public AutocompleteOptions setSearchFields(String... searchFields)
searchFields
- the searchFields value to set.public Integer getTop()
public AutocompleteOptions setTop(Integer top)
top
- the top value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.