Class FieldBuilderOptions
java.lang.Object
com.azure.search.documents.indexes.models.FieldBuilderOptions
Additional parameters to build
SearchField.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.serializer.JsonSerializerGets the serializer used to aid the construction ofSearchFieldsinSearchIndexClient.buildSearchFields(Class, FieldBuilderOptions)buildSearchFields} orbuildSearchFields.setJsonSerializer(com.azure.core.util.serializer.JsonSerializer jsonSerializer) Sets the serializer.
-
Constructor Details
-
FieldBuilderOptions
public FieldBuilderOptions()Creates an instance ofFieldBuilderOptions.
-
-
Method Details
-
getJsonSerializer
public com.azure.core.util.serializer.JsonSerializer getJsonSerializer()Gets the serializer used to aid the construction ofSearchFieldsinSearchIndexClient.buildSearchFields(Class, FieldBuilderOptions)buildSearchFields} orbuildSearchFields.If
JsonSerializerisnullor doesn't implement theMemberNameConverterinterface thenMemberNameConverterProviders.createInstance()will be used to provide a converter from the classpath.- Returns:
- The custom
JsonSerializer.
-
setJsonSerializer
public FieldBuilderOptions setJsonSerializer(com.azure.core.util.serializer.JsonSerializer jsonSerializer) Sets the serializer.For building
SearchFieldsit is expected that theJsonSerializerpassed also implements theMemberNameConverterinterface. If it doesn'tMemberNameConverterProviders.createInstance()will be used to provide a converter from the classpath.- Parameters:
jsonSerializer- The custom serializer.- Returns:
- The updated FieldBuilderOptions object.
-