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

com.sksamuel.elastic4s.requests.searches.term.WildcardQuery.scala Maven / Gradle / Ivy

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

import com.sksamuel.elastic4s.requests.searches.queries.{MultiTermQuery, Query}

case class WildcardQuery(field: String,
                         query: Any,
                         boost: Option[Double] = None,
                         queryName: Option[String] = None,
                         rewrite: Option[String] = None,
                         caseInsensitive: Option[Boolean] = None)
  extends Query
    with MultiTermQuery {

  def queryName(queryName: String): WildcardQuery = copy(queryName = Option(queryName))
  def boost(boost: Double): WildcardQuery = copy(boost = Option(boost))
  def rewrite(rewrite: String): WildcardQuery = copy(rewrite = Option(rewrite))
  def caseInsensitive(caseInsensitive: Boolean): WildcardQuery = copy(caseInsensitive = Option(caseInsensitive))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy