com.sksamuel.elastic4s.searches.queries.ExistsQueryBuilderFn.scala Maven / Gradle / Ivy
The newest version!
package com.sksamuel.elastic4s.searches.queries
import org.elasticsearch.index.query.{ExistsQueryBuilder, QueryBuilders}
object ExistsQueryBuilderFn {
def apply(q: ExistsQueryDefinition): ExistsQueryBuilder = {
val builder = QueryBuilders.existsQuery(q.field)
q.boost.map(_.toFloat).foreach(builder.boost)
q.queryName.foreach(builder.queryName)
builder
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy