BoolQuery

com.sksamuel.elastic4s.requests.searches.queries.compound.BoolQuery
case class BoolQuery(adjustPureNegative: Option[Boolean], boost: Option[Double], minimumShouldMatch: Option[String], queryName: Option[String], filters: Seq[Query], must: Seq[Query], not: Seq[Query], should: Seq[Query]) extends Query

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def adjustPureNegative(adjustPureNegative: Boolean): BoolQuery
def boost(boost: Double): BoolQuery
def filter(first: Query, rest: Query*): BoolQuery
def filter(queries: Iterable[Query]): BoolQuery
def minimumShouldMatch(min: Int): BoolQuery
def minimumShouldMatch(min: String): BoolQuery
def must(queries: Query*): BoolQuery

Replaces the current 'must' queries with the given queries.

Replaces the current 'must' queries with the given queries.

Attributes

def must(queries: Iterable[Query]): BoolQuery

Replaces the current 'must' queries with the given queries.

Replaces the current 'must' queries with the given queries.

Attributes

def not(queries: Query*): BoolQuery

Replaces the current 'not' queries with the given queries.

Replaces the current 'not' queries with the given queries.

Attributes

def not(queries: Iterable[Query]): BoolQuery

Replaces the current 'not' queries with the given queries.

Replaces the current 'not' queries with the given queries.

Attributes

def queryName(queryName: String): BoolQuery
def should(queries: Query*): BoolQuery

Replaces the current 'should' queries with the given queries.

Replaces the current 'should' queries with the given queries.

Attributes

def should(queries: Iterable[Query]): BoolQuery

Replaces the current 'should' queries with the given queries.

Replaces the current 'should' queries with the given queries.

Attributes

def withMust(first: Query, rest: Query*): BoolQuery

Appends the current 'must' queries with the given queries.

Appends the current 'must' queries with the given queries.

Attributes

def withMust(queries: Iterable[Query]): BoolQuery

Appends the current 'must' queries with the given queries.

Appends the current 'must' queries with the given queries.

Attributes

def withNot(first: Query, rest: Query*): BoolQuery

Appends the given queries to the existing not queries.

Appends the given queries to the existing not queries.

Attributes

def withNot(queries: Iterable[Query]): BoolQuery

Appends the given queries to the existing not queries.

Appends the given queries to the existing not queries.

Attributes

def withShould(first: Query, rest: Query*): BoolQuery

Appends the current 'should' queries with the given queries.

Appends the current 'should' queries with the given queries.

Attributes

def withShould(queries: Iterable[Query]): BoolQuery

Appends the current 'should' queries with the given queries.

Appends the current 'should' queries with the given queries.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product