- All Known Implementing Classes:
RoutingFields.Noop,RoutingPathFields
public interface RoutingFields
Collects fields contributing to routing from documents.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumNoop implementation that doesn't perform validations on routing fields -
Method Summary
Modifier and TypeMethodDescriptionaddBoolean(String fieldName, boolean value) addIp(String fieldName, InetAddress value) default RoutingFieldsThis 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.addUnsignedLong(String fieldName, long value) static RoutingFieldsfromIndexSettings(IndexSettings indexSettings) Collect routing fields from index settings
-
Method Details
-
fromIndexSettings
Collect routing fields from index settings -
addString
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
-
addIp
-
addLong
-
addUnsignedLong
-
addBoolean
-