Class CustomEntityLookupSkill
java.lang.Object
com.azure.search.documents.indexes.models.SearchIndexerSkill
com.azure.search.documents.indexes.models.CustomEntityLookupSkill
A skill looks for text from a custom, user-defined list of words and phrases.
-
Constructor Summary
ConstructorsConstructorDescriptionCustomEntityLookupSkill
(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs) Creates an instance of CustomEntityLookupSkill class. -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultLanguageCode property: A value indicating which language code to use.Get the entitiesDefinitionUri property: Path to a JSON or CSV file containing all the target text to match against.Get the globalDefaultFuzzyEditDistance property: A global flag for FuzzyEditDistance.Get the inlineEntitiesDefinition property: The inline CustomEntity definition.Get the globalDefaultAccentSensitive property: A global flag for AccentSensitive.Get the globalDefaultCaseSensitive property: A global flag for CaseSensitive.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).setDefaultLanguageCode
(CustomEntityLookupSkillLanguage defaultLanguageCode) Set the defaultLanguageCode property: A value indicating which language code to use.setDescription
(String description) Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill.setEntitiesDefinitionUri
(String entitiesDefinitionUri) Set the entitiesDefinitionUri property: Path to a JSON or CSV file containing all the target text to match against.setGlobalDefaultAccentSensitive
(Boolean globalDefaultAccentSensitive) Set the globalDefaultAccentSensitive property: A global flag for AccentSensitive.setGlobalDefaultCaseSensitive
(Boolean globalDefaultCaseSensitive) Set the globalDefaultCaseSensitive property: A global flag for CaseSensitive.setGlobalDefaultFuzzyEditDistance
(Integer globalDefaultFuzzyEditDistance) Set the globalDefaultFuzzyEditDistance property: A global flag for FuzzyEditDistance.setInlineEntitiesDefinition
(CustomEntity... inlineEntitiesDefinition) Set the inlineEntitiesDefinition property: The inline CustomEntity definition.setInlineEntitiesDefinition
(List<CustomEntity> inlineEntitiesDefinition) Set the inlineEntitiesDefinition property: The inline CustomEntity definition.Set the name property: The name of the skill which uniquely identifies it within the skillset.Methods inherited from class com.azure.search.documents.indexes.models.SearchIndexerSkill
getContext, getDescription, getInputs, getName, getOutputs
-
Constructor Details
-
CustomEntityLookupSkill
public CustomEntityLookupSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs) Creates an instance of CustomEntityLookupSkill class.- Parameters:
inputs
- the inputs value to set.outputs
- the outputs value to set.
-
-
Method Details
-
getDefaultLanguageCode
Get the defaultLanguageCode property: A value indicating which language code to use. Default is en.- Returns:
- the defaultLanguageCode value.
-
setDefaultLanguageCode
public CustomEntityLookupSkill setDefaultLanguageCode(CustomEntityLookupSkillLanguage defaultLanguageCode) Set the defaultLanguageCode property: A value indicating which language code to use. Default is en.- Parameters:
defaultLanguageCode
- the defaultLanguageCode value to set.- Returns:
- the CustomEntityLookupSkill object itself.
-
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:
- the entitiesDefinitionUri value.
-
setEntitiesDefinitionUri
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:
entitiesDefinitionUri
- the entitiesDefinitionUri value to set.- Returns:
- the CustomEntityLookupSkill object itself.
-
getInlineEntitiesDefinition
Get the inlineEntitiesDefinition property: The inline CustomEntity definition.- Returns:
- the inlineEntitiesDefinition value.
-
setInlineEntitiesDefinition
public CustomEntityLookupSkill setInlineEntitiesDefinition(List<CustomEntity> inlineEntitiesDefinition) Set the inlineEntitiesDefinition property: The inline CustomEntity definition.- Parameters:
inlineEntitiesDefinition
- the inlineEntitiesDefinition value to set.- Returns:
- the CustomEntityLookupSkill object itself.
-
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:
- the globalDefaultCaseSensitive value.
-
setGlobalDefaultCaseSensitive
Set the globalDefaultCaseSensitive property: A global flag for CaseSensitive. If CaseSensitive is not set in CustomEntity, this value will be the default value.- Parameters:
globalDefaultCaseSensitive
- the globalDefaultCaseSensitive value to set.- Returns:
- the CustomEntityLookupSkill object itself.
-
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:
- the globalDefaultAccentSensitive value.
-
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:
globalDefaultAccentSensitive
- the globalDefaultAccentSensitive value to set.- Returns:
- the CustomEntityLookupSkill object itself.
-
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:
- the globalDefaultFuzzyEditDistance value.
-
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:
globalDefaultFuzzyEditDistance
- the globalDefaultFuzzyEditDistance value to set.- Returns:
- the CustomEntityLookupSkill object itself.
-
setName
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:
setName
in classSearchIndexerSkill
- Parameters:
name
- the name value to set.- Returns:
- the SearchIndexerSkill object itself.
-
setDescription
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill.- Overrides:
setDescription
in classSearchIndexerSkill
- Parameters:
description
- the description value to set.- Returns:
- the SearchIndexerSkill object itself.
-
setContext
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:
setContext
in classSearchIndexerSkill
- Parameters:
context
- the context value to set.- Returns:
- the SearchIndexerSkill object itself.
-
setInlineEntitiesDefinition
public CustomEntityLookupSkill setInlineEntitiesDefinition(CustomEntity... inlineEntitiesDefinition) Set the inlineEntitiesDefinition property: The inline CustomEntity definition.- Parameters:
inlineEntitiesDefinition
- the inlineEntitiesDefinition value to set.- Returns:
- the CustomEntityLookupSkill object itself.
-