public final class FieldBuilderOptions extends Object
SearchField
.Constructor and Description |
---|
FieldBuilderOptions() |
Modifier and Type | Method and Description |
---|---|
com.azure.core.util.serializer.JsonSerializer |
getJsonSerializer()
Gets the serializer used to aid the construction of
SearchFields in SearchIndexClient.buildSearchFields(Class, FieldBuilderOptions) buildSearchFields} or buildSearchFields . |
FieldBuilderOptions |
setJsonSerializer(com.azure.core.util.serializer.JsonSerializer jsonSerializer)
Sets the serializer.
|
public com.azure.core.util.serializer.JsonSerializer getJsonSerializer()
SearchFields
in SearchIndexClient.buildSearchFields(Class, FieldBuilderOptions)
buildSearchFields} or buildSearchFields
.
If JsonSerializer
is null
or doesn't implement the MemberNameConverter
interface then
MemberNameConverterProviders.createInstance()
will be used to provide a converter from the classpath.
JsonSerializer
.public FieldBuilderOptions setJsonSerializer(com.azure.core.util.serializer.JsonSerializer jsonSerializer)
For building SearchFields
it is expected that the JsonSerializer
passed also
implements the MemberNameConverter
interface. If it doesn't MemberNameConverterProviders.createInstance()
will be used to provide a converter from the classpath.
jsonSerializer
- The custom serializer.Copyright © 2021 Microsoft Corporation. All rights reserved.