Class QueryRewritesType
java.lang.Object
com.azure.core.util.ExpandableStringEnum<QueryRewritesType>
com.azure.search.documents.models.QueryRewritesType
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class QueryRewritesType
extends com.azure.core.util.ExpandableStringEnum<QueryRewritesType>
This parameter is only valid if the query type is `semantic`. When QueryRewrites is set to `generative`, the query
terms are sent to a generate model which will produce 10 (default) rewrites to help increase the recall of the
request. The requested count can be configured by appending the pipe character `|` followed by the `count-<number
of rewrites>` option, such as `generative|count-3`. Defaults to `None`.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QueryRewritesTypeGenerate alternative query terms to increase the recall of a search request.static final QueryRewritesTypeDo not generate additional query rewrites for this query. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryRewritesTypefromString(String name) Creates or finds a QueryRewritesType from its string representation.static Collection<QueryRewritesType> values()Gets known QueryRewritesType values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
NONE
Do not generate additional query rewrites for this query. -
GENERATIVE
Generate alternative query terms to increase the recall of a search request.
-
-
Constructor Details
-
QueryRewritesType
Deprecated.Use thefromString(String)factory method.Creates a new instance of QueryRewritesType value.
-
-
Method Details
-
fromString
Creates or finds a QueryRewritesType from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding QueryRewritesType.
-
values
Gets known QueryRewritesType values.- Returns:
- known QueryRewritesType values.
-
fromString(String)factory method.