Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-401

FTS cannot unmarshal query with fields

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.6.0, 2.0.0-alpha1
    • None
    • None
    • None
    • 1

    Description

      When creating a FTS query requesting non-string fields (e.g. "*" on a document with many field types), a Go unmarshal error is produced:

      cannot unmarshal array into Go struct field SearchResultHit.fields of type string

      This is because Fields in the searchResponse struct is set to map[string]string, it should be map[string]interface{} to allow for multiple field types.

      Attachments

        Issue Links

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

          Activity

            People

              charles.dixon Charles Dixon
              charles.dixon Charles Dixon
              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