Description
Summary: I'm getting an error message when trying to use an FTS index. The index functions when I search it from Couchbase Console (and it also seems to work fine in Java/Node)
Repro:
- Setup Enterprise Edition 5.0.0 build 3217
- Create 'default' bucket
- Create user "demo" with password "123456" with Cluster Admin permissions
- Add some documents (see attached)
- Create a 'medical-condition' index. (see attached)
- Execute a full text search with MatchQuery, fields in the SearchParams, and highlighting for a field (see source code attached)
Expected:
Search results, no exception
Actual:
JsonReaderException with message "Unexpected character encountered while parsing value: {. Path 'status.errors', line 1, position 57."
Notes:
This is for the FTS portion of the Connect demo, but I attached a minimal console app that reproduces the error for me.
Here's the full stack trace of the exception:
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: {. Path 'status.errors', line 1, position 57.
at Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType)
at Newtonsoft.Json.JsonTextReader.ReadAsString()
at Couchbase.Search.SearchDataMapper.ReadStatus(JsonTextReader reader, SearchQueryResult response)
at Couchbase.Search.SearchDataMapper.Map[T](Stream stream)
at Couchbase.Search.SearchClient.<QueryAsync>d__3.MoveNext()
Unexpected character encountered while parsing value: {. Path 'status.errors', line 1, position 57.