com.sksamuel.elastic4s.requests.searches.term.TermsLookupQuery.scala Maven / Gradle / Ivy
The newest version!
package com.sksamuel.elastic4s.requests.searches.term
import com.sksamuel.elastic4s.requests.searches.TermsLookup
import com.sksamuel.elastic4s.requests.searches.queries.Query
import com.sksamuel.elastic4s.ext.OptionImplicits._
case class TermsLookupQuery(field: String, termsLookup: TermsLookup, queryName: Option[String] = None) extends Query {
def queryName(name: String): TermsLookupQuery = copy(queryName = name.some)
}