QueryApi

com.sksamuel.elastic4s.api.QueryApi
trait QueryApi

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Classlikes

class GeoDistanceExpectsDistance(gdef: GeoDistanceQuery)

Attributes

Supertypes
class Object
trait Matchable
class Any
class GeoPolygonExpectsPoints(field: String)

Attributes

Supertypes
class Object
trait Matchable
class Any
class HasChildQueryExpectsQuery(`type`: String)

Attributes

Supertypes
class Object
trait Matchable
class Any
class HasParentQueryExpectsQuery(`type`: String)

Attributes

Supertypes
class Object
trait Matchable
class Any
class MoreLikeThisExpectsLikes(fields: Seq[String])

Attributes

Supertypes
class Object
trait Matchable
class Any
class NestedQueryExpectsQuery(path: String)

Attributes

Supertypes
class Object
trait Matchable
class Any
class SpanFirstExpectsEnd(query: SpanQuery)

Attributes

Supertypes
class Object
trait Matchable
class Any

Deprecated classlikes

class GeoDistanceExpectsPoint(field: String)

Attributes

Deprecated
true
Supertypes
class Object
trait Matchable
class Any
class PercolateExpectsUsing(`type`: String, field: String)

Attributes

Deprecated
true
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def bool(mustQueries: Seq[Query], shouldQueries: Seq[Query], notQueries: Seq[Query]): BoolQuery
def boolQuery(): BoolQuery
def boostingQuery(positiveQuery: Query, negativeQuery: Query): BoostingQuery
def combinedFieldsQuery(query: String, fields: Seq[String]): CombinedFieldsQuery
def constantScoreQuery(query: Query): ConstantScore
def dismax(first: Query, rest: Query*): DisMaxQuery
def dismax(queries: Iterable[Query]): DisMaxQuery
def distanceFeatureQuery(field: String, origin: String, pivot: String): DistanceFeatureQuery
def existsQuery(field: String): ExistsQuery
def functionScoreQuery(): FunctionScoreQuery
def functionScoreQuery(query: Query): FunctionScoreQuery
def fuzzyQuery(field: String, value: String): FuzzyQuery
def geoBoxQuery(field: String): GeoBoundingBoxQuery
def geoBoxQuery(field: String, topleft: String, bottomright: String): GeoBoundingBoxQuery
def geoDistanceQuery(field: String, geohash: String): GeoDistanceQuery
def geoDistanceQuery(field: String, lat: Double, long: Double): GeoDistanceQuery
def geoPolygonQuery(field: String, first: GeoPoint, rest: GeoPoint*): GeoPolygonQuery
def geoPolygonQuery(field: String, points: Iterable[GeoPoint]): GeoPolygonQuery
def geoShapeQuery(field: String, shape: Shape): GeoShapeQuery
def hasChildQuery(childType: String, query: Query, scoreMode: ScoreMode): HasChildQuery
def hasParentQuery(parentType: String, query: Query, score: Boolean): HasParentQuery
def idsQuery(ids: Iterable[Any]): IdQuery
def idsQuery(id: Any, rest: Any*): IdQuery
def innerHits(name: String): InnerHit
def intervalsQuery(field: String, rule: IntervalsRule): IntervalsQuery
def matchAllQuery(): MatchAllQuery
def matchBoolPrefixQuery(field: String, value: Any): MatchBoolPrefixQuery
def matchNoneQuery(): MatchNoneQuery
def matchPhrasePrefixQuery(field: String, value: Any): MatchPhrasePrefixQuery
def matchPhraseQuery(field: String, value: Any): MatchPhraseQuery
def matchQuery(field: String, value: Any): MatchQuery
def moreLikeThisQuery(field: String, fields: String*): MoreLikeThisExpectsLikes
def moreLikeThisQuery(fields: Iterable[String]): MoreLikeThisExpectsLikes
def multiMatchQuery(text: String): MultiMatchQuery
def must(first: Query, rest: Query*): BoolQuery
def must(queries: Iterable[Query]): BoolQuery
def nestedQuery(path: String, query: Query): NestedQuery
def not(queries: Query*): BoolQuery
def not(queries: Iterable[Query]): BoolQuery
def percolateQuery(`type`: String, field: String): PercolateExpectsUsing
def pinnedQuery(ids: List[String], organic: Query): PinnedQuery
def prefixQuery(field: String, value: Any): PrefixQuery
def query(queryString: String): QueryStringQuery
def queryStringQuery(queryString: String): QueryStringQuery
def rangeQuery(field: String): RangeQuery
def rankFeatureQuery(field: String): RankFeatureQuery
def rawQuery(json: String): RawQuery
def regexQuery(field: String, value: String): RegexQuery
def scriptQuery(script: Script): ScriptQuery
def scriptQuery(script: String): ScriptQuery
def scriptScoreQuery(): ScriptScoreQuery
def scriptScoreQuery(query: Query): ScriptScoreQuery
def semanticQuery(field: String, query: String): SemanticQuery
def should(queries: Query*): BoolQuery
def should(queries: Iterable[Query]): BoolQuery
def simpleStringQuery(q: String): SimpleStringQuery
def spanContainingQuery(big: SpanQuery, little: SpanQuery): SpanContainingQuery
def spanFieldMaskingQuery(fieldToMask: String, query: SpanQuery): SpanFieldMaskingQuery
def spanFirstQuery(query: SpanQuery, end: Int): SpanFirstQuery
def spanMultiTermQuery(query: MultiTermQuery): SpanMultiTermQuery
def spanNearQuery(defs: Iterable[SpanQuery], slop: Int): SpanNearQuery
def spanNotQuery(include: SpanQuery, exclude: SpanQuery): SpanNotQuery
def spanOrQuery(iterable: Iterable[SpanQuery]): SpanOrQuery
def spanOrQuery(first: SpanQuery, rest: SpanQuery*): SpanOrQuery
def spanTermQuery(field: String, value: Any): SpanTermQuery
def spanWithinQuery(big: SpanQuery, little: SpanQuery): SpanWithinQuery
def sparseVectorQuery(field: String, inferenceId: String, query: String): SparseVectorQuery
def sparseVectorQuery(field: String, queryVector: Map[String, Double]): SparseVectorQuery
def stringQuery(q: String): QueryStringQuery
def termQuery(field: String, value: Any): TermQuery
def termsLookupQuery(field: String, path: String, ref: DocumentRef): TermsLookupQuery
def termsQuery[T](field: String, first: T, rest: T*): TermsQuery[T]
def termsQuery[T](field: String, values: Iterable[T]): TermsQuery[T]
def termsSetQuery(field: String, terms: Set[String], minimumShouldMatchField: String): TermsSetQuery
def termsSetQuery(field: String, terms: Set[String], minimumShouldMatchScript: Script): TermsSetQuery
def wildcardQuery(field: String, value: Any): WildcardQuery

Deprecated methods

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true

Attributes

Deprecated
true
def spanFirstQuery(query: SpanQuery): SpanFirstExpectsEnd

Attributes

Deprecated
true

Implicits

Implicits

implicit def string2query(string: String): SimpleStringQuery
implicit def tuple2query(kv: (String, String)): TermQuery