[ ] Refactoring (no functional changes, no api changes)
[X] Build related changes (Please run ./gradlew generateLock saveLock to refresh dependencies)
[ ] WHOSUSING.md
[ ] Other (please describe): Updated README.md for index for better clarity .
Changes in this PR
Currently when using the es7-persistence index plugin no workflows will be returned from the search since the query to Elasticsearch isn't correct for ES7 and contains the deprecated _type field in the request URI.
The Elasticsearch _search API still supports the _types but when indexing new objects the provided type can no longer be defined and will be ignored. All newly added documents do have the type _doc now and no longer workflow.
This change should be backwards compatible to existing documents when upgrading from ES6 to ES7.
I also added the plugin to the gradle.build file and fixed the corresponding lock files as well. In my case it has worked to still include the upstream es6-persistence plugin as well the es7-persistence plugin.
Pull Request type
./gradlew generateLock saveLock
to refresh dependencies)Changes in this PR
Currently when using the es7-persistence index plugin no workflows will be returned from the search since the query to Elasticsearch isn't correct for ES7 and contains the deprecated
_type
field in the request URI.See also: https://www.elastic.co/guide/en/elasticsearch/reference/7.17/removal-of-types.html
Before the change the workflow query will be build something like:
After the change, the URL looks like:
The Elasticsearch _search API still supports the
_types
but when indexing new objects the providedtype
can no longer be defined and will be ignored. All newly added documents do have the type_doc
now and no longerworkflow
.This change should be backwards compatible to existing documents when upgrading from ES6 to ES7.
I also added the plugin to the
gradle.build
file and fixed the corresponding lock files as well. In my case it has worked to still include the upstreames6-persistence
plugin as well thees7-persistence
plugin.