Commit graph

209 commits

Author SHA1 Message Date
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
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
b2a63e9cb0
TASK: Make extension compatible with CMS 7.6 2018-03-13 20:34:56 +01:00
0122dd88e4
TASK: Fix call to non existing method 2018-03-13 12:19:54 +01:00
6d7199ccf2
TASK: Provide already used logger
As we use the logger, we should inject it.
2018-03-13 12:19:30 +01:00
9e80574361
TASK: Provide compatible TypoScriptService for both TYPO3 versions 2018-03-13 12:19:04 +01:00
75335e2bc1
TASK: Do not import unnecessary namespace
As imported class is on same level as we are, we do not need to import
the class.
2018-03-13 11:03:57 +01:00
ba19537f4e
TASK: Migrate existing 7.6 features
We had some features in 7.6 support which we didn't merge up yet.
Mostly very small bug fixes or more helpful logging and processing of
elasticsearch options.

But also adding images of content elements while indexing pages.
2018-03-13 11:02:29 +01:00
a469f63aa6
TASK: Cleanup differences
We have some small differences between develop and support/76 branch.
This differences are just CGL and should not exist.
2018-03-13 10:51:59 +01:00
09cd655a7a
TASK: Remove whitespace in return type annotation 2018-03-08 11:20:23 +01:00
fc8017fdf4
TASK: Fix further issues reported by phan 2018-03-08 11:09:28 +01:00