Details
-
Bug
-
Resolution: Fixed
-
Test Blocker
-
None
-
None
-
None
-
*Location*: https://docs.couchbase.com/nodejs-sdk/current/project-docs/migrating-sdk-code-to-3.n.html
*User-Agent*: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36
*Screen Resolution*: 2560 x 1440
-
DOC-2021-Oct10-S20, DOC-2021-Oct24-S21, DOC-2021-Nov07-S22, DOC-2021-Nov21-S23, DOC-2021-Dec05-S24, DOC-2021-Dec19-S25, DOC-2021-Dec31-S26, DOC-2022-S1, DOC-2022-S2
Description
Hi - couldn't figure out how to update this code example via github - looks like some sort of fimport being down.
But aynway, the Search code example for SDK3 is shown:
...
const searchResult = await cluster.searchQuery(
ftsQuery,
,
...
But after testing and looking at docs (cluster->searchquery) https://docs.couchbase.com/sdk-api/couchbase-node-client-3.0.7/Cluster.html
I believe that the indexname is still expected as the first parameter and can be excluded from the third parameter. Looking more like:
...
const searchResult = await cluster.searchQuery(
"hotels",
ftsQuery,
,
...
Hope you can get devs to confirm this and update me if I possibly got it wrong! I'm in slack btw
Reporter: Tyler Mitchell
E-mail: tylermitchell@shaw.ca
Attachments
Issue Links
- split to
-
CCBC-1524 Error message could be reworded
- Open