Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.2.0
-
None
-
None
-
1
Description
We have an example on Playground that is using FTS & printing the results returned.
Printing the results show the Locations as
Couchbase::Cluster::SearchRowLocations object instead of the locations being shown as empty or ignored if it is not stored like the other SDKs like Java/NodeJS. The other SDK behaviour for the same data & index can be seen on Playground.
Error Message:
Found row: #<Couchbase::Cluster::SearchRow:0x00005618bc2fc5a8 @fields=nil, @fragments=nil, @id="landmark_25956", @index="travel-fts-index_77859247a4f8c2ff_f4dbdf21", @locations= #<Couchbase::Cluster::SearchRowLocations:0x00005618bc2fc558 @locations=[]>, @score=0.9150004671703761, @transcoder=#<Couchbase::JsonTranscoder:0x00005618bc2fce68>>
Index Definition
curl -XPUT http://$
Unknown macro: {CB_USER}:${CB_PSWD}@localhost:8094/api/index/travel-fts-index \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"name": "travel-fts-index",
"type": "fulltext-index",
"params": {
"mapping":Unknown macro: { "default_mapping"},
"default_type": "_default",
"default_analyzer": "standard",
"default_datetime_parser": "dateTimeOptional",
"default_field": "_all",
"store_dynamic": false,
"index_dynamic": true,
"docvalues_dynamic": false
},
"store":
Unknown macro: { "indexType"}
,
"doc_config":
Unknown macro: { "mode"}
},
"sourceType": "couchbase",
"sourceName": "travel-sample",
"sourceUUID": "",
"sourceParams": {},
"planParams":
Unknown macro: { "maxPartitionsPerPIndex"}
,
"uuid": ""
}'