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

Java sdk 3.3.0 not able to query dataset for 7.2.0 non default collections

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Test Blocker
    • None
    • None
    • fts, performance
    • couchbase - 7.2.0 -1917
      java sdk 3.3
    • Untriaged
    • 1
    • Unknown

    Description

      I am running running the a query to a bucket that contains data in non default scope and non default collection ( all data is present in scope-1, collection-1)
      With FTS, there was a change in index naming. (doc : here

      Let us assume that the FTS index created on the bucket is : bucket-1.scope-1.perf_fts_index-0.

      with the current SDK ie SDK 3.3 , I am not able to query using this index. 

      The code is something like this (assuming that all the required packages are imported : 

      // 172.23.99.211 is the node belonging to the cluster with
      // 3 KV and 3 FTS nodes (KV and FTS co-existing in 3 nodes)

      cluster = Cluster.connect(172.23.99.211, env);
      cluster.authenticate("Administrator","password);
      bucket = cluster.bucket("bucket-1");
      SearchQuery q1 = SearchQuery.term("about").field("text"));
      SearchOptions opt = SearchOptions.searchOptions().limit(10);
      SearchResult res = cluster.searchQuery("bucket-0.scope-1.perf_fts_index-  0",q1,opt);

       

      Can you please take a look at this ?

      Attachments

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

        Activity

          People

            jyotsna.nayak Jyotsna Nayak
            jyotsna.nayak Jyotsna Nayak
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty