Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-60140

[FTS] : Vector Search query returning inconsistent results from search service and query service

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.6.0
    • 7.6.0
    • fts
    • Couchbase Enterprise Edition build 7.6.0-1916

    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

      1. field - content, type - text, searchable as - content, analyser - en
      2. 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

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            raghav.sk Raghav S K
            raghav.sk Raghav S K
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty