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.JsonSerializer
Gets the serializer used to aid the construction ofSearchFields
inSearchIndexClient.buildSearchFields(Class, FieldBuilderOptions)
buildSearchFields} orbuildSearchFields
.setJsonSerializer
(com.azure.core.util.serializer.JsonSerializer jsonSerializer) Sets the serializer.
-
Constructor Details
-
FieldBuilderOptions
public FieldBuilderOptions()
-
-
Method Details
-
getJsonSerializer
public com.azure.core.util.serializer.JsonSerializer getJsonSerializer()Gets the serializer used to aid the construction ofSearchFields
inSearchIndexClient.buildSearchFields(Class, FieldBuilderOptions)
buildSearchFields} orbuildSearchFields
.If
JsonSerializer
isnull
or doesn't implement theMemberNameConverter
interface 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
SearchFields
it is expected that theJsonSerializer
passed also implements theMemberNameConverter
interface. 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.
-