You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
summary: Enable LOOKUP JOIN in non-snapshot builds
3
+
area: ES|QL
4
+
type: enhancement
5
+
issues:
6
+
- 121185
7
+
highlight:
8
+
title: Enable LOOKUP JOIN in non-snapshot builds
9
+
body: |-
10
+
This effectively releases LOOKUP JOIN into tech preview. Docs will
11
+
follow in a separate PR.
12
+
13
+
- Enable the lexing/grammar for LOOKUP JOIN in non-snapshot builds.
14
+
- Remove the grammar for the unsupported `| JOIN ...` command (without `LOOKUP` as first keyword). The way the lexer modes work, otherwise we'd also have to enable `| JOIN ...` syntax on non-snapshot builds and would have to add additional validation to provide appropriate error messages.
15
+
- Remove grammar for `LOOKUP JOIN index AS ...` because qualifiers are not yet supported. Otherwise we'd have to put in additional validation as well to prevent such queries.
16
+
17
+
Also fix https://github.com/elastic/elasticsearch/issues/121185
Copy file name to clipboardExpand all lines: docs/reference/search/search-your-data/semantic-text-hybrid-search
+15-29Lines changed: 15 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -113,6 +113,7 @@ POST _tasks/<task_id>/_cancel
113
113
==== Perform hybrid search
114
114
115
115
After reindexing the data into the `semantic-embeddings` index, you can perform hybrid search by using <<rrf,reciprocal rank fusion (RRF)>>. RRF is a technique that merges the rankings from both semantic and lexical queries, giving more weight to results that rank high in either search. This ensures that the final results are balanced and relevant.
116
+
To extract the most relevant fragments from the original text and query, you can use the <<highlighting,highlight parameter>>:
@@ -150,7 +158,7 @@ GET semantic-embeddings/_search
150
158
<2> Lexical search is performed on the `content` field using the specified phrase.
151
159
<3> The second `standard` retriever refers to the semantic search.
152
160
<4> The `semantic_text` field is used to perform the semantic search.
153
-
161
+
<5> Specifies the maximum number of fragments to return. See <<semantic-text-highlighting, semantic text highlighting>> for a more complete example.
154
162
155
163
After performing the hybrid search, the query will return the top 10 documents that match both semantic and lexical search criteria. The results include detailed information about each document:
156
164
@@ -178,36 +186,14 @@ After performing the hybrid search, the query will return the top 10 documents t
178
186
"_score": 0.032786883,
179
187
"_rank": 1,
180
188
"_source": {
181
-
"semantic_text": {
182
-
"inference": {
183
-
"inference_id": "my-elser-endpoint",
184
-
"model_settings": {
185
-
"task_type": "sparse_embedding"
186
-
},
187
-
"chunks": [
188
-
{
189
-
"text": "What so many out there do not realize is the importance of what you do after you work out. You may have done the majority of the work, but how you treat your body in the minutes and hours after you exercise has a direct effect on muscle soreness, muscle strength and growth, and staying hydrated. Cool Down. After your last exercise, your workout is not over. The first thing you need to do is cool down. Even if running was all that you did, you still should do light cardio for a few minutes. This brings your heart rate down at a slow and steady pace, which helps you avoid feeling sick after a workout.",
190
-
"embeddings": {
191
-
"exercise": 1.571044,
192
-
"after": 1.3603843,
193
-
"sick": 1.3281639,
194
-
"cool": 1.3227621,
195
-
"muscle": 1.2645415,
196
-
"sore": 1.2561599,
197
-
"cooling": 1.2335974,
198
-
"running": 1.1750668,
199
-
"hours": 1.1104802,
200
-
"out": 1.0991782,
201
-
"##io": 1.0794281,
202
-
"last": 1.0474665,
203
-
(...)
204
-
}
205
-
}
206
-
]
207
-
}
208
-
},
209
189
"id": 8408852,
210
190
"content": "What so many out there do not realize is the importance of (...)"
0 commit comments