View Source Hui.Query.DisMax (Hui v0.11.0)

Struct related to DisMax query.

Correspond to the query parsers known as the Maximum Disjunction - DisMax and eDismax (extended version).

See below for more details:

Link to this section Summary

Types

t()

Struct for DisMax/eDismax query.

Link to this section Types

@type t() :: %Hui.Query.DisMax{
  bf: binary(),
  boost: binary(),
  bq: binary(),
  defType: term(),
  lowercaseOperators: binary(),
  mm: binary(),
  "mm.autoRelax": boolean(),
  pf: binary(),
  pf2: binary(),
  pf3: binary(),
  ps: integer(),
  ps2: integer(),
  ps3: integer(),
  q: binary(),
  "q.alt": binary(),
  qf: binary(),
  qs: integer(),
  sow: boolean(),
  stopwords: boolean(),
  tie: float(),
  uf: binary()
}

Struct for DisMax/eDismax query.

Link to this section Functions

@spec new() :: t()
Link to this function

new(q, qf \\ nil, mm \\ nil)

View Source
@spec new(binary(), binary(), binary()) :: t()