| 接口 | 说明 |
|---|---|
| Query |
Query interface, for more details please refer to the description of the specific implementation class.
|
| QueryBuilder |
All Query's innerBuilder inherit from QueryBuilder
|
| 类 | 说明 |
|---|---|
| BoolQuery |
Combined query (the most commonly used query under complex query conditions).
|
| BoolQuery.Builder | |
| ConstScoreQuery |
When we don't care about the impact of the retrieval term frequency TF (Term Frequency) on the ranking of search results, we can use constant_score to wrap the query statement query or filter statement, which improves the search speed.
|
| ConstScoreQuery.Builder | |
| DecayFuncDateParam |
Used for setting parameters in
DecayFunction, applicable to Date type fields. |
| DecayFuncDateParam.Builder | |
| DecayFuncGeoParam |
Used in
DecayFunction to set parameters, applicable to Geo-point type fields. |
| DecayFuncGeoParam.Builder | |
| DecayFuncNumericParam |
Used in
DecayFunction to set parameters, applicable to Long and Double type fields. origin, scale, and offset are Double type values, where scale should be greater than 0, and offset should be greater than or equal to 0. |
| DecayFuncNumericParam.Builder | |
| DecayFunction |
Used in
FunctionsScoreQuery, this function scores based on the relative distance between a field and a target value. |
| DecayFunction.Builder | |
| DecayParam |
Used in
DecayFunction to set parameters. |
| DecayParam.DecayFuncUnknownParam | |
| ExistsQuery |
Existence query for the 'exists' field
|
| ExistsQuery.Builder | |
| FieldValueFactor | 已过时 |
| FieldValueFactorFunction |
This is an upgraded feature of
FieldValueFactor. |
| FieldValueFactorFunction.Builder | |
| FunctionScoreQuery | 已过时 |
| FunctionScoreQuery.Builder | |
| FunctionsScoreQuery |
A Query used for processing document scores, which is an improved feature of
FunctionScoreQuery. |
| FunctionsScoreQuery.Builder | |
| GeoBoundingBoxQuery |
Find the data where the latitude and longitude fall within the specified rectangle.
|
| GeoBoundingBoxQuery.Builder | |
| GeoDistanceQuery |
Find data within a certain distance from a given location.
|
| GeoDistanceQuery.Builder | |
| GeoPolygonQuery |
Find the data within the shape enclosed by the specified polygon.
|
| GeoPolygonQuery.Builder | |
| InnerHits | |
| InnerHits.Builder | |
| KnnVectorQuery |
K-nearest neighbor query
|
| KnnVectorQuery.Builder | |
| MatchAllQuery |
Get all documents, and the score of all documents is 1.
|
| MatchAllQuery.Builder | |
| MatchPhraseQuery |
Similar to
MatchQuery (MatchQuery only matches a single word), but MatchPhraseQuery matches the entire phrase. |
| MatchPhraseQuery.Builder | |
| MatchQuery |
Includes fuzzy matching and phrase or proximity queries.
|
| MatchQuery.Builder | |
| NestedQuery |
Nested queries can be used to query nested objects/documents.
|
| NestedQuery.Builder | |
| PrefixQuery |
Match prefix.
|
| PrefixQuery.Builder | |
| QueryBuilders | |
| RandomFunction |
Used in
FunctionsScoreQuery, this function can assign random scores to documents, returning a random sort order. |
| RandomFunction.Builder | |
| RangeQuery |
Range query.
|
| RangeQuery.Builder | |
| ScoreFunction |
Each ScoreFunction is a scoring function, and currently, up to three ScoreFunctions can be used simultaneously for scoring.
|
| ScoreFunction.Builder | |
| SuffixQuery |
suffix query, for field type fuzzy_keyword only
|
| SuffixQuery.Builder | |
| TermQuery |
Accurate term query.
|
| TermQuery.Builder | |
| TermsQuery |
Multi-term query.
|
| TermsQuery.Builder | |
| WildcardQuery |
Wildcard query.
|
| WildcardQuery.Builder |
| 枚举 | 说明 |
|---|---|
| DecayFunction.MathFunction | |
| DecayParam.ParamType | |
| FieldValueFactorFunction.FunctionModifier | |
| FunctionsScoreQuery.CombineMode | |
| FunctionsScoreQuery.ScoreMode | |
| MultiValueMode | |
| QueryOperator | |
| QueryType |
Query types supported by SearchIndex
|
| ScoreMode |
Specifies which value to use for sorting when a field contains multiple values.
|
Copyright © 2025. All Rights Reserved.