cloudant-labs / clouseau

Expose Lucene features as an erlang-like node
Apache License 2.0
58 stars 32 forks source link

Investigate clouseau crashing when analyzer is a nested object #50

Closed tonysun83 closed 2 years ago

tonysun83 commented 2 years ago

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.

tonysun83 commented 2 years ago

https://github.com/cloudant-labs/clouseau/pull/51