couchbase - 7.2.0 -1917
java sdk 3.3
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);
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 ?