Class FieldConfiguration

java.lang.Object
io.jmix.search.index.mapping.FieldConfiguration

public class FieldConfiguration extends Object
Contains configuration of index field.
  • Field Details

    • config

      protected com.fasterxml.jackson.databind.node.ObjectNode config
    • virtualFields

      protected List<String> virtualFields
  • Constructor Details

    • FieldConfiguration

      protected FieldConfiguration(com.fasterxml.jackson.databind.node.ObjectNode config)
    • FieldConfiguration

      protected FieldConfiguration(com.fasterxml.jackson.databind.node.ObjectNode config, List<String> virtualFields)
  • Method Details

    • asJson

      public com.fasterxml.jackson.databind.node.ObjectNode asJson()
      Provides field configuration as native json.
      Returns:
      json with field configuration
    • getVirtualFields

      public List<String> getVirtualFields()
      Provides inner "virtual" fields within current field.
      Returns:
      list of fields names
    • create

      public static FieldConfiguration create(com.fasterxml.jackson.databind.node.ObjectNode config)