Commit graph

218 commits

Author SHA1 Message Date
32a04fb1b0
Merge remote-tracking branch 'origin/develop' into feature/cms-9-update
Conflicts:
    Documentation/source/changelog.rst
    Makefile
2019-06-06 15:58:06 +02:00
f7e748877b
Fix pagination for CMS 9 2019-06-06 15:37:30 +02:00
1f082ab673
Do not change CGL
Keep changed for pull request to a necessary minimum.
2019-05-17 17:53:49 +02:00
9946276f43
Remove compatibility layer, as only V9 is supported 2019-05-17 17:30:11 +02:00
6cfca1f259
Respect cycler pages during indexing
This was done by TYPO3 itself before Version 9. Since version 9, we have
to take care ourselves.
2019-05-17 17:05:15 +02:00
b88869ecaa
!!!|Fix unit tests for CMS 9 + PHP 7.3
* Add some more checks to remove PHP warnings / notices.
* Adjust code to match CMS 9 API / interfaces.
* Do no longer use "query" but only searchTerm, as query is internal
  API.
2019-05-17 16:22:06 +02:00
5779cb911d
Revert changes to configuration fetching
Keep old code and behaviour. Adjust only a single place to keep old
expected behaviour.

If TYPO3 throws an exception, catch this, and replace it by old
behaviour which is already handled throughout the code.
2019-05-05 10:12:13 +02:00
2b91425732
Remove unused debugger imports 2019-05-05 10:11:09 +02:00
c940ac4497
Fix CGL issues
Do not introduce unnecessary changes into pull request for TYPO3 CMS 9
update.

* Trim trailing whitespace.
* Do not introduce blank line before namespace definition with this pull
  request.
* Add posix new line at end of file.
2019-05-05 09:57:19 +02: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
Daniel Maier
5acdd91865 [fix] v9 compatible extension configuration implementation 2018-10-30 13:02:34 +01:00
Daniel Maier
4606d7649e [task] dont define multiple implementations with same class 2018-10-30 12:56:32 +01:00
Daniel Maier
fbaa555b96 [task] catch wrong exceptions when accessing configuration 2018-10-30 11:46:21 +01:00
Daniel Maier
d1607ac1b4 [task] resturcture compatibility layer 2018-10-30 11:30:06 +01:00
Daniel Maier
fa74af3261 [task] implement extension configuration interface 2018-10-30 11:13:56 +01:00
Daniel Maier
690e6a431d [task] drop typo3 7.6 2018-10-30 11:13:21 +01:00
Martin Hummer
fd78867b40
Add missing return statement 2018-10-22 13:34:26 +02:00
Daniel Maier
6a697133bb Merge branch 'feature/update-9' of github.com:bergwerk/search_core into feature/update-9
# Conflicts:
#	Classes/Configuration/ConfigurationContainer.php
2018-10-22 09:11:54 +02:00
Konstantin Sölch
0a9cdd5dce [TASK] bugfixes and error removal 2018-10-18 15:21:25 +02:00
Daniel Maier
5ea0f34632 [task] handle missing array path exceptions 2018-10-17 17:17:06 +02:00
Daniel Maier
0836c66cb3 [task] remove no longer required like method 2018-10-17 15:55:04 +02:00
Daniel Maier
50baec90ec [task] migrate array utility 2018-10-17 15:54:54 +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
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
dfb3f897e7
!!!|FEATURE: Extract relation resolver to data processor
Instead of hardcoding and tight coupling of relation resolving, we now
provide a dataprocessor instead.

Therefore you need to configure resolving for each indexed type.

This resolves #149 and #147.
2018-04-24 11:00:29 +02:00
0d57374f25
Merge remote-tracking branch 'origin/develop' into feature/147-handle-rendertype-inputDateTime
Conflicts:
    Tests/Unit/Domain/Index/TcaIndexer/RelationResolverTest.php
2018-04-19 17:08:13 +02:00
82d397c428
FEATURE: Keep sys_language_uid while indexing
Before this change, sys_language_uid was indexed as an empty string, due
to internal used TYPO3 API.
We now skip the configure field which defines language uid. This way you
can build filter based on current language.

Resolves #148
2018-04-12 12:03:02 +02:00
c1d1e6ed68
BUGFIX: Do not resolve inputDateTime as relation
Add test which checks this behaviour.
Exclude inputDateTime from relation resolving.

