FTS response type wrong

Description

FTS query response comes with "fields" as typeof string. This is an underlining type coming from C++. 

https://github.com/couchbase/couchnode/blob/ef01f607acd65e127f403db10a70f2cec870bd63/lib/binding.ts#L691-L699

In Node SDK 3.2.4 used to be an object.

Environment

Node SDK 4.1 Mac ARM nodejs 16.16

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

Jared Casey February 8, 2023 at 11:44 PM

Search response fields and explanation are now object types if they exist.

Sergey Auseyau October 10, 2022 at 3:36 PM

, "fields" and "explanation" are JSON-encoded strings, and they have to be parsed in the wrapper as JSON.

https://github.com/couchbaselabs/couchbase-cxx-client/blob/d0142981f74192c5a816a78fb93becb554b6f304/core/operations/document_search.cxx#L191-L196

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Fix versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created August 12, 2022 at 3:59 PM
Updated February 8, 2023 at 11:44 PM
Resolved February 8, 2023 at 11:44 PM
Instabug