Uploaded image for project: 'Scala Couchbase Client'
  1. Scala Couchbase Client
  2. SCBC-347

FTS Results with Missing Fields Throwing Error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.2.4
    • None
    • None
    • 1

    Description

      We have an example on Playground that throws an error when the fields are missing from the FTS result row (SearchRow) are missing. 

      This is not the same behaviour as in other SDKs like Java where it is shown as null/empty or discarded like in NodeJS. The other SDK outputs can be seen on playground with the same data & index.

      Error Message

      Found row: SearchRow(travel-fts-index_77859247a4f8c2ff_f4dbdf21,landmark_25956,0.9150004671703761,Failure(java.util.NoSuchElementException: Field explanation does not exist),None,Map(),Failure(java.util.NoSuchElementException: Field fields does not exist))

      FTS Index

      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

            graham.pople Graham Pople
            nithish.raghunandanan Nithish Raghunandanan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty