OpenSearch/x-pack/plugin/sql
Nik Everett fc5fde7950
Add "did you mean" to ObjectParser (#50938) (#50985)
Check it out:
```
$ curl -u elastic:password -HContent-Type:application/json -XPOST localhost:9200/test/_update/foo?pretty -d'{
  "dac": {}
}'

{
  "error" : {
    "root_cause" : [
      {
        "type" : "x_content_parse_exception",
        "reason" : "[2:3] [UpdateRequest] unknown field [dac] did you mean [doc]?"
      }
    ],
    "type" : "x_content_parse_exception",
    "reason" : "[2:3] [UpdateRequest] unknown field [dac] did you mean [doc]?"
  },
  "status" : 400
}
```

The tricky thing about implementing this is that x-content doesn't
depend on Lucene. So this works by creating an extension point for the
error message using SPI. Elasticsearch's server module provides the
"spell checking" implementation.
s
2020-01-14 17:53:41 -05:00
..
jdbc Handle NULL in ResultSet's getDate() method (#50184) 2019-12-17 10:03:23 +02:00
qa Add "did you mean" to ObjectParser (#50938) (#50985) 2020-01-14 17:53:41 -05:00
sql-action Upgrade to Lucene 8.4.0. (#50518) (#50750) 2020-01-08 18:53:59 +01:00
sql-cli Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
sql-client Clean up static web server in sql-client tests (#49187) (#49197) 2019-11-15 13:02:21 -07:00
sql-proto Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
src SQL: Optimisation fixes for conjunction merges (#50703) (#50933) 2020-01-13 21:51:29 +01:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00