SplitSkill Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchIndexerSkill - com.
azure. search. documents. indexes. models. SplitSkill
- com.
- com.
public final class SplitSkill
extends SearchIndexerSkill
A skill to split a string into chunks of text.
Constructor Summary
| Constructor | Description |
|---|---|
| SplitSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs) |
Creates an instance of Split |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Split |
fromJson(JsonReader jsonReader)
Reads an instance of Split |
|
Split |
getDefaultLanguageCode()
Get the default |
| Integer |
getMaximumPageLength()
Get the maximum |
| Integer |
getMaximumPagesToTake()
Get the maximum |
| String |
getOdataType()
Get the odata |
| Integer |
getPageOverlapLength()
Get the page |
|
Text |
getTextSplitMode()
Get the text |
|
Split |
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). |
|
Split |
setDefaultLanguageCode(SplitSkillLanguage defaultLanguageCode)
Set the default |
|
Split |
setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill. |
|
Split |
setMaximumPageLength(Integer maximumPageLength)
Set the maximum |
|
Split |
setMaximumPagesToTake(Integer maximumPagesToTake)
Set the maximum |
|
Split |
setName(String name)
Set the name property: The name of the skill which uniquely identifies it within the skillset. |
|
Split |
setPageOverlapLength(Integer pageOverlapLength)
Set the page |
|
Split |
setTextSplitMode(TextSplitMode textSplitMode)
Set the text |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from SearchIndexerSkill
Methods inherited from java.lang.Object
Constructor Details
SplitSkill
public SplitSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs)
Creates an instance of SplitSkill class.
Parameters:
Method Details
fromJson
public static SplitSkill fromJson(JsonReader jsonReader)
Reads an instance of SplitSkill from the JsonReader.
Parameters:
Returns:
Throws:
getDefaultLanguageCode
public SplitSkillLanguage getDefaultLanguageCode()
Get the defaultLanguageCode property: A value indicating which language code to use. Default is `en`.
Returns:
getMaximumPageLength
public Integer getMaximumPageLength()
Get the maximumPageLength property: The desired maximum page length. Default is 10000.
Returns:
getMaximumPagesToTake
public Integer getMaximumPagesToTake()
Get the maximumPagesToTake property: Only applicable when textSplitMode is set to 'pages'. If specified, the SplitSkill will discontinue splitting after processing the first 'maximumPagesToTake' pages, in order to improve performance when only a few initial pages are needed from each document.
Returns:
getOdataType
public String getOdataType()
Get the odataType property: A URI fragment specifying the type of skill.
Overrides:
SplitSkill.getOdataType()Returns:
getPageOverlapLength
public Integer getPageOverlapLength()
Get the pageOverlapLength property: Only applicable when textSplitMode is set to 'pages'. If specified, n+1th chunk will start with this number of characters/tokens from the end of the nth chunk.
Returns:
getTextSplitMode
public TextSplitMode getTextSplitMode()
Get the textSplitMode property: A value indicating which split mode to perform.
Returns:
setContext
public SplitSkill 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:
SplitSkill.setContext(String context)Parameters:
setDefaultLanguageCode
public SplitSkill setDefaultLanguageCode(SplitSkillLanguage defaultLanguageCode)
Set the defaultLanguageCode property: A value indicating which language code to use. Default is `en`.
Parameters:
Returns:
setDescription
public SplitSkill setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill.
Overrides:
SplitSkill.setDescription(String description)Parameters:
setMaximumPageLength
public SplitSkill setMaximumPageLength(Integer maximumPageLength)
Set the maximumPageLength property: The desired maximum page length. Default is 10000.
Parameters:
Returns:
setMaximumPagesToTake
public SplitSkill setMaximumPagesToTake(Integer maximumPagesToTake)
Set the maximumPagesToTake property: Only applicable when textSplitMode is set to 'pages'. If specified, the SplitSkill will discontinue splitting after processing the first 'maximumPagesToTake' pages, in order to improve performance when only a few initial pages are needed from each document.
Parameters:
Returns:
setName
public SplitSkill 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:
SplitSkill.setName(String name)Parameters:
setPageOverlapLength
public SplitSkill setPageOverlapLength(Integer pageOverlapLength)
Set the pageOverlapLength property: Only applicable when textSplitMode is set to 'pages'. If specified, n+1th chunk will start with this number of characters/tokens from the end of the nth chunk.
Parameters:
Returns:
setTextSplitMode
public SplitSkill setTextSplitMode(TextSplitMode textSplitMode)
Set the textSplitMode property: A value indicating which split mode to perform.
Parameters:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SplitSkill.toJson(JsonWriter jsonWriter)Parameters:
Throws: