public final class AutocompleteRequest extends Object
Constructor and Description |
---|
AutocompleteRequest() |
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.
|
String |
getSearchFields()
Get the searchFields property: The comma-separated list of field names
to consider when querying for auto-completed terms.
|
String |
getSearchText()
Get the searchText property: The search text on which to base
autocomplete results.
|
String |
getSuggesterName()
Get the suggesterName property: The name of the suggester as specified
in the suggesters collection that's part of the index definition.
|
Integer |
getTop()
Get the top property: The number of auto-completed terms to retrieve.
|
AutocompleteRequest |
setAutocompleteMode(AutocompleteMode autocompleteMode)
Set the autocompleteMode property: Specifies the mode for Autocomplete.
|
AutocompleteRequest |
setFilter(String filter)
Set the filter property: An OData expression that filters the documents
used to produce completed terms for the Autocomplete result.
|
AutocompleteRequest |
setHighlightPostTag(String highlightPostTag)
Set the highlightPostTag property: A string tag that is appended to hit
highlights.
|
AutocompleteRequest |
setHighlightPreTag(String highlightPreTag)
Set the highlightPreTag property: A string tag that is prepended to hit
highlights.
|
AutocompleteRequest |
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.
|
AutocompleteRequest |
setSearchFields(String searchFields)
Set the searchFields property: The comma-separated list of field names
to consider when querying for auto-completed terms.
|
AutocompleteRequest |
setSearchText(String searchText)
Set the searchText property: The search text on which to base
autocomplete results.
|
AutocompleteRequest |
setSuggesterName(String suggesterName)
Set the suggesterName property: The name of the suggester as specified
in the suggesters collection that's part of the index definition.
|
AutocompleteRequest |
setTop(Integer top)
Set the top property: The number of auto-completed terms to retrieve.
|
AutocompleteRequest |
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 String getSearchText()
public AutocompleteRequest setSearchText(String searchText)
searchText
- the searchText value to set.public AutocompleteMode getAutocompleteMode()
public AutocompleteRequest setAutocompleteMode(AutocompleteMode autocompleteMode)
autocompleteMode
- the autocompleteMode value to set.public String getFilter()
public AutocompleteRequest setFilter(String filter)
filter
- the filter value to set.public Boolean useFuzzyMatching()
public AutocompleteRequest setUseFuzzyMatching(Boolean useFuzzyMatching)
useFuzzyMatching
- the useFuzzyMatching value to set.public String getHighlightPostTag()
public AutocompleteRequest setHighlightPostTag(String highlightPostTag)
highlightPostTag
- the highlightPostTag value to set.public String getHighlightPreTag()
public AutocompleteRequest setHighlightPreTag(String highlightPreTag)
highlightPreTag
- the highlightPreTag value to set.public Double getMinimumCoverage()
public AutocompleteRequest setMinimumCoverage(Double minimumCoverage)
minimumCoverage
- the minimumCoverage value to set.public String getSearchFields()
public AutocompleteRequest setSearchFields(String searchFields)
searchFields
- the searchFields value to set.public String getSuggesterName()
public AutocompleteRequest setSuggesterName(String suggesterName)
suggesterName
- the suggesterName value to set.public Integer getTop()
public AutocompleteRequest setTop(Integer top)
top
- the top value to set.Copyright © 2020 Microsoft Corporation. All rights reserved.