Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-35640

FTS: Was able to create an index with null values

    XMLWordPrintable

Details

    • Untriaged
    • No

    Description

      Build 6.50.-4059

      Create index like below:

      admins-mbp-2:vm11 girishbenakappa$ curl -XPUT -H "Content-Type: application/json" -u Administrator:password http://172.23.109.180:8094/api/index/idx_travel_sample_fts2 -d '{
        "type": "fulltext-index",
        "name": "idx_travel_sample_fts2",
        "uuid": "",
        "sourceType": "couchbase",
        "sourceName": "travel-sample",
        "planParams": {
          "maxPartitionsPerPIndex": 171,
          "nodePlanParams": {
            "": {}
          }
        },
        "params": {
          "doc_config": {
            "docid_prefix_delim": "",
            "docid_regexp": "",
            "mode": "type_field",
            "type_field": "type"
          },
          "mapping": {
            "analysis": {},
            "default_analyzer": "standard",
            "default_datetime_parser": "dateTimeOptional",
            "default_field": "_all",
            "default_mapping": {
              "dynamic": true,
              "enabled": true
            },
            "default_type": "_default",
            "docvalues_dynamic": true,
            "index_dynamic": true,
            "store_dynamic": false,
            "type_field": "_type"
          },
          "store": {
            "indexType": "scorch",
            "mossStoreOptions": {}
          }
        },
        "sourceParams": null
      }'
      {"status":"ok"}
      

      Could able to create index with "sourceParams": null. This can lead to other issues like : MB-35508
      There should be validation for the index definition fields and error out while creating index if the values are not valid.

      Attachments

        Issue Links

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

          Activity

            People

              abhinav Abhi Dangeti
              girish.benakappa Girish Benakappa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty