Class FieldBuilderOptions

java.lang.Object
com.azure.search.documents.indexes.models.FieldBuilderOptions

public final class FieldBuilderOptions extends Object
Additional parameters to build SearchField.
  • Constructor Details

    • FieldBuilderOptions

      public FieldBuilderOptions()
  • Method Details

    • getJsonSerializer

      public 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.

      If JsonSerializer is null or doesn't implement the MemberNameConverter interface then MemberNameConverterProviders.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 the JsonSerializer passed also implements the MemberNameConverter interface. If it doesn't MemberNameConverterProviders.createInstance() will be used to provide a converter from the classpath.

      Parameters:
      jsonSerializer - The custom serializer.
      Returns:
      The updated FieldBuilderOptions object.