Closed wrkaiser closed 3 years ago
Hi @wrkaiser, at this point we do not support array values. You could add multiple fields in the index and add vectors in a single document. If you are looking into index into a single field, then every document should have one vector
Thx~~ I considered that you said, but the number of value is not fixed.
Sorry what do you mean by number of value is not fixed?
The length of array no fixed.
example,~ doc1: {"my_vector1" : [[1.5, 2.5], [2, 3], [3.5, 5]]} doc2: {"my_vector1" : [ [2, 7], [3, 3]]}
You will add one vector per document i.e each element of array which is a vector will be indexed in one document of Elasticsearch. As the number of vectors increase documents would increase.
thank you, i get~
eg. { "my_vector1" : [[1.5, 2.5], [2, 3], [3.5, 5]], "price":10 }