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

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

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

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

case class ParentIdQuery(`type`: String,
                         id: String,
                         ignoreUnmapped: Option[Boolean] = None,
                         boost: Option[Double] = None,
                         queryName: Option[String] = None)
  extends Query {

  def queryName(name: String): ParentIdQuery = copy(queryName = name.some)
  def boost(boost: Double): ParentIdQuery = copy(boost = boost.some)
  def ignoreUnmapped(ignore: Boolean): ParentIdQuery = copy(ignoreUnmapped = ignore.some)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy