cloudant-labs/clouseau

Investigate clouseau crashing when analyzer is a nested object

Closed this issue · 1 comments

Using mango text indexes, a user can seem to generate an analyzer of the form:

"analyzer": {
        "name": "perfield",
        "fields": {
          "$default": {
            "name": {
              "name": "standard"
            }
          }
        }
      },

This is passed into Clouseau as a nested object instead of an actual analyzer string name and can cause Clouseau to crash.