Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-825

Wrong typings for facet search(Cluster.searchQuery)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.2.0-beta.1
    • 3.1.0
    • library
    • None
    • 1

    Description

      Here is definition of `searchQuery` method
      As you see id accept facets and sort. it is wrong typings because facets accept something like this:
      ```
      facets: {
         "countryFacet":

      {          field: "country",          size: 10     }

      ,

         "cityFacet":

      {          field: "city",          size: 10     }

      ,
        ....
      }
      ```
      Also, the `sort` field accepts an array of objects, but as we see according to typings it is just one object

      Attachments

        For Gerrit Dashboard: JSCBC-825
        # Subject Branch Project Status CR V

        Activity

          People

            brett19 Brett Lawson
            maidankyi roman
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty