Module elasticsearch_dsl::search
source · Expand description
Search APIs are used to search and aggregate data stored in Elasticsearch indices and data streams. For an overview and related tutorials, see Search your data.
Most search APIs support multi-target syntax, with the exception of the explain API.
https://www.elastic.co/guide/en/elasticsearch/reference/current/search.html
Re-exports§
pub use self::aggregations::*;
pub use self::highlight::*;
pub use self::knn::*;
pub use self::params::*;
pub use self::queries::params::*;
pub use self::queries::*;
pub use self::request::*;
pub use self::rescoring::*;
pub use self::runtime_mappings::*;
pub use self::script_fields::*;
pub use self::sort::*;
pub use self::suggesters::*;
Modules§
- An aggregation summarizes your data as metrics, statistics, or other analytics.
- Highlighters enable you to get highlighted snippets from one or more fields in your search results so you can show users where the query matches are.
- A k-nearest neighbor (kNN) search finds the k nearest vectors to a query vector, as measured by a similarity metric.
- Value types accepted by leaf query clauses
- Allows constructing Elasticsearch search query.
- Allows you to execute a search query and get back search hits that match the query.
- Rescore clause to run second query over original one results and that way give more accuracy for final results https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-request-rescore.html
- You can specify a
runtime_mappings
section in a search request to create runtime fields that exist only as part of the query. You specify a script as part of theruntime_mappings
section, just as you would if adding a runtime field to the mappings. - You can use the
script_fields
parameter to retrieve a script evaluation (based on different fields) for each hit. - Allows you to add one or more sorts on specific fields. Each sort can be reversed as well. The sort is defined on a per field level, with special field name for
_score
to sort by score, and_doc
to sort by index order. - Suggests similar looking terms based on a provided text by using a suggester.
Structs§
- Cluster statistics
- Suggester response item option
- Error cause
- Score explanation
- Represents a single matched document
- Matched hits
- Represents inner hits
- Nested document metadata
- Phrase suggester response item option
- Search response
- Shard failure details
- Number of shards touched with their states
- Document source with delayed deserialization
- Suggester response item
- Term suggester response item option
- Total number of matched documents
Enums§
- Suggester response option variants
- Relation to total number of matched documents