Package com.azure.ai.openai.models
Class AzureSearchIndexFieldMappingOptions
java.lang.Object
com.azure.ai.openai.models.AzureSearchIndexFieldMappingOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureSearchIndexFieldMappingOptions>
public final class AzureSearchIndexFieldMappingOptions
extends Object
implements com.azure.json.JsonSerializable<AzureSearchIndexFieldMappingOptions>
Optional settings to control how fields are processed when using a configured Azure Search resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AzureSearchIndexFieldMappingOptions class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureSearchIndexFieldMappingOptions from the JsonReader.Get the contentFields property: The names of index fields that should be treated as content.Get the contentFieldsSeparator property: The separator pattern that content fields should use.Get the filepathField property: The name of the index field to use as a filepath.Get the imageVectorFields property: The names of fields that represent image vector data.Get the titleField property: The name of the index field to use as a title.Get the urlField property: The name of the index field to use as a URL.Get the vectorFields property: The names of fields that represent vector data.setContentFields(List<String> contentFields) Set the contentFields property: The names of index fields that should be treated as content.setContentFieldsSeparator(String contentFieldsSeparator) Set the contentFieldsSeparator property: The separator pattern that content fields should use.setFilepathField(String filepathField) Set the filepathField property: The name of the index field to use as a filepath.setImageVectorFields(List<String> imageVectorFields) Set the imageVectorFields property: The names of fields that represent image vector data.setTitleField(String titleField) Set the titleField property: The name of the index field to use as a title.setUrlField(String urlField) Set the urlField property: The name of the index field to use as a URL.setVectorFields(List<String> vectorFields) Set the vectorFields property: The names of fields that represent vector data.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AzureSearchIndexFieldMappingOptions
public AzureSearchIndexFieldMappingOptions()Creates an instance of AzureSearchIndexFieldMappingOptions class.
-
-
Method Details
-
getTitleField
Get the titleField property: The name of the index field to use as a title.- Returns:
- the titleField value.
-
setTitleField
Set the titleField property: The name of the index field to use as a title.- Parameters:
titleField- the titleField value to set.- Returns:
- the AzureSearchIndexFieldMappingOptions object itself.
-
getUrlField
Get the urlField property: The name of the index field to use as a URL.- Returns:
- the urlField value.
-
setUrlField
Set the urlField property: The name of the index field to use as a URL.- Parameters:
urlField- the urlField value to set.- Returns:
- the AzureSearchIndexFieldMappingOptions object itself.
-
getFilepathField
Get the filepathField property: The name of the index field to use as a filepath.- Returns:
- the filepathField value.
-
setFilepathField
Set the filepathField property: The name of the index field to use as a filepath.- Parameters:
filepathField- the filepathField value to set.- Returns:
- the AzureSearchIndexFieldMappingOptions object itself.
-
getContentFields
Get the contentFields property: The names of index fields that should be treated as content.- Returns:
- the contentFields value.
-
setContentFields
Set the contentFields property: The names of index fields that should be treated as content.- Parameters:
contentFields- the contentFields value to set.- Returns:
- the AzureSearchIndexFieldMappingOptions object itself.
-
getContentFieldsSeparator
Get the contentFieldsSeparator property: The separator pattern that content fields should use.- Returns:
- the contentFieldsSeparator value.
-
setContentFieldsSeparator
Set the contentFieldsSeparator property: The separator pattern that content fields should use.- Parameters:
contentFieldsSeparator- the contentFieldsSeparator value to set.- Returns:
- the AzureSearchIndexFieldMappingOptions object itself.
-
getVectorFields
Get the vectorFields property: The names of fields that represent vector data.- Returns:
- the vectorFields value.
-
setVectorFields
Set the vectorFields property: The names of fields that represent vector data.- Parameters:
vectorFields- the vectorFields value to set.- Returns:
- the AzureSearchIndexFieldMappingOptions object itself.
-
getImageVectorFields
Get the imageVectorFields property: The names of fields that represent image vector data.- Returns:
- the imageVectorFields value.
-
setImageVectorFields
Set the imageVectorFields property: The names of fields that represent image vector data.- Parameters:
imageVectorFields- the imageVectorFields value to set.- Returns:
- the AzureSearchIndexFieldMappingOptions object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AzureSearchIndexFieldMappingOptions>- Throws:
IOException
-
fromJson
public static AzureSearchIndexFieldMappingOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureSearchIndexFieldMappingOptions from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureSearchIndexFieldMappingOptions if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AzureSearchIndexFieldMappingOptions.
-