Commit graph

244 commits

Author SHA1 Message Date
28a8dd1ab4
TASK: rephrase indice to index. 2018-12-30 13:22:25 +01:00
43254c168c
TASK: Fix license and php doc 2018-12-29 19:27:47 +01:00
8c33c8c6f0
TASK: Remove unused file / php class 2018-12-29 19:27:02 +01:00
831da6a4e4
TASK: Use new SearchRequestInterface everywhere
Otherwise the interface is no big benefit. Also it might crash under
some circumstances.
2018-12-29 19:21:58 +01:00
89a558e735
TASK: Improve documentation
* Add some missing documentation.
* Adjust some documentation due to breaking changes.
* Adjust structure of documentation for easier changelog rendering and
  browsing.
2018-12-29 19:21:16 +01:00
564ca1511c
TASK: Refactor code into common flow
As we have the same flow in some more places, we refactor this part to
follow this conventions.
2018-12-29 18:07:25 +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
ea8b4f4538
TASK: Fix / improve some comments
* Add missing throws annotation.
* Remove useless comments.
* Import namespaces used in comments.
2018-12-29 18:03:14 +01:00
9c2db0b5ba
TASK: Remove custom filter for fe group filtering
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.
2018-12-29 17:59:23 +01:00
6f34ca273b
BUGFIX: Keep necessary type hint for extbase 2018-12-27 11:57:58 +01:00
8531f26410
BUGFIX: Keep default action non cacheable
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.
2018-12-27 11:57:24 +01:00
f9ef8cb3bb
Merge remote-tracking branch 'origin/develop' into feature/elastic-upgrade
Conflicts:
    Classes/Configuration/ConfigurationContainer.php
2018-12-27 10:12:18 +01:00
Justus Moroni
6c46a20160 TASK: Make multiple plugins with flexform settings possible
Remove the specified pluginName in the
ConfigurationContainer so the correct settings for the
context can be fetched.

Resolves: #170
2018-11-06 17:40:48 +01:00
Benjamin Serfhos
ee1f235c2e [TASK] Use filter interface for custom added filter 2018-10-30 09:59:14 +01:00
Benjamin Serfhos
ef43bc1674 [FEATURE] Use interface for SearchService
Added cached proxy service for data interaction
2018-10-29 17:31:26 +01:00
Benjamin Serfhos
b8d708874e [TASK] Revert to only one plugin based on feedback 2018-10-29 17:29:11 +01:00
Benjamin Serfhos
2ee4a88a67 [TASK] Add objectmanager via constructor DI injection 2018-10-29 14:30:40 +01:00
Benjamin Serfhos
209f441b5d [TASK] Added link generation based on fluid templates
Removed search_page_typolink parameter from index
2018-10-29 14:30:37 +01:00
Benjamin Serfhos
5250f97809 [BUGFIX] Make sure boolean is returned for strict return type
When configured by comma seperate list, it should return true
2018-10-29 14:01:03 +01:00
Benjamin Serfhos
9b0b0305a7 [BUGFIX] Make sure the while loop is not closed
When filterRecordsByRootLineBlacklist() returns no results, loop should just ask
the next items based on iteration
2018-10-29 14:00:02 +01:00
Benjamin Serfhos
f1eb85de64 [TASK] Remove double variables 2018-10-29 14:00:02 +01:00
Benjamin Serfhos
4000699812 [TASK] Remove duplicate search_identifier in index 2018-10-29 14:00:02 +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
140dea3cbb
TASK: Refactor code to use guards and decrease indentation 2018-10-27 13:15:02 +02:00
5d5af73705
TASK: Add missing license comments in PHP files 2018-10-27 13:11:39 +02:00
2c6521a565
TASK: Fix phpdocs and type hints 2018-10-27 13:10:59 +02:00
30a34c4f15
FEATURE: Always accept comma separated list of identifiers on CLI
* 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.
2018-10-27 13:07:20 +02:00
577a5624b8
TASK: Remove code base for TYPO3 7.x
Also add documentation with breaking change.
2018-10-27 13:04:35 +02:00
Benjamin Serfhos
0d14f80f62 [TASK] Remove support for TYPO3 7.6 2018-10-26 14:48:13 +02:00
Benjamin Serfhos
a3ccc123c4 [TASK] Make sure CGL is correct 2018-10-26 11:29:37 +02:00
Benjamin Serfhos
6e492d2bdb [FEATURE] Added flush command as indexation is now into one 2018-10-26 10:56:57 +02:00
Benjamin Serfhos
b8de35adee [BUGFIX] Remove _all from unit tests 2018-10-26 10:49:43 +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
a50cbf25a2 [TASK] Process feedback and fix unit-tests 2018-10-24 17:41:47 +02:00
Benjamin Serfhos
028914e789 [TASK] Finetune query for document_type instead of regex 2018-10-24 14:08:59 +02:00
Benjamin Serfhos
519bc7e5b4 [BUGFIX] Inherit access groups from parent pages when extended to subpages 2018-10-24 10:09:22 +02:00
Benjamin Serfhos
3f5273f0fe [BUGFIX] Make sure the while loop is not closed when filterRecordsByRootLineBlacklist() returns no results 2018-10-22 17:28:49 +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
404f49aad2 [TASK] Add opening for possible user access lookup 2018-10-12 18:43:28 +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
1f0eae88f7 [TASK] Corectly index access group for query content 2018-10-08 11:57:26 +02:00
Benjamin Serfhos
de5261f7d4 [TASK] Add both form as list plugin seperate 2018-10-04 13:01:31 +02:00
Benjamin Serfhos
d0bbfb8682 [TASK] Add typolink to index 2018-10-03 11:59:56 +02:00
Benjamin Serfhos
acac544f77 [TASK] Remove deprecated _all field query for Elastic 6.x
See: https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-all-field.html
2018-10-03 11:32:24 +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
9cc5e45409
BUGFIX: Allow to define zero as valid filter value via TypoScript
The configured filter is no longer filtered, it's up to the integrator
to provide proper configuration. Therefore `0` is now a valid and
respected filter value.

Resolves: #163
2018-09-26 17:07:34 +02:00
244b0d9b12
TASK: Refactor column value in own method
This allows to replace this single part of code in own implementations.
2018-09-05 13:42:13 +02:00