azure-docs-sdk-java/legacy/docs-ref-autogen/com.azure.search.models.Aut...

276 строки
21 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.search.models.AutocompleteRequest"
fullName: "com.azure.search.models.AutocompleteRequest"
name: "AutocompleteRequest"
nameWithType: "AutocompleteRequest"
summary: "Parameters for fuzzy matching, and other autocomplete query behaviors."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **AutocompleteRequest**"
constructors:
- uid: "com.azure.search.models.AutocompleteRequest.AutocompleteRequest()"
fullName: "com.azure.search.models.AutocompleteRequest.AutocompleteRequest()"
name: "AutocompleteRequest()"
nameWithType: "AutocompleteRequest.AutocompleteRequest()"
syntax: "public AutocompleteRequest()"
methods:
- uid: "com.azure.search.models.AutocompleteRequest.getAutocompleteMode()"
fullName: "com.azure.search.models.AutocompleteRequest.getAutocompleteMode()"
name: "getAutocompleteMode()"
nameWithType: "AutocompleteRequest.getAutocompleteMode()"
summary: "Get the autocomplete<wbr>Mode property: Specifies the mode for Autocomplete."
syntax: "public AutocompleteMode getAutocompleteMode()"
desc: "Get the autocompleteMode property: Specifies the mode for Autocomplete. The default is 'oneTerm'. Use 'twoTerms' to get shingles and 'oneTermWithContext' to use the current context while producing auto-completed terms. Possible values include: 'oneTerm', 'twoTerms', 'oneTermWithContext'."
returns:
description: "the autocompleteMode value."
type: "<xref href=\"com.azure.search.models.AutocompleteMode?alt=com.azure.search.models.AutocompleteMode&text=AutocompleteMode\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.search.models.AutocompleteRequest.getFilter()"
fullName: "com.azure.search.models.AutocompleteRequest.getFilter()"
name: "getFilter()"
nameWithType: "AutocompleteRequest.getFilter()"
summary: "Get the filter property: An OData expression that filters the documents used to produce completed terms for the Autocomplete result."
syntax: "public String getFilter()"
desc: "Get the filter property: An OData expression that filters the documents used to produce completed terms for the Autocomplete result."
returns:
description: "the filter value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.search.models.AutocompleteRequest.getHighlightPostTag()"
fullName: "com.azure.search.models.AutocompleteRequest.getHighlightPostTag()"
name: "getHighlightPostTag()"
nameWithType: "AutocompleteRequest.getHighlightPostTag()"
summary: "Get the highlight<wbr>Post<wbr>Tag property: A string tag that is appended to hit highlights."
syntax: "public String getHighlightPostTag()"
desc: "Get the highlightPostTag property: A string tag that is appended to hit highlights. Must be set with highlightPreTag. If omitted, hit highlighting is disabled."
returns:
description: "the highlightPostTag value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.search.models.AutocompleteRequest.getHighlightPreTag()"
fullName: "com.azure.search.models.AutocompleteRequest.getHighlightPreTag()"
name: "getHighlightPreTag()"
nameWithType: "AutocompleteRequest.getHighlightPreTag()"
summary: "Get the highlight<wbr>Pre<wbr>Tag property: A string tag that is prepended to hit highlights."
syntax: "public String getHighlightPreTag()"
desc: "Get the highlightPreTag property: A string tag that is prepended to hit highlights. Must be set with highlightPostTag. If omitted, hit highlighting is disabled."
returns:
description: "the highlightPreTag value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.search.models.AutocompleteRequest.getMinimumCoverage()"
fullName: "com.azure.search.models.AutocompleteRequest.getMinimumCoverage()"
name: "getMinimumCoverage()"
nameWithType: "AutocompleteRequest.getMinimumCoverage()"
summary: "Get the minimum<wbr>Coverage 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."
syntax: "public Double getMinimumCoverage()"
desc: "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. This parameter can be useful for ensuring search availability even for services with only one replica. The default is 80."
returns:
description: "the minimumCoverage value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html\">Double</a>"
- uid: "com.azure.search.models.AutocompleteRequest.getSearchFields()"
fullName: "com.azure.search.models.AutocompleteRequest.getSearchFields()"
name: "getSearchFields()"
nameWithType: "AutocompleteRequest.getSearchFields()"
summary: "Get the search<wbr>Fields property: The comma-separated list of field names to consider when querying for auto-completed terms."
syntax: "public String getSearchFields()"
desc: "Get the searchFields property: The comma-separated list of field names to consider when querying for auto-completed terms. Target fields must be included in the specified suggester."
returns:
description: "the searchFields value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.search.models.AutocompleteRequest.getSearchText()"
fullName: "com.azure.search.models.AutocompleteRequest.getSearchText()"
name: "getSearchText()"
nameWithType: "AutocompleteRequest.getSearchText()"
summary: "Get the search<wbr>Text property: The search text on which to base autocomplete results."
syntax: "public String getSearchText()"
desc: "Get the searchText property: The search text on which to base autocomplete results."
returns:
description: "the searchText value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.search.models.AutocompleteRequest.getSuggesterName()"
fullName: "com.azure.search.models.AutocompleteRequest.getSuggesterName()"
name: "getSuggesterName()"
nameWithType: "AutocompleteRequest.getSuggesterName()"
summary: "Get the suggester<wbr>Name property: The name of the suggester as specified in the suggesters collection that's part of the index definition."
syntax: "public String getSuggesterName()"
desc: "Get the suggesterName property: The name of the suggester as specified in the suggesters collection that's part of the index definition."
returns:
description: "the suggesterName value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.search.models.AutocompleteRequest.getTop()"
fullName: "com.azure.search.models.AutocompleteRequest.getTop()"
name: "getTop()"
nameWithType: "AutocompleteRequest.getTop()"
summary: "Get the top property: The number of auto-completed terms to retrieve."
syntax: "public Integer getTop()"
desc: "Get the top property: The number of auto-completed terms to retrieve. This must be a value between 1 and 100. The default is 5."
returns:
description: "the top value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html\">Integer</a>"
- uid: "com.azure.search.models.AutocompleteRequest.isUseFuzzyMatching()"
fullName: "com.azure.search.models.AutocompleteRequest.isUseFuzzyMatching()"
name: "isUseFuzzyMatching()"
nameWithType: "AutocompleteRequest.isUseFuzzyMatching()"
summary: "Get the use<wbr>Fuzzy<wbr>Matching property: A value indicating whether to use fuzzy matching for the autocomplete query."
syntax: "public Boolean isUseFuzzyMatching()"
desc: "Get the useFuzzyMatching property: A value indicating whether to use fuzzy matching for the autocomplete query. Default is false. When set to true, the query will autocomplete terms even if there's a substituted or missing character in the search text. While this provides a better experience in some scenarios, it comes at a performance cost as fuzzy autocomplete queries are slower and consume more resources."
returns:
description: "the useFuzzyMatching value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html\">Boolean</a>"
- uid: "com.azure.search.models.AutocompleteRequest.setAutocompleteMode(com.azure.search.models.AutocompleteMode)"
fullName: "com.azure.search.models.AutocompleteRequest.setAutocompleteMode(AutocompleteMode autocompleteMode)"
name: "setAutocompleteMode(AutocompleteMode autocompleteMode)"
nameWithType: "AutocompleteRequest.setAutocompleteMode(AutocompleteMode autocompleteMode)"
summary: "Set the autocomplete<wbr>Mode property: Specifies the mode for Autocomplete."
parameters:
- description: "the autocompleteMode value to set."
name: "autocompleteMode"
type: "<xref href=\"com.azure.search.models.AutocompleteMode?alt=com.azure.search.models.AutocompleteMode&text=AutocompleteMode\" data-throw-if-not-resolved=\"False\" />"
syntax: "public AutocompleteRequest setAutocompleteMode(AutocompleteMode autocompleteMode)"
desc: "Set the autocompleteMode property: Specifies the mode for Autocomplete. The default is 'oneTerm'. Use 'twoTerms' to get shingles and 'oneTermWithContext' to use the current context while producing auto-completed terms. Possible values include: 'oneTerm', 'twoTerms', 'oneTermWithContext'."
returns:
description: "the AutocompleteRequest object itself."
type: "<xref href=\"com.azure.search.models.AutocompleteRequest?alt=com.azure.search.models.AutocompleteRequest&text=AutocompleteRequest\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.search.models.AutocompleteRequest.setFilter(java.lang.String)"
fullName: "com.azure.search.models.AutocompleteRequest.setFilter(String filter)"
name: "setFilter(String filter)"
nameWithType: "AutocompleteRequest.setFilter(String filter)"
summary: "Set the filter property: An OData expression that filters the documents used to produce completed terms for the Autocomplete result."
parameters:
- description: "the filter value to set."
name: "filter"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public AutocompleteRequest setFilter(String filter)"
desc: "Set the filter property: An OData expression that filters the documents used to produce completed terms for the Autocomplete result."
returns:
description: "the AutocompleteRequest object itself."
type: "<xref href=\"com.azure.search.models.AutocompleteRequest?alt=com.azure.search.models.AutocompleteRequest&text=AutocompleteRequest\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.search.models.AutocompleteRequest.setHighlightPostTag(java.lang.String)"
fullName: "com.azure.search.models.AutocompleteRequest.setHighlightPostTag(String highlightPostTag)"
name: "setHighlightPostTag(String highlightPostTag)"
nameWithType: "AutocompleteRequest.setHighlightPostTag(String highlightPostTag)"
summary: "Set the highlight<wbr>Post<wbr>Tag property: A string tag that is appended to hit highlights."
parameters:
- description: "the highlightPostTag value to set."
name: "highlightPostTag"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public AutocompleteRequest setHighlightPostTag(String highlightPostTag)"
desc: "Set the highlightPostTag property: A string tag that is appended to hit highlights. Must be set with highlightPreTag. If omitted, hit highlighting is disabled."
returns:
description: "the AutocompleteRequest object itself."
type: "<xref href=\"com.azure.search.models.AutocompleteRequest?alt=com.azure.search.models.AutocompleteRequest&text=AutocompleteRequest\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.search.models.AutocompleteRequest.setHighlightPreTag(java.lang.String)"
fullName: "com.azure.search.models.AutocompleteRequest.setHighlightPreTag(String highlightPreTag)"
name: "setHighlightPreTag(String highlightPreTag)"
nameWithType: "AutocompleteRequest.setHighlightPreTag(String highlightPreTag)"
summary: "Set the highlight<wbr>Pre<wbr>Tag property: A string tag that is prepended to hit highlights."
parameters:
- description: "the highlightPreTag value to set."
name: "highlightPreTag"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public AutocompleteRequest setHighlightPreTag(String highlightPreTag)"
desc: "Set the highlightPreTag property: A string tag that is prepended to hit highlights. Must be set with highlightPostTag. If omitted, hit highlighting is disabled."
returns:
description: "the AutocompleteRequest object itself."
type: "<xref href=\"com.azure.search.models.AutocompleteRequest?alt=com.azure.search.models.AutocompleteRequest&text=AutocompleteRequest\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.search.models.AutocompleteRequest.setMinimumCoverage(java.lang.Double)"
fullName: "com.azure.search.models.AutocompleteRequest.setMinimumCoverage(Double minimumCoverage)"
name: "setMinimumCoverage(Double minimumCoverage)"
nameWithType: "AutocompleteRequest.setMinimumCoverage(Double minimumCoverage)"
summary: "Set the minimum<wbr>Coverage 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."
parameters:
- description: "the minimumCoverage value to set."
name: "minimumCoverage"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html\">Double</a>"
syntax: "public AutocompleteRequest setMinimumCoverage(Double minimumCoverage)"
desc: "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. This parameter can be useful for ensuring search availability even for services with only one replica. The default is 80."
returns:
description: "the AutocompleteRequest object itself."
type: "<xref href=\"com.azure.search.models.AutocompleteRequest?alt=com.azure.search.models.AutocompleteRequest&text=AutocompleteRequest\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.search.models.AutocompleteRequest.setSearchFields(java.lang.String)"
fullName: "com.azure.search.models.AutocompleteRequest.setSearchFields(String searchFields)"
name: "setSearchFields(String searchFields)"
nameWithType: "AutocompleteRequest.setSearchFields(String searchFields)"
summary: "Set the search<wbr>Fields property: The comma-separated list of field names to consider when querying for auto-completed terms."
parameters:
- description: "the searchFields value to set."
name: "searchFields"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public AutocompleteRequest setSearchFields(String searchFields)"
desc: "Set the searchFields property: The comma-separated list of field names to consider when querying for auto-completed terms. Target fields must be included in the specified suggester."
returns:
description: "the AutocompleteRequest object itself."
type: "<xref href=\"com.azure.search.models.AutocompleteRequest?alt=com.azure.search.models.AutocompleteRequest&text=AutocompleteRequest\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.search.models.AutocompleteRequest.setSearchText(java.lang.String)"
fullName: "com.azure.search.models.AutocompleteRequest.setSearchText(String searchText)"
name: "setSearchText(String searchText)"
nameWithType: "AutocompleteRequest.setSearchText(String searchText)"
summary: "Set the search<wbr>Text property: The search text on which to base autocomplete results."
parameters:
- description: "the searchText value to set."
name: "searchText"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public AutocompleteRequest setSearchText(String searchText)"
desc: "Set the searchText property: The search text on which to base autocomplete results."
returns:
description: "the AutocompleteRequest object itself."
type: "<xref href=\"com.azure.search.models.AutocompleteRequest?alt=com.azure.search.models.AutocompleteRequest&text=AutocompleteRequest\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.search.models.AutocompleteRequest.setSuggesterName(java.lang.String)"
fullName: "com.azure.search.models.AutocompleteRequest.setSuggesterName(String suggesterName)"
name: "setSuggesterName(String suggesterName)"
nameWithType: "AutocompleteRequest.setSuggesterName(String suggesterName)"
summary: "Set the suggester<wbr>Name property: The name of the suggester as specified in the suggesters collection that's part of the index definition."
parameters:
- description: "the suggesterName value to set."
name: "suggesterName"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public AutocompleteRequest setSuggesterName(String suggesterName)"
desc: "Set the suggesterName property: The name of the suggester as specified in the suggesters collection that's part of the index definition."
returns:
description: "the AutocompleteRequest object itself."
type: "<xref href=\"com.azure.search.models.AutocompleteRequest?alt=com.azure.search.models.AutocompleteRequest&text=AutocompleteRequest\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.search.models.AutocompleteRequest.setTop(java.lang.Integer)"
fullName: "com.azure.search.models.AutocompleteRequest.setTop(Integer top)"
name: "setTop(Integer top)"
nameWithType: "AutocompleteRequest.setTop(Integer top)"
summary: "Set the top property: The number of auto-completed terms to retrieve."
parameters:
- description: "the top value to set."
name: "top"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html\">Integer</a>"
syntax: "public AutocompleteRequest setTop(Integer top)"
desc: "Set the top property: The number of auto-completed terms to retrieve. This must be a value between 1 and 100. The default is 5."
returns:
description: "the AutocompleteRequest object itself."
type: "<xref href=\"com.azure.search.models.AutocompleteRequest?alt=com.azure.search.models.AutocompleteRequest&text=AutocompleteRequest\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.search.models.AutocompleteRequest.setUseFuzzyMatching(java.lang.Boolean)"
fullName: "com.azure.search.models.AutocompleteRequest.setUseFuzzyMatching(Boolean useFuzzyMatching)"
name: "setUseFuzzyMatching(Boolean useFuzzyMatching)"
nameWithType: "AutocompleteRequest.setUseFuzzyMatching(Boolean useFuzzyMatching)"
summary: "Set the use<wbr>Fuzzy<wbr>Matching property: A value indicating whether to use fuzzy matching for the autocomplete query."
parameters:
- description: "the useFuzzyMatching value to set."
name: "useFuzzyMatching"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html\">Boolean</a>"
syntax: "public AutocompleteRequest setUseFuzzyMatching(Boolean useFuzzyMatching)"
desc: "Set the useFuzzyMatching property: A value indicating whether to use fuzzy matching for the autocomplete query. Default is false. When set to true, the query will autocomplete terms even if there's a substituted or missing character in the search text. While this provides a better experience in some scenarios, it comes at a performance cost as fuzzy autocomplete queries are slower and consume more resources."
returns:
description: "the AutocompleteRequest object itself."
type: "<xref href=\"com.azure.search.models.AutocompleteRequest?alt=com.azure.search.models.AutocompleteRequest&text=AutocompleteRequest\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Parameters for fuzzy matching, and other autocomplete query behaviors."
metadata: {}
package: "com.azure.search.models"
artifact: com.azure:azure-search:11.0.0-beta.1