Resolves #147
2018-04-12 12:01:07 +02:00
eb1c988f6d
Merge pull request #145 from Codappix/feature/add-type-to-resultitem
FEATURE: Provide type of result item
2018-03-22 13:40:27 +01:00
c8dc95c4d3
FEATURE: Provide type of result item
In order to make further usage easier, we provide the type for each
result item.

This makes it possible to call {f:render(section: resultItem.type)}.
2018-03-20 16:07:28 +01:00
372cd48471
FEATURE: Allow to copy a single field with CopyToProcessor 2018-03-20 15:43:09 +01:00
8fe42789ba Merge remote-tracking branch 'origin/develop' into feature/112-prevent-issue-with-non-uids 2018-03-20 14:18:00 +01:00
4bffa33401
Merge pull request #138 from Codappix/feature/134-allow-header-element-to-be-indexed
FEATURE: Make content fields configurable
2018-03-20 11:31:10 +01:00
979db75ef8
Merge pull request #141 from Codappix/hotfix/allow-multiple-instances
BUGFIX: Allow multiple instances with different configurations
2018-03-20 11:27:25 +01:00
203b5d7adf
TASK: Prevent issue When hook is called with non uid
If some issues occur outside of our extension, we might not get a valid
uid inside of our hooks. We will therefore add additional checks and
prevent any further execution.

Resolves: #112
2018-03-20 11:25:51 +01:00
32df6ff8ec
BUGFIX: Allow multiple instances with different configurations
In order to use the plugin with different configurations on same site,
we can not use ConfigurationContainerInterface as a Singleton.
This would prevents us from using different configuration setups.
2018-03-20 10:21:03 +01:00
bb10f4f5d6 Merge remote-tracking branch 'origin/develop' into feature/134-allow-header-element-to-be-indexed 2018-03-16 17:28:56 +01:00
81b210b3b7 Merge remote-tracking branch 'origin/develop' into hotfix/135-limit-page-indexing 2018-03-15 16:03:30 +01:00
9c25f1560b Merge remote-tracking branch 'origin/develop' into feature/134-allow-header-element-to-be-indexed 2018-03-15 16:03:20 +01:00
2b78ffbe96
BUGFIX: Workaround doctrine limitation
Doctrine will not implode our array, so we have to do
2018-03-15 14:42:41 +01:00
f3e8dacd4e
TASK: Keep language information for all TYPO3 Versions
Keep code consistent. Fetch language field for both TYPO3 versions.
To make sure we do not mess up, add test case.
2018-03-15 13:59:47 +01:00
403fd47df0
TASK: Add necessary phpdoc for extbase
As extbase does not reflect PHP source but phpdoc, we have to define the
type to use for mapping as phpdoc.
2018-03-15 11:29:29 +01:00
218d8d7289
FEATURE: Make content fields configurable
Allows integrators to configure which fields should be used to produce
field "content" for indexed pages.

Before only "bodytext" was used. This is now configurable and "header"
was added to defaults.

Resolves: #134
2018-03-15 09:15:26 +01:00
a232ae0b36
BUGFIX: Respect page uid of content records
Do not index content records of all pages while indexing pages in CMS
8.x.

We add same logic as for CMS 7.x, we extend the query to only fetch
records from current page.

Resolves: #135
2018-03-15 08:08:47 +01:00
835924a8d8
Merge remote-tracking branch 'origin/develop' into feature/support-typo3-7-to-8
Conflicts:
    Tests/Functional/Hooks/DataHandler/ProcessesAllowedTablesTest.php
    Tests/Unit/Domain/Index/TcaIndexer/TcaTableServiceTest.php
2018-03-14 20:13:03 +01:00
4d2c8f79ca
TASK: Use imported interface 2018-03-14 20:08:53 +01:00
b5b0acdc62
TASK: Provide sys_language_uid
Fetch sys_language_uid from database.
Until now we did not fetch system related fields from database. As there
is now a RemoveProcessor, integrators are able to remove fields.
Also providing this field enables basic multi language support.

Relates: #25
2018-03-14 19:56:03 +01:00
20513400de
FEATURE: Index page if cache was cleared
We use the cache clear hook to index pages whenever the cache was
cleared.
This makes it possible to cover some cases like changing content on a
page. But also if an integrator configures to clear additional pages.

This is limited as we can not handle cache tags at the moment.

Resolves: #131
2018-03-13 21:52:50 +01:00