RangeQuery

zio.elasticsearch.query.RangeQuery
sealed trait RangeQuery[S, A, LB <: LowerBound, UB <: UpperBound] extends ElasticQuery[S]

Attributes

Graph
Supertypes
trait ElasticQuery[S]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def gt[B <: A : ElasticPrimitive](value: B)(implicit evidence$1: ElasticPrimitive[B], ev: LB =:= Unbounded.type): RangeQuery[S, B, GreaterThan[B], UB]

Sets the greater-than bound for the zio.elasticsearch.query.RangeQuery.

Sets the greater-than bound for the zio.elasticsearch.query.RangeQuery.

Type parameters

B

the type of the value, constrained by the zio.elasticsearch.ElasticPrimitive

Value parameters

value

the value for the greater-than bound

Attributes

Returns

an instance of zio.elasticsearch.query.RangeQuery enriched with the greater-than bound set.

def gte[B <: A : ElasticPrimitive](value: B)(implicit evidence$1: ElasticPrimitive[B], ev: LB =:= Unbounded.type): RangeQuery[S, B, GreaterThanOrEqualTo[B], UB]

Sets the greater-than-or-equal-to bound for the zio.elasticsearch.query.RangeQuery.

Sets the greater-than-or-equal-to bound for the zio.elasticsearch.query.RangeQuery.

Type parameters

B

the type of the value, constrained by the zio.elasticsearch.ElasticPrimitive

Value parameters

value

the value for the greater-than-or-equal-to bound

Attributes

Returns

an instance of zio.elasticsearch.query.RangeQuery enriched with the greater-than-or-equal-to bound set.

def lt[B <: A : ElasticPrimitive](value: B)(implicit evidence$1: ElasticPrimitive[B], ev: UB =:= Unbounded.type): RangeQuery[S, B, LB, LessThan[B]]

Sets the less-than bound for the zio.elasticsearch.query.RangeQuery.

Sets the less-than bound for the zio.elasticsearch.query.RangeQuery.

Type parameters

B

the type of the value, constrained by the zio.elasticsearch.ElasticPrimitive

Value parameters

value

the value for the less-than bound

Attributes

Returns

an instance of zio.elasticsearch.query.RangeQuery enriched with the less-than bound set.

def lte[B <: A : ElasticPrimitive](value: B)(implicit evidence$1: ElasticPrimitive[B], ev: UB =:= Unbounded.type): RangeQuery[S, B, LB, LessThanOrEqualTo[B]]

Sets the less-than-or-equal-to bound for the zio.elasticsearch.query.RangeQuery.

Sets the less-than-or-equal-to bound for the zio.elasticsearch.query.RangeQuery.

Type parameters

B

the type of the value, constrained by the zio.elasticsearch.ElasticPrimitive

Value parameters

value

the value for the less-than-or-equal-to bound

Attributes

Returns

an instance of zio.elasticsearch.query.RangeQuery enriched with the less-than-or-equal-to bound set.

Inherited and Abstract methods

def boost(value: Double): RangeQuery[S, A, LB, UB]

Sets the boost parameter for this zio.elasticsearch.query.ElasticQuery. The boost value is a positive multiplier applied to the score of documents matching the query. A value greater than 1 increases the relevance score of matching documents, while a value less than 1 decreases it. The default boost value is 1.

Sets the boost parameter for this zio.elasticsearch.query.ElasticQuery. The boost value is a positive multiplier applied to the score of documents matching the query. A value greater than 1 increases the relevance score of matching documents, while a value less than 1 decreases it. The default boost value is 1.

Value parameters

value

a non-negative real number to set boost parameter to

Attributes

Returns

a new instance of the zio.elasticsearch.query.ElasticQuery with the boost value set.

Inherited from:
HasBoost (hidden)
def format(value: String): RangeQuery[S, A, LB, UB]

Sets the date format for the zio.elasticsearch.query.sort.SortByField. This method is only applicable to fields of type date.

Sets the date format for the zio.elasticsearch.query.sort.SortByField. This method is only applicable to fields of type date.

Value parameters

value

the date format to set

Attributes

Returns

an instance of the zio.elasticsearch.query.sort.SortByField enriched with the format parameter.

Inherited from:
HasFormat (hidden)