Skip to content

Commit 216c74d

Browse files
Add experimental and warnings to vector functions (#42205)
1 parent 0449869 commit 216c74d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/reference/query-dsl/script-score-query.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,18 @@ to be the most efficient by using the internal mechanisms.
7474

7575
[[vector-functions]]
7676
===== Functions for vector fields
77+
78+
experimental[]
79+
7780
These functions are used for
7881
for <<dense-vector,`dense_vector`>> and
7982
<<sparse-vector,`sparse_vector`>> fields.
8083

84+
NOTE: During vector functions' calculation, all matched documents are
85+
linearly scanned. Thus, expect the query time grow linearly
86+
with the number of matched documents. For this reason, we recommend
87+
to limit the number of matched documents with a `query` parameter.
88+
8189
For dense_vector fields, `cosineSimilarity` calculates the measure of
8290
cosine similarity between a given query vector and document vectors.
8391

0 commit comments

Comments
 (0)