CustomEntityLookupSkill Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchIndexerSkill - com.
azure. search. documents. indexes. models. CustomEntityLookupSkill
- com.
- com.
public final class CustomEntityLookupSkill
extends SearchIndexerSkill
A skill looks for text from a custom, user-defined list of words and phrases.
Constructor Summary
| Constructor | Description |
|---|---|
| CustomEntityLookupSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs) |
Creates an instance of Custom |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Custom |
fromJson(JsonReader jsonReader)
Reads an instance of Custom |
|
Custom |
getDefaultLanguageCode()
Get the default |
| String |
getEntitiesDefinitionUri()
Get the entities |
| Integer |
getGlobalDefaultFuzzyEditDistance()
Get the global |
|
List<Custom |
getInlineEntitiesDefinition()
Get the inline |
| String |
getOdataType()
Get the odata |
| Boolean |
isGlobalDefaultAccentSensitive()
Get the global |
| Boolean |
isGlobalDefaultCaseSensitive()
Get the global |
|
Custom |
setContext(String context)
Set the context property: Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). |
|
Custom |
setDefaultLanguageCode(CustomEntityLookupSkillLanguage defaultLanguageCode)
Set the default |
|
Custom |
setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill. |
|
Custom |
setEntitiesDefinitionUri(String entitiesDefinitionUri)
Set the entities |
|
Custom |
setGlobalDefaultAccentSensitive(Boolean globalDefaultAccentSensitive)
Set the global |
|
Custom |
setGlobalDefaultCaseSensitive(Boolean globalDefaultCaseSensitive)
Set the global |
|
Custom |
setGlobalDefaultFuzzyEditDistance(Integer globalDefaultFuzzyEditDistance)
Set the global |
|
Custom |
setInlineEntitiesDefinition(CustomEntity[] inlineEntitiesDefinition)
Set the inline |
|
Custom |
setInlineEntitiesDefinition(List<CustomEntity> inlineEntitiesDefinition)
Set the inline |
|
Custom |
setName(String name)
Set the name property: The name of the skill which uniquely identifies it within the skillset. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from SearchIndexerSkill
Methods inherited from java.lang.Object
Constructor Details
CustomEntityLookupSkill
public CustomEntityLookupSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs)
Creates an instance of CustomEntityLookupSkill class.
Parameters:
Method Details
fromJson
public static CustomEntityLookupSkill fromJson(JsonReader jsonReader)
Reads an instance of CustomEntityLookupSkill from the JsonReader.
Parameters:
Returns:
Throws:
getDefaultLanguageCode
public CustomEntityLookupSkillLanguage getDefaultLanguageCode()
Get the defaultLanguageCode property: A value indicating which language code to use. Default is `en`.
Returns:
getEntitiesDefinitionUri
public String getEntitiesDefinitionUri()
Get the entitiesDefinitionUri property: Path to a JSON or CSV file containing all the target text to match against. This entity definition is read at the beginning of an indexer run. Any updates to this file during an indexer run will not take effect until subsequent runs. This config must be accessible over HTTPS.
Returns:
getGlobalDefaultFuzzyEditDistance
public Integer getGlobalDefaultFuzzyEditDistance()
Get the globalDefaultFuzzyEditDistance property: A global flag for FuzzyEditDistance. If FuzzyEditDistance is not set in CustomEntity, this value will be the default value.
Returns:
getInlineEntitiesDefinition
public List<CustomEntity> getInlineEntitiesDefinition()
Get the inlineEntitiesDefinition property: The inline CustomEntity definition.
Returns:
getOdataType
public String getOdataType()
Get the odataType property: A URI fragment specifying the type of skill.
Overrides:
CustomEntityLookupSkill.getOdataType()Returns:
isGlobalDefaultAccentSensitive
public Boolean isGlobalDefaultAccentSensitive()
Get the globalDefaultAccentSensitive property: A global flag for AccentSensitive. If AccentSensitive is not set in CustomEntity, this value will be the default value.
Returns:
isGlobalDefaultCaseSensitive
public Boolean isGlobalDefaultCaseSensitive()
Get the globalDefaultCaseSensitive property: A global flag for CaseSensitive. If CaseSensitive is not set in CustomEntity, this value will be the default value.
Returns:
setContext
public CustomEntityLookupSkill setContext(String context)
Set the context property: Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). The default is /document.
Overrides:
CustomEntityLookupSkill.setContext(String context)Parameters:
setDefaultLanguageCode
public CustomEntityLookupSkill setDefaultLanguageCode(CustomEntityLookupSkillLanguage defaultLanguageCode)
Set the defaultLanguageCode property: A value indicating which language code to use. Default is `en`.
Parameters:
Returns:
setDescription
public CustomEntityLookupSkill setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill.
Overrides:
CustomEntityLookupSkill.setDescription(String description)Parameters:
setEntitiesDefinitionUri
public CustomEntityLookupSkill setEntitiesDefinitionUri(String entitiesDefinitionUri)
Set the entitiesDefinitionUri property: Path to a JSON or CSV file containing all the target text to match against. This entity definition is read at the beginning of an indexer run. Any updates to this file during an indexer run will not take effect until subsequent runs. This config must be accessible over HTTPS.
Parameters:
Returns:
setGlobalDefaultAccentSensitive
public CustomEntityLookupSkill setGlobalDefaultAccentSensitive(Boolean globalDefaultAccentSensitive)
Set the globalDefaultAccentSensitive property: A global flag for AccentSensitive. If AccentSensitive is not set in CustomEntity, this value will be the default value.
Parameters:
Returns:
setGlobalDefaultCaseSensitive
public CustomEntityLookupSkill setGlobalDefaultCaseSensitive(Boolean globalDefaultCaseSensitive)
Set the globalDefaultCaseSensitive property: A global flag for CaseSensitive. If CaseSensitive is not set in CustomEntity, this value will be the default value.
Parameters:
Returns:
setGlobalDefaultFuzzyEditDistance
public CustomEntityLookupSkill setGlobalDefaultFuzzyEditDistance(Integer globalDefaultFuzzyEditDistance)
Set the globalDefaultFuzzyEditDistance property: A global flag for FuzzyEditDistance. If FuzzyEditDistance is not set in CustomEntity, this value will be the default value.
Parameters:
Returns:
setInlineEntitiesDefinition
public CustomEntityLookupSkill setInlineEntitiesDefinition(CustomEntity[] inlineEntitiesDefinition)
Set the inlineEntitiesDefinition property: The inline CustomEntity definition.
Parameters:
Returns:
setInlineEntitiesDefinition
public CustomEntityLookupSkill setInlineEntitiesDefinition(List<CustomEntity> inlineEntitiesDefinition)
Set the inlineEntitiesDefinition property: The inline CustomEntity definition.
Parameters:
Returns:
setName
public CustomEntityLookupSkill setName(String name)
Set the name property: The name of the skill which uniquely identifies it within the skillset. A skill with no name defined will be given a default name of its 1-based index in the skills array, prefixed with the character '#'.
Overrides:
CustomEntityLookupSkill.setName(String name)Parameters:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
CustomEntityLookupSkill.toJson(JsonWriter jsonWriter)Parameters:
Throws: