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

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

The newest version!
package com.sksamuel.elastic4s.requests.searches.queries

import com.sksamuel.elastic4s.ext.OptionImplicits._

case class PrefixQuery(field: String,
                       prefix: Any,
                       boost: Option[Double] = None,
                       queryName: Option[String] = None,
                       rewrite: Option[String] = None,
                       caseInsensitive: Option[Boolean] = None)
  extends MultiTermQuery {

  def queryName(queryName: String): PrefixQuery = copy(queryName = queryName.some)
  def boost(boost: Double): PrefixQuery = copy(boost = boost.some)
  def rewrite(rewrite: String): PrefixQuery = copy(rewrite = rewrite.some)
  def caseInsensitive(caseInsensitive: Boolean): PrefixQuery = copy(caseInsensitive = caseInsensitive.some)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy