Details
-
Bug
-
Resolution: Fixed
-
Major
-
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
- relates to
-
JCBC-1354 SDK3: Search fields can contain JSON object and array, which are currently returned as String
- Closed
For Gerrit Dashboard: GOCBC-401 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
105271,1 | GOCBC-401: Change searchResponse fields type | master | gocb | Status: ABANDONED | 0 | 0 |
105272,4 | GOCBC-401: Change searchResponse fields type | v1 | gocb | Status: MERGED | +2 | +1 |