Details

    • Bug
    • Status: Resolved
    • Test Blocker
    • Resolution: Fixed
    • 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

            Looks like migrating.js needs a little attention, working on this.

            hakim.cassimally Hakim Cassimally added a comment - Looks like migrating.js needs a little attention, working on this.

            Have done some work on migrating.js, not complete, but should satisfy the original ticket and beyond.

            hakim.cassimally Hakim Cassimally added a comment - Have done some work on migrating.js, not complete, but should satisfy the original ticket and beyond.

            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