Skip to content

Commit da1cdeb

Browse files
committed
Update ESQL for search landing page for 9.2
1 parent f8ae059 commit da1cdeb

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

solutions/search/esql-for-search.md

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
mapped_pages:
33
- https://www.elastic.co/guide/en/elasticsearch/reference/8.18/esql-for-search.html
44
applies_to:
5-
stack: preview 9.0, ga 9.1
6-
serverless: ga
5+
stack:
6+
serverless:
77
products:
88
- id: elasticsearch
99
---
@@ -26,12 +26,16 @@ The following table summarizes the key search features available in [{{esql}}](e
2626
| Feature | Description | Available since |
2727
|---------|-------------|----------------|
2828
| [Match function/operator](#match-function-and-operator) | Perform basic text searches with `MATCH` function or match operator (`:`) | 8.17 |
29-
| [Query string function](#query-string-qstr-function) | Execute complex queries with `QSTR` using Query String syntax | 8.17 |
29+
| [Query string function](#qstr-function) | Execute complex queries with `QSTR` using Query String syntax | 8.17 |
3030
| [Relevance scoring](#esql-for-search-scoring) | Calculate and sort by relevance with `METADATA _score` | 8.18/9.0 |
3131
| [Semantic search](#semantic-search) | Perform semantic searches on `semantic_text` field types | 8.18/9.0 |
3232
| [Hybrid search](#hybrid-search) | Combine lexical and semantic search approaches with custom weights | 8.18/9.0 |
3333
| [Kibana Query Language](#kql-function) | Use Kibana Query Language with the `KQL` function | 8.18/9.0 |
3434
| [Match phrase function](#match_phrase-function) | Perform phrase matching with `MATCH_PHRASE` function | 8.19/9.1 |
35+
| [FORK command](#fork-and-fuse-commands) | Create multiple execution branches to operate on the same input data | 8.19/9.1 |
36+
| [FUSE command](#fork-and-fuse-commands) | Combine and score results from multiple queries for hybrid search | 9.2 |
37+
| [KNN function](#knn-function) | Find k nearest vectors using approximate search on indexed fields | 9.2 |
38+
| [TEXT_EMBEDDING function](#text_embedding-function) | Generate dense vector embeddings from text using inference endpoints | 9.2 |
3539

3640
## How search works in {{esql}}
3741

@@ -84,9 +88,9 @@ Use the [`MATCH_PHRASE` function](elasticsearch://reference/query-languages/esql
8488

8589
For exact phrase matching rather than individual word matching, use `MATCH_PHRASE`.
8690

87-
### Query string (`QSTR`) function
91+
### `QSTR` function
8892

89-
The [`qstr` function](elasticsearch://reference/query-languages/esql/functions-operators/search-functions.md#esql-qstr) provides the same functionality as the Query DSL's `query_string` query. This enables advanced search patterns with wildcards, boolean logic, and multi-field searches.
93+
The [`QSTR` function](elasticsearch://reference/query-languages/esql/functions-operators/search-functions.md#esql-qstr) provides the same functionality as the Query DSL's `query_string` query. This enables advanced search patterns with wildcards, boolean logic, and multi-field searches.
9094

9195
For complete details, refer to the [Query DSL `query_string` docs](elasticsearch://reference/query-languages/query-dsl/query-dsl-query-string-query.md).
9296

@@ -96,6 +100,18 @@ Use the [KQL function](elasticsearch://reference/query-languages/esql/functions-
96100

97101
For migrating queries from other Kibana interfaces, the `KQL` function preserves existing query syntax and allows gradual migration to {{esql}} without rewriting existing Kibana queries.
98102

103+
### `KNN` function
104+
105+
The [`KNN` function](elasticsearch://reference/query-languages/esql/functions-operators/dense-vector-functions.md#esql-knn) finds the k nearest vectors to a query vector, as measured by a similarity metric. It performs approximate search on indexed `dense_vector` or `semantic_text` fields.
106+
107+
Use `KNN` for vector similarity search use cases, such as finding semantically similar documents or implementing recommendation systems based on vector embeddings.
108+
109+
### `TEXT_EMBEDDING` function
110+
111+
The [`TEXT_EMBEDDING` function](elasticsearch://reference/query-languages/esql/functions-operators/dense-vector-functions.md#esql-text_embedding) generates dense vector embeddings from text input using a specified inference endpoint.
112+
113+
Use `TEXT_EMBEDDING` to generate query vectors for KNN searches against your vectorized data or for other dense vector based operations.
114+
99115
## Advanced search capabilities
100116

101117
### Semantic search
@@ -110,6 +126,12 @@ Refer to [semantic search with semantic_text](/solutions/search/semantic-search/
110126

111127
[Hybrid search](/solutions/search/hybrid-search.md) combines lexical and semantic search with custom weights to leverage both exact keyword matching and semantic understanding.
112128

129+
#### `FORK` and `FUSE` commands
130+
131+
The [`FORK`](elasticsearch://reference/query-languages/esql/commands/fork.md) and [`FUSE`](elasticsearch://reference/query-languages/esql/commands/fuse.md) commands work together to enable hybrid search in {{esql}}.
132+
133+
`FORK` creates multiple execution branches that operate on the same input data. `FUSE` then combines and scores the results from these branches. Together, these commands allow you to execute different search strategies (such as lexical and semantic searches) in parallel and merge their results with proper relevance scoring.
134+
113135
Refer to [hybrid search with semantic_text](hybrid-semantic-text.md) for an example or follow the [tutorial](elasticsearch://reference/query-languages/esql/esql-search-tutorial.md#step-5-semantic-search-and-hybrid-search).
114136

115137
## Next steps [esql-for-search-next-steps]

0 commit comments

Comments
 (0)