Uploaded image for project: 'Couchbase Ruby client library'
  1. Couchbase Ruby client library
  2. RCBC-358

FTS Locations Results Shown as Objects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.3.0
    • 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": ""
      }'

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            avsej Sergey Avseyev
            nithish.raghunandanan Nithish Raghunandanan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty