Details

    • Bug
    • Resolution: Fixed
    • Test Blocker
    • None
    • None
    • None

    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,

      { indexName: "hotels", timeout:2000, limit:5, fields : ["a", "b", "c"] }

      ,
      ...

      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,

      { timeout:2000, limit:5, fields : ["a", "b", "c"] }

      ,
      ...

      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

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

          Activity

            People

              hakim.cassimally Hakim Cassimally
              docsite-collector Docs Site Collector
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty