Class SemanticErrorMode
java.lang.Object
com.azure.core.util.ExpandableStringEnum<SemanticErrorMode>
com.azure.search.documents.models.SemanticErrorMode
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class SemanticErrorMode
extends com.azure.core.util.ExpandableStringEnum<SemanticErrorMode>
Allows the user to choose whether a semantic call should fail completely, or to return partial results.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SemanticErrorModeIf there is an exception during the semantic processing step, the query will fail and return the appropriate HTTP code depending on the error.static final SemanticErrorModeIf the semantic processing fails, partial results still return. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SemanticErrorModefromString(String name) Creates or finds a SemanticErrorMode from its string representation.static Collection<SemanticErrorMode> values()Gets known SemanticErrorMode values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
PARTIAL
If the semantic processing fails, partial results still return. The definition of partial results depends on what semantic step failed and what was the reason for failure. -
FAIL
If there is an exception during the semantic processing step, the query will fail and return the appropriate HTTP code depending on the error.
-
-
Constructor Details
-
SemanticErrorMode
Deprecated.Use thefromString(String)factory method.Creates a new instance of SemanticErrorMode value.
-
-
Method Details
-
fromString
Creates or finds a SemanticErrorMode from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding SemanticErrorMode.
-
values
Gets known SemanticErrorMode values.- Returns:
- known SemanticErrorMode values.
-
fromString(String)factory method.