java.lang.Object
org.elasticsearch.search.aggregations.bucket.terms.IncludeExclude
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentFragment

public class IncludeExclude extends Object implements Writeable, org.elasticsearch.xcontent.ToXContentFragment
Defines the include/exclude regular expression filtering for string terms aggregation. In this filtering logic, exclusion has precedence, where the include is evaluated first and then the exclude.
  • Field Details

    • INCLUDE_FIELD

      public static final org.elasticsearch.xcontent.ParseField INCLUDE_FIELD
    • EXCLUDE_FIELD

      public static final org.elasticsearch.xcontent.ParseField EXCLUDE_FIELD
    • PARTITION_FIELD

      public static final org.elasticsearch.xcontent.ParseField PARTITION_FIELD
    • NUM_PARTITIONS_FIELD

      public static final org.elasticsearch.xcontent.ParseField NUM_PARTITIONS_FIELD
  • Constructor Details

    • IncludeExclude

      public IncludeExclude(@Nullable String include, @Nullable String exclude, @Nullable SortedSet<org.apache.lucene.util.BytesRef> includeValues, @Nullable SortedSet<org.apache.lucene.util.BytesRef> excludeValues)
      Parameters:
      include - The regular expression pattern for the terms to be included
      exclude - The regular expression pattern for the terms to be excluded
    • IncludeExclude

      public IncludeExclude(int partition, int numPartitions)
    • IncludeExclude

      public IncludeExclude(StreamInput in) throws IOException
      Read from a stream.
      Throws:
      IOException
  • Method Details