Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-2421

Remove default to NotBounded in FTS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.0
    • 3.0.0-beta.4
    • None

    Description

      Doing a search query results in a response like:

      String value: rest_index: Query, indexName: ftsIdx1, err: bleve: QueryBleve validating consistency, err: unsupported consistencyLevel: not_bounded

      (Same issue if we add our own SearchOptions with ScanConsistency set to request_plus)

      Note that the json that gets sent is the following:
      {"ctl":{"timeout":75000,"consistency":{"level":"not_bounded"}},"query":{"match":"SampleSubvalue68","prefix_length":0,"fuzziness":0}}
       

      Whereas other SDKs do not send consistency unless its via consistentWith for at_plus.

      For example, an equivalent search query from Java SDK3 sends 
      {"match":"SampleValue83","query":{"match":"SampleValue83"}}
      Also the only option provided by other SDKs is not_bounded, so the others should probably be removed?

      https://github.com/couchbase/couchbase-net-client/blob/8f13db061dccc7a0297b2db1732161418067cb09/src/Couchbase/Search/SearchScanConsistency.cs

      Attachments

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

        Activity

          People

            jmorris Jeff Morris
            will.broadbelt Will Broadbelt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty