Add experimental and warnings to vector functions (#42205)
This commit is contained in:
parent
0449869511
commit
216c74d10a
|
@ -74,10 +74,18 @@ to be the most efficient by using the internal mechanisms.
|
||||||
|
|
||||||
[[vector-functions]]
|
[[vector-functions]]
|
||||||
===== Functions for vector fields
|
===== Functions for vector fields
|
||||||
|
|
||||||
|
experimental[]
|
||||||
|
|
||||||
These functions are used for
|
These functions are used for
|
||||||
for <<dense-vector,`dense_vector`>> and
|
for <<dense-vector,`dense_vector`>> and
|
||||||
<<sparse-vector,`sparse_vector`>> fields.
|
<<sparse-vector,`sparse_vector`>> fields.
|
||||||
|
|
||||||
|
NOTE: During vector functions' calculation, all matched documents are
|
||||||
|
linearly scanned. Thus, expect the query time grow linearly
|
||||||
|
with the number of matched documents. For this reason, we recommend
|
||||||
|
to limit the number of matched documents with a `query` parameter.
|
||||||
|
|
||||||
For dense_vector fields, `cosineSimilarity` calculates the measure of
|
For dense_vector fields, `cosineSimilarity` calculates the measure of
|
||||||
cosine similarity between a given query vector and document vectors.
|
cosine similarity between a given query vector and document vectors.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue