OpenSearch/plugins
Boaz Leskes bcb3fab6ac Engine: Remove Engine.Create
The `_create` API is handy way to specify an index operation should only be done if the document doesn't exist. This is currently implemented in explicit code paths all the way down to the engine. However, conceptually this is no different than any other versioned operation - instead of requiring a document is on a specific version, we require it to be deleted (or non-existent). This PR removes Engine.Create in favor of a slight extension in the VersionType logic.

There are however a couple of side effects:
- DocumentAlreadyExistsException is removed and VersionConflictException is used instead (with an improved error message)
- Update will reject version parameters if the upsert option is used (it doesn't compute anyway).
- Translog.Create is also removed infavor of Translog.Index (that's OK because their binary format was the same, so we can just read Translog.Index of the translog file)

Closes #13955
2015-10-07 12:37:34 +02:00
..
analysis-icu Merge pull request #13702 from rmuir/broke_javadocs 2015-09-22 00:46:31 -04:00
analysis-kuromoji Remove unnecessary copies of license and notice files 2015-09-18 17:48:30 -07:00
analysis-phonetic Merge pull request #13702 from rmuir/broke_javadocs 2015-09-22 00:46:31 -04:00
analysis-smartcn Remove unnecessary copies of license and notice files 2015-09-18 17:48:30 -07:00
analysis-stempel Remove unnecessary copies of license and notice files 2015-09-18 17:48:30 -07:00
cloud-gce Add SpecialPermission to guard exceptions to security policy. 2015-09-29 17:32:56 -04:00
delete-by-query Merge branch 'master' into feature/query-refactoring 2015-09-22 12:43:55 +02:00
discovery-azure Fix ping timeout settings inconsistencies 2015-09-23 12:58:23 -04:00
discovery-ec2 Merge branch 'pr/ec2-start-if-discovery-type' 2015-10-02 16:29:13 +02:00
discovery-multicast Merge pull request #13702 from rmuir/broke_javadocs 2015-09-22 00:46:31 -04:00
jvm-example more cleanups 2015-10-05 14:07:17 +02:00
lang-expression Remove ScriptEngineService.execute. 2015-10-06 13:27:27 +02:00
lang-groovy Engine: Remove Engine.Create 2015-10-07 12:37:34 +02:00
lang-javascript Remove ScriptEngineService.execute. 2015-10-06 13:27:27 +02:00
lang-python prevent test failures from jython localization bugs. 2015-10-06 10:17:19 -04:00
mapper-murmur3 Test: Move rest-api-spec for plugins into test resources 2015-09-16 03:04:53 -07:00
mapper-size Test: Move rest-api-spec for plugins into test resources 2015-09-16 03:04:53 -07:00
repository-azure Fix all javadocs issues, re-enable compiler warnings (but disable on java9 where maven is broken) 2015-09-21 23:35:32 -04:00
repository-s3 Add SpecialPermission to guard exceptions to security policy. 2015-09-29 17:32:56 -04:00
site-example Test: Move rest-api-spec for plugins into test resources 2015-09-16 03:04:53 -07:00
store-smb more cleanups 2015-10-05 14:07:17 +02:00
pom.xml Factor groovy out of core into lang-groovy 2015-09-28 20:17:45 -04:00