Instead of only adding a new class for one static method, we extend the
existing class to only import a single class.
This way we extend the original array utility function collection.
We replace the "flush" and "delete" by "delete" and "deletedocuments"
logic. This makes it more obvious what will happen, without reading the
docs.
Also we kept the logic to always provide the index name, as
we will need them in the future. Due to elasticsearch v6 changes no
types are allowed in the same index in the future. Therefore we need to
make it possible to use different indexes in the future, leading to the
need to provide the document type all the time.
* Add some missing documentation.
* Adjust some documentation due to breaking changes.
* Adjust structure of documentation for easier changelog rendering and
browsing.
* Do not use variable, instead provide result to method call.
* Do not provide public method which is not part of API. Otherwise one
might use it in custom PHP code and switch connection later on. Then the
method call will no longer work.
With V6 of elasticsearch the meaning / handling of index and type has
changed, and it will change further in the future.
We therefore move code to own classes and adjust / refactor calling
code.
As this didn't work on first use. Also no tests are available for this
feature yet.
As we remove the whole feature in a single commit, we can revert this
commit later. This way we can upgrade Elasticsearch and provide this
feature later on.
Otherwise user input is saved and re displayed to foreign visitors.
If someone is in need for an cached version, he can create a plugin
inside his sitepackage with a different plugin signature but same
action.
If that does not work, we might add another action for caching.
Also keep old action name to be non breaking.
* Streamline all commands to always accept a comma separated list of
identifiers.
* Adjust phpdoc to reflect this feature and provide help on CLI.
* Refactor code to move recurring logic to own method.
* Provide tests for new feature.
* Add documentation for feature.