Interface RoutingFields

All Known Implementing Classes:
RoutingFields.Noop, RoutingPathFields

public interface RoutingFields
Collects fields contributing to routing from documents.
  • Method Details

    • fromIndexSettings

      static RoutingFields fromIndexSettings(IndexSettings indexSettings)
      Collect routing fields from index settings
    • addString

      RoutingFields addString(String fieldName, org.apache.lucene.util.BytesRef utf8Value)
      This overloaded method tries to take advantage of the fact that the UTF-8 value is already computed in some cases when we want to collect routing fields, so we can save re-computing the UTF-8 encoding.
    • addString

      default RoutingFields addString(String fieldName, String value)
    • addIp

      RoutingFields addIp(String fieldName, InetAddress value)
    • addLong

      RoutingFields addLong(String fieldName, long value)
    • addUnsignedLong

      RoutingFields addUnsignedLong(String fieldName, long value)
    • addBoolean

      RoutingFields addBoolean(String fieldName, boolean value)