Commit graph

27 commits

Author SHA1 Message Date
689f293194
TASK: Finish deletion of index and documents feature
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.
2018-12-30 13:43:43 +01:00
a858d748ee
TASK: Shorten code
* 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.
2018-12-29 18:06:26 +01:00
13cd87019f
TASK: Refactor type handling for elasticsearch
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.
2018-12-29 18:05:24 +01:00
Benjamin Serfhos
ab1b6b5da9 [TASK] Finetune so interface is not reliant for Elastica library 2018-10-29 13:59:51 +01:00
2d9062b6e3
TASK: Streamline phpdoc
* Do not add duplicate information from PHP to phpdoc.
* Do not add useless comments like "this is a constructor of class x".
2018-10-27 14:08:11 +02:00
Benjamin Serfhos
23f3d0df92 [TASK] Add functional test for deleteDocuments functionality 2018-10-26 09:46:01 +02:00
Benjamin Serfhos
b70dd604fe [TASK] Process own feedback based on tests 2018-10-26 09:26:33 +02:00
Benjamin Serfhos
7566bf93d5 [FEATURE] Add Frontend User access query for secure search on elastic index 2018-10-22 17:28:17 +02:00
Benjamin Serfhos
e297d556e6 [!!!][FEATURE] Remap specific document type's to ES6 identifiers
Multiple types are not allowed any more in ES6. Refactored to use document type and custom
identifier to still create different 'types'.

See: https://www.elastic.co/guide/en/elasticsearch/reference/6.x/removal-of-types.html
2018-10-12 09:30:25 +02:00
Benjamin Serfhos
a93a7af27f [TASK] Add docprops to classes
+ Updated version pointer
+ Replaces deprecated ArrayUtility for Core utility
2018-10-03 10:59:45 +02:00
Justus Moroni
2b56d4c2d5 Merge branch 'develop' into feature/75-make-index-configurable
# Conflicts:
#	Documentation/source/configuration/connections.rst
#	Documentation/source/connections.rst
2018-05-17 23:51:55 +02:00
Justus Moroni
a15b78ff45 FEATURE: Provide new feature to configure the index
This enables you to configure the index which elastic
will use.

Related: #75
2018-05-17 23:42:13 +02:00
560597dcff
TASK: Cleanup type annotations and phpstan issues 2018-03-06 17:40:49 +01:00
b7b783a7fe
TASK: Use Code Sniffer at travis
This way we need no external service.
Each developer can fully run all tests and cgl on local environment.
Also this integrated better into IDEs and editors.
2017-11-11 16:52:02 +01:00
a3a46f5cb5
FEATURE: Provide command to delete whole index
This is necessary, e.g. for complete re-indexing.
2017-11-10 13:22:15 +01:00
f7e1bd1cdf
FEATURE: Implement necessary logic to support PaginateViewHelper 2017-08-08 17:19:50 +02:00
c58e13cdf6
TASK: Rename vendor
As we move it from private repo to codappix.
2017-07-06 23:48:47 +02:00
975381cc4a
TASK: Integrate working code
Copied code from customer installation with working implementation.
2017-07-06 12:03:52 +02:00
1a41c5e237
FEATURE: Add filter to search
* Allow to filter results by field values.
2017-06-06 13:53:08 +02:00
3a2523e1d2
WIP|FEATURE: First basic implementation of filter
* Working version without further architecture.
* Manually tested.
* Still need to move to new architecture and cover with tests.
2017-06-06 12:32:27 +02:00
8448618f60
FIX: Catch deletion of non existing documents
* Catch exception raised during deletion of documents that are not
  already indexed.
* Log failed deletion tries.
* Add new necessary Exceptions.
2017-01-26 11:01:00 +01:00
1486799a02
CLEANUP: Code Style Issues 2016-12-15 11:41:45 +01:00
98affa8f69
TASK: Resolve first review results
* Also remove coverage output on stdout, as it won't help anyone.
2016-12-15 09:17:58 +01:00
1692a02c55 CLENAUP: Remove some scrutinizer ci issues 2016-12-12 18:02:52 +01:00
62ce197406 FEATURE: Added tests for hook and implemented logic (#8)
* FEATURE: Added tests for hook and implemented logic

* To enable updating search index on modifications through TYPO3 API.

* BUGFIX: Fix path for unit test coverage report

* To fix failing delivery to scrutinizer.
2016-12-12 13:33:07 +01:00
e75f24092e Feature/improve scrutinizer (#3)
* TASK: Fix scrutinizer issues

* TASK: Add library dependency

* FIX: Adjust php and TYPO3 requirements

* TASK: Adjust test
2016-12-09 14:07:38 +01:00
b079dd8125 TASK: Migrate existing code (#2) 2016-12-09 13:19:35 +01:00