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

[FTS] UI - Child mappings with no fields are invisible in UI

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.0.0
    • 4.5.0
    • fts
    • Untriaged
    • Unknown

    Description

      If a user creates a child mapping that doesn't contain any field mappings, and then creates the index, the child mapping does not show up in the UI if the user goes back to modify the index defintion. The JSON does contain the child mapping definitions as it is supposed to.

      /curl -XPUT -H "Content-Type: application/json" \
       http://localhost:8094/api/index/test-idx \
       -d '{
        "type": "fulltext-index",
        "name": "test-idx",
        "uuid": "498d338b4ca7d496",
        "sourceType": "couchbase",
        "sourceName": "travel-sample",
        "sourceUUID": "7103f7a5f808d3c367ef4efdf6a75819",
        "planParams": {
          "maxPartitionsPerPIndex": 32,
          "numReplicas": 0,
          "hierarchyRules": null,
          "nodePlanParams": null,
          "pindexWeights": null,
          "planFrozen": false
        },
        "params": {
          "mapping": {
            "byte_array_converter": "json",
            "default_analyzer": "standard",
            "default_datetime_parser": "dateTimeOptional",
            "default_field": "_all",
            "default_mapping": {
              "display_order": "0",
              "dynamic": false,
              "enabled": true,
              "properties": {
                "geo": {
                  "display_order": "0",
                  "dynamic": false,
                  "enabled": true
                }
              }
            },
            "default_type": "_default",
            "index_dynamic": true,
            "store_dynamic": false,
            "type_field": "type"
          },
          "store": {
            "kvStoreName": "forestdb"
          }
        },
        "sourceParams": {
          "clusterManagerBackoffFactor": 0,
          "clusterManagerSleepInitMS": 0,
          "clusterManagerSleepMaxMS": 2000,
          "dataManagerBackoffFactor": 0,
          "dataManagerSleepInitMS": 0,
          "dataManagerSleepMaxMS": 2000,
          "feedBufferAckThreshold": 0,
          "feedBufferSizeBytes": 0
        }
      }'
      

      Attachments

        For Gerrit Dashboard: MB-19393
        # Subject Branch Project Status CR V

        Activity

          People

            steve Steve Yen
            will.gardella Will Gardella (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty