Class DisMaxQueryBuilder

All Implemented Interfaces:
NamedWriteable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject, QueryBuilder, Rewriteable<QueryBuilder>

public class DisMaxQueryBuilder
extends AbstractQueryBuilder<DisMaxQueryBuilder>
A query that generates the union of documents produced by its sub-queries, and that scores each document with the maximum score for that document as produced by any sub-query, plus a tie breaking increment for any additional matching sub-queries.
  • Field Details

    • NAME

      public static final java.lang.String NAME
      See Also:
      Constant Field Values

      public static final float DEFAULT_TIE_BREAKER
      Default multiplication factor for breaking ties in document scores.
      See Also:
      Constant Field Values
  • Constructor Details

    • DisMaxQueryBuilder

      public DisMaxQueryBuilder()
    • DisMaxQueryBuilder

      public DisMaxQueryBuilder​(StreamInput in) throws
      Read from a stream.
  • Method Details