OpenSearch/x-pack/plugin
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
..
analytics Begin moving date_histogram to offset rounding (backport of #50873) (#50978) 2020-01-14 16:50:27 -05:00
ccr Track Snapshot Version in RepositoryData (#50930) (#50989) 2020-01-14 18:15:07 +01:00
core Add "did you mean" to ObjectParser (#50938) (#50985) 2020-01-14 17:53:41 -05:00
deprecation Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
enrich Backport: Fix ingest simulate response document order if processor executes async (#50269) 2019-12-17 12:27:07 +01:00
frozen-indices Use more specific loggers in subclasses of TMNA (#50076) 2019-12-11 15:07:47 +00:00
graph Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
ilm Mute SnapshotLifecycleRestIT testFullPolicySnapshot 2020-01-14 13:46:37 +01:00
logstash Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
mapper-flattened Add telemetry for flattened fields. (#48972) (#49125) 2019-11-18 12:29:42 -08:00
ml Add "did you mean" to ObjectParser (#50938) (#50985) 2020-01-14 17:53:41 -05:00
monitoring Add max_resource_units to enterprise license (#50910) 2020-01-14 12:37:05 +11:00
rollup Use more specific loggers in subclasses of TMNA (#50076) 2019-12-11 15:07:47 +00:00
search-business-rules Use Void context on parsers where possible (#50573) (#50617) 2020-01-03 13:28:55 -05:00
security Mute HttpCertificateCommandTests.testTextFileSubstitutions (#50965) (#50966) 2020-01-14 12:40:34 +01:00
spatial Geo: Switch generated GeoJson type names to camel case (#50400) 2019-12-20 15:37:22 -05:00
sql Add "did you mean" to ObjectParser (#50938) (#50985) 2020-01-14 17:53:41 -05:00
src/test Add "did you mean" to ObjectParser (#50938) (#50985) 2020-01-14 17:53:41 -05:00
transform [7.x][Transform] correctly retrieve checkpoints from remote indices (#50903) (#50969) 2020-01-14 15:09:14 +01:00
vectors Increase the number of vector dims to 2048 (#46895) 2019-11-20 07:47:33 -05:00
voting-only-node Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
watcher Add "did you mean" to ObjectParser (#50938) (#50985) 2020-01-14 17:53:41 -05:00
build.gradle Skip enterprise license tests in release build (#50182) 2019-12-16 10:11:21 +11:00