CustomEntity Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. CustomEntity
- com.
Implements
public final class CustomEntity
implements JsonSerializable<CustomEntity>
An object that contains information about the matches that were found, and related metadata.
Constructor | Description |
---|---|
Custom |
Creates an instance of Custom |
Modifier and Type | Method and Description |
---|---|
static
Custom |
from Reads an instance of Custom |
List<Custom |
get Get the aliases property: An array of complex objects that can be used to specify alternative spellings or synonyms to the root entity name. |
Integer |
get Get the default |
String |
get Get the description property: This field can be used as a passthrough for custom metadata about the matched text(s). |
Integer |
get Get the fuzzy |
String |
get Get the id property: This field can be used as a passthrough for custom metadata about the matched text(s). |
String |
get Get the name property: The top-level entity descriptor. |
String |
get Get the subtype property: This field can be used as a passthrough for custom metadata about the matched text(s). |
String |
get Get the type property: This field can be used as a passthrough for custom metadata about the matched text(s). |
Boolean |
is Get the accent |
Boolean |
is Get the case |
Boolean |
is Get the default |
Boolean |
is Get the default |
Custom |
set Set the accent |
Custom |
set Set the aliases property: An array of complex objects that can be used to specify alternative spellings or synonyms to the root entity name. |
Custom |
set Set the case |
Custom |
set Set the default |
Custom |
set Set the default |
Custom |
set Set the default |
Custom |
set Set the description property: This field can be used as a passthrough for custom metadata about the matched text(s). |
Custom |
set Set the fuzzy |
Custom |
set Set the id property: This field can be used as a passthrough for custom metadata about the matched text(s). |
Custom |
set Set the subtype property: This field can be used as a passthrough for custom metadata about the matched text(s). |
Custom |
set Set the type property: This field can be used as a passthrough for custom metadata about the matched text(s). |
Json |
to |
Methods inherited from java.lang.Object
CustomEntity
public CustomEntity(String name)
Creates an instance of CustomEntity class.
Parameters:
fromJson
public static CustomEntity fromJson(JsonReader jsonReader)
Reads an instance of CustomEntity from the JsonReader.
Parameters:
Returns:
Throws:
getAliases
public List
Get the aliases property: An array of complex objects that can be used to specify alternative spellings or synonyms to the root entity name.
Returns:
getDefaultFuzzyEditDistance
public Integer getDefaultFuzzyEditDistance()
Get the defaultFuzzyEditDistance property: Changes the default fuzzy edit distance value for this entity. It can be used to change the default value of all aliases fuzzyEditDistance values.
Returns:
getDescription
public String getDescription()
Get the description property: This field can be used as a passthrough for custom metadata about the matched text(s). The value of this field will appear with every match of its entity in the skill output.
Returns:
getFuzzyEditDistance
public Integer getFuzzyEditDistance()
Get the fuzzyEditDistance property: Defaults to 0. Maximum value of 5. Denotes the acceptable number of divergent characters that would still constitute a match with the entity name. The smallest possible fuzziness for any given match is returned. For instance, if the edit distance is set to 3, "Windows10" would still match "Windows", "Windows10" and "Windows 7". When case sensitivity is set to false, case differences do NOT count towards fuzziness tolerance, but otherwise do.
Returns:
getId
public String getId()
Get the id property: This field can be used as a passthrough for custom metadata about the matched text(s). The value of this field will appear with every match of its entity in the skill output.
Returns:
getName
public String getName()
Get the name property: The top-level entity descriptor. Matches in the skill output will be grouped by this name, and it should represent the "normalized" form of the text being found.
Returns:
getSubtype
public String getSubtype()
Get the subtype property: This field can be used as a passthrough for custom metadata about the matched text(s). The value of this field will appear with every match of its entity in the skill output.
Returns:
getType
public String getType()
Get the type property: This field can be used as a passthrough for custom metadata about the matched text(s). The value of this field will appear with every match of its entity in the skill output.
Returns:
isAccentSensitive
public Boolean isAccentSensitive()
Get the accentSensitive property: Defaults to false. Boolean value denoting whether comparisons with the entity name should be sensitive to accent.
Returns:
isCaseSensitive
public Boolean isCaseSensitive()
Get the caseSensitive property: Defaults to false. Boolean value denoting whether comparisons with the entity name should be sensitive to character casing. Sample case insensitive matches of "Microsoft" could be: microsoft, microSoft, MICROSOFT.
Returns:
isDefaultAccentSensitive
public Boolean isDefaultAccentSensitive()
Get the defaultAccentSensitive property: Changes the default accent sensitivity value for this entity. It be used to change the default value of all aliases accentSensitive values.
Returns:
isDefaultCaseSensitive
public Boolean isDefaultCaseSensitive()
Get the defaultCaseSensitive property: Changes the default case sensitivity value for this entity. It be used to change the default value of all aliases caseSensitive values.
Returns:
setAccentSensitive
public CustomEntity setAccentSensitive(Boolean accentSensitive)
Set the accentSensitive property: Defaults to false. Boolean value denoting whether comparisons with the entity name should be sensitive to accent.
Parameters:
Returns:
setAliases
public CustomEntity setAliases(List
Set the aliases property: An array of complex objects that can be used to specify alternative spellings or synonyms to the root entity name.
Parameters:
Returns:
setCaseSensitive
public CustomEntity setCaseSensitive(Boolean caseSensitive)
Set the caseSensitive property: Defaults to false. Boolean value denoting whether comparisons with the entity name should be sensitive to character casing. Sample case insensitive matches of "Microsoft" could be: microsoft, microSoft, MICROSOFT.
Parameters:
Returns:
setDefaultAccentSensitive
public CustomEntity setDefaultAccentSensitive(Boolean defaultAccentSensitive)
Set the defaultAccentSensitive property: Changes the default accent sensitivity value for this entity. It be used to change the default value of all aliases accentSensitive values.
Parameters:
Returns:
setDefaultCaseSensitive
public CustomEntity setDefaultCaseSensitive(Boolean defaultCaseSensitive)
Set the defaultCaseSensitive property: Changes the default case sensitivity value for this entity. It be used to change the default value of all aliases caseSensitive values.
Parameters:
Returns:
setDefaultFuzzyEditDistance
public CustomEntity setDefaultFuzzyEditDistance(Integer defaultFuzzyEditDistance)
Set the defaultFuzzyEditDistance property: Changes the default fuzzy edit distance value for this entity. It can be used to change the default value of all aliases fuzzyEditDistance values.
Parameters:
Returns:
setDescription
public CustomEntity setDescription(String description)
Set the description property: This field can be used as a passthrough for custom metadata about the matched text(s). The value of this field will appear with every match of its entity in the skill output.
Parameters:
Returns:
setFuzzyEditDistance
public CustomEntity setFuzzyEditDistance(Integer fuzzyEditDistance)
Set the fuzzyEditDistance property: Defaults to 0. Maximum value of 5. Denotes the acceptable number of divergent characters that would still constitute a match with the entity name. The smallest possible fuzziness for any given match is returned. For instance, if the edit distance is set to 3, "Windows10" would still match "Windows", "Windows10" and "Windows 7". When case sensitivity is set to false, case differences do NOT count towards fuzziness tolerance, but otherwise do.
Parameters:
Returns:
setId
public CustomEntity setId(String id)
Set the id property: This field can be used as a passthrough for custom metadata about the matched text(s). The value of this field will appear with every match of its entity in the skill output.
Parameters:
Returns:
setSubtype
public CustomEntity setSubtype(String subtype)
Set the subtype property: This field can be used as a passthrough for custom metadata about the matched text(s). The value of this field will appear with every match of its entity in the skill output.
Parameters:
Returns:
setType
public CustomEntity setType(String type)
Set the type property: This field can be used as a passthrough for custom metadata about the matched text(s). The value of this field will appear with every match of its entity in the skill output.
Parameters:
Returns:
toJson
Azure SDK for Java-feedback
Azure SDK for Java is een open source project. Selecteer een koppeling om feedback te geven: