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

FTS cannot unmarshal query with fields

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0, 2.0.0-alpha1
    • Component/s: None
    • Labels:
      None

      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

            Hide
            build-team Couchbase Build Team added a comment -

            Build sync_gateway-2.6.0-37 contains gocb commit e9ce311 with commit message:
            GOCBC-401: Change searchResponse fields type

            Show
            build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-37 contains gocb commit e9ce311 with commit message: GOCBC-401 : Change searchResponse fields type
            Hide
            build-team Couchbase Build Team added a comment -

            Build sync_gateway-2.5.1-8 contains gocb commit e9ce311 with commit message:
            GOCBC-401: Change searchResponse fields type

            Show
            build-team Couchbase Build Team added a comment - Build sync_gateway-2.5.1-8 contains gocb commit e9ce311 with commit message: GOCBC-401 : Change searchResponse fields type

              People

              • Assignee:
                charles.dixon Charles Dixon
                Reporter:
                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

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.