Details
-
Bug
-
Resolution: Fixed
-
Critical
-
7.6.0
-
Couchbase Enterprise Edition build 7.6.0-1916
-
Untriaged
-
Ubuntu 64-bit
-
-
0
-
Unknown
Description
Steps to reproduce
1. Created a 4 node cluster with 1 kv node, 1 n1ql node and 2 search node
2. Created a couchstore bucket named bucket1 and imported a dataset onto it
3. Created a search index with with 2 mapping child fields and index partitions = 5
- field - content, type - text, searchable as - content, analyser - en
- field - vector, type - vector, searchable as - vector, dimension - 384, similarity metric - dot_product
4. Ran a search query on normal fields with this query
{
|
"query":{ |
"match":"book", |
"field":"content" |
},
|
"highlight":{}, |
"fields":[ |
"content" |
],
|
"from":0, |
"size":10 |
}
|
The search produces the following results
5. Ran a vector search query (attached) returns the following result
6. Ran the same search query using n1ql, the result is consistent with query from search service
SELECT meta().id FROM bucket1._default._default as t
|
WHERE SEARCH(t, {
|
"query":{ |
"match":"book", |
"field":"content" |
},
|
"highlight":{}, |
"fields":[ |
"content" |
],
|
"from":0, |
"size":10 |
});
|
7. Ran the vector search query from n1ql service(attached), the query returns inconsistent results