All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sksamuel.elastic4s.requests.searches.queries.BoostingQuery.scala Maven / Gradle / Ivy

There is a newer version: 8.15.4
Show newest version
package com.sksamuel.elastic4s.requests.searches.queries

case class BoostingQuery(positiveQuery: Query,
                         negativeQuery: Query,
                         queryName: Option[String] = None,
                         boost: Option[Double] = None,
                         negativeBoost: Option[Double] = None)
  extends Query {

  def withQueryName(queryName: String): BoostingQuery = copy(queryName = Option(queryName))

  def boost(boost: Double): BoostingQuery = copy(boost = Option(boost))
  def negativeBoost(negativeBoost: Double): BoostingQuery = copy(negativeBoost = Option(negativeBoost))
  def queryName(queryName: String): BoostingQuery = copy(queryName = Option(queryName))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy