query: misc.
The blocks in the query: misc. group of query. If you run an older core, some of them may not be available to you yet.
- sorting
queryv10.4.28Sorts the results on the given field and ordering. - elseif
queryv10.4.28 - disable cache
queryv10.4.28Disables the storage cache in full for this query. Cache could be behind max. 5 seconds. - geo distance sorting
queryv12.0.4Sorts the results on the given geo_point field and ordering. - include removed
queryv10.4.28Include removed documents in the matching results. - include total hits
queryv10.4.28Include the total number of documents found besides the matching document count. - profile
queryv9.2.15Returns a profile of the matching results for debug purpose only. - offset
queryv10.4.28Start document search with an offset of.. - fields to select
queryv12.1.1Only return the selected fields in the search results (e.g. speed improvement) - count only
queryv10.4.28Return only the total number of documents found. - cast to object
objectv10.4.28 - sort score
queryv14.0.4Sorts results by their relevance score. Use together with a tiebreaker sort (e.g. sorting on _meta.created) for reliable cursor-based pagination with search_after. - if
queryv10.4.28 - search after
queryv14.0.4Enables cursor-based pagination using search_after. Pass the cursor from a previous search to continue from where it left off. - limit
queryv10.4.28Limit the search result, this does not work for streaming search on large storages. - include geo distance
queryv12.0.4Adds a field "distance" which returns the distance in meters based on the given geo_point - sort random
queryv10.4.28Sort the results randomly. This sorting only works if at least one positive query (e.g. must, filter, should) is used.
query Every block in this main group.