java.lang.Object
org.elasticsearch.cluster.routing.RoutingHashBuilder
A builder for computing a hash from fields in the document source that are part of the
IndexMetadata.INDEX_ROUTING_PATH.
It is used in the context of IndexRouting.ExtractFromSource.ForRoutingPath to determine the shard a document should be routed to.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMatching(String fieldName, org.apache.lucene.util.BytesRef string) createId(byte[] suffix, IntSupplier onEmpty) Only expected to be called for old indices created beforeIndexVersions.TIME_SERIES_ROUTING_HASH_IN_IDwhile creating (during ingestion) or synthesizing (at query time) the _id field.
-
Constructor Details
-
RoutingHashBuilder
-
-
Method Details
-
addMatching
-
createId
Only expected to be called for old indices created beforeIndexVersions.TIME_SERIES_ROUTING_HASH_IN_IDwhile creating (during ingestion) or synthesizing (at query time) the _id field.
-