你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SemanticErrorMode Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. search. documents. models. SemanticErrorMode
- com.
- com.
public final class SemanticErrorMode
extends ExpandableStringEnum<SemanticErrorMode>
Allows the user to choose whether a semantic call should fail completely, or to return partial results.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Semantic |
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. |
static final
Semantic |
PARTIAL
If the semantic processing fails, partial results still return. |
Constructor Summary
Constructor | Description |
---|---|
SemanticErrorMode() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Semantic |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Semantic |
fromString(String name)
Creates or finds a Semantic |
static
Collection<Semantic |
values()
Gets known Semantic |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
FAIL
public static final SemanticErrorMode 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.
PARTIAL
public static final SemanticErrorMode 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.
Constructor Details
SemanticErrorMode
@Deprecated
public SemanticErrorMode()
Deprecated
Creates a new instance of SemanticErrorMode value.
Method Details
fromString
public static SemanticErrorMode fromString(String name)
Creates or finds a SemanticErrorMode from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known SemanticErrorMode values.
Returns: