Class FieldBuilderOptions
- java.lang.Object
-
- com.azure.search.documents.indexes.models.FieldBuilderOptions
-
public final class FieldBuilderOptions extends Object
Additional parameters to buildSearchField
.
-
-
Constructor Summary
Constructors Constructor Description FieldBuilderOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.core.util.serializer.JsonSerializer
getJsonSerializer()
Gets the serializer used to aid the construction ofSearchFields
inSearchIndexClient.buildSearchFields(Class, FieldBuilderOptions)
buildSearchFields} orbuildSearchFields
.FieldBuilderOptions
setJsonSerializer(com.azure.core.util.serializer.JsonSerializer jsonSerializer)
Sets the serializer.
-
-
-
Method Detail
-
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.
-
-