Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-1296

FTS Locations Results Shown as Objects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.0
    • 3.2.2
    • 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.search.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 behavior for the same data & index can be seen on Playground.

      Error Message

      Found row: SearchRow(index='travel-fts-index_77859247a4f8c2ff_f4dbdf21', id='landmark_25956', score=0.9150004671703761, explanation={}, locations=<couchbase.search.SearchRowLocations object at 0x7fc7bcaeedf0>, fragments={}, fields={})

      Index Definition

      curl -XPUT http://${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": {
      "default_mapping":

      Unknown macro: { "enabled"}

      ,
      "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

            jared.casey Jared Casey
            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