Skip to content

Commit efed6e2

Browse files
committed
TASK: Changes according to review
1 parent 38f6931 commit efed6e2

21 files changed

Lines changed: 42 additions & 29 deletions

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ before_install:
2020
- cd ..
2121
- git clone https://github.com/neos/neos-base-distribution.git -b ${NEOS_TARGET_VERSION}
2222
- cd neos-base-distribution
23-
- composer require typo3/typo3cr-search:2.1.2 flowpack/elasticsearch-contentrepositoryadaptor
23+
- composer require neos/content-repository-search:~2.1.0 flowpack/elasticsearch-contentrepositoryadaptor
2424
install:
2525
- composer install
2626
- cd ..

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Driver/AbstractDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use TYPO3\TYPO3CR\Domain\Model\NodeInterface;
1818

1919
/**
20-
* Abstract Fulltext Indexer
20+
* Abstract Elasticsearch driver
2121
*/
2222
abstract class AbstractDriver
2323
{

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Driver/AbstractIndexerDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use TYPO3\TYPO3CR\Domain\Model\NodeInterface;
1818

1919
/**
20-
* Abstract Fulltext Indexer
20+
* Abstract Fulltext Indexer Driver
2121
*/
2222
abstract class AbstractIndexerDriver extends AbstractDriver
2323
{

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Driver/AbstractQuery.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use TYPO3\Flow\Utility\Arrays;
1717

1818
/**
19-
* Default Filtered Query
19+
* Abstract Elasticsearch Query
2020
*/
2121
abstract class AbstractQuery implements QueryInterface, \JsonSerializable, \ArrayAccess, ProtectedContextAwareInterface
2222
{
@@ -77,7 +77,7 @@ public function toArray()
7777
/**
7878
* {@inheritdoc}
7979
*/
80-
public function getRequestAsJSON()
80+
public function getRequestAsJson()
8181
{
8282
return json_encode($this);
8383
}

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Driver/DocumentDriverInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
* information, please view the LICENSE file which was distributed with this
1111
* source code.
1212
*/
13+
1314
use Flowpack\ElasticSearch\Domain\Model\Index;
1415
use TYPO3\TYPO3CR\Domain\Model\NodeInterface;
1516
use TYPO3\TYPO3CR\Domain\Model\NodeType;
1617

1718
/**
18-
* Document Driver Interface
19+
* Elasticsearch Document Driver Interface
1920
*/
2021
interface DocumentDriverInterface
2122
{

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Driver/IndexDriverInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
/**
15-
* Elastic Index Driver Interface
15+
* Elasticsearch Index Driver Interface
1616
*/
1717
interface IndexDriverInterface
1818
{

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Driver/IndexerDriverInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* information, please view the LICENSE file which was distributed with this
1111
* source code.
1212
*/
13+
1314
use Flowpack\ElasticSearch\Domain\Model\Document as ElasticSearchDocument;
1415
use TYPO3\TYPO3CR\Domain\Model\NodeInterface;
1516

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Driver/QueryInterface.php

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function toArray();
3030
*
3131
* @return string
3232
*/
33-
public function getRequestAsJSON();
33+
public function getRequestAsJson();
3434

3535
/**
3636
* Get the current count request as JSON string
@@ -39,12 +39,13 @@ public function getRequestAsJSON();
3939
*
4040
* @return string
4141
*/
42-
public function getCountRequestAsJSON();
42+
public function getCountRequestAsJson();
4343

4444
/**
4545
* Add a sort filter to the request
4646
*
4747
* @param array $configuration
48+
* @return void
4849
* @api
4950
*/
5051
public function addSortFilter($configuration);
@@ -53,6 +54,7 @@ public function addSortFilter($configuration);
5354
* Set the size (limit) of the request
5455
*
5556
* @param integer $size
57+
* @return void
5658
* @api
5759
*/
5860
public function size($size);
@@ -61,6 +63,7 @@ public function size($size);
6163
* Set the from (offset) of the request
6264
*
6365
* @param integer $size
66+
* @return void
6467
* @api
6568
*/
6669
public function from($size);
@@ -69,6 +72,7 @@ public function from($size);
6972
* Match the searchword against the fulltext index
7073
*
7174
* @param string $searchWord
75+
* @return void
7276
* @api
7377
*/
7478
public function fulltext($searchWord);
@@ -79,6 +83,7 @@ public function fulltext($searchWord);
7983
*
8084
* @param integer|boolean $fragmentSize The result fragment size for highlight snippets. If this parameter is FALSE, highlighting will be disabled.
8185
* @param integer $fragmentCount The number of highlight fragments to show.
86+
* @return void
8287
* @api
8388
*/
8489
public function highlight($fragmentSize, $fragmentCount = null);
@@ -88,7 +93,8 @@ public function highlight($fragmentSize, $fragmentCount = null);
8893
*
8994
* @param string $name
9095
* @param array $aggregationDefinition
91-
* @param null $parentPath
96+
* @param string $parentPath
97+
* @return void
9298
* @api
9399
* @throws Exception\QueryBuildingException
94100
*/
@@ -99,6 +105,7 @@ public function aggregation($name, array $aggregationDefinition, $parentPath = n
99105
*
100106
* @param string $name
101107
* @param array $suggestionDefinition
108+
* @return void
102109
* @api
103110
*/
104111
public function suggestions($name, array $suggestionDefinition);
@@ -109,6 +116,7 @@ public function suggestions($name, array $suggestionDefinition);
109116
* @param string $filterType
110117
* @param mixed $filterOptions
111118
* @param string $clauseType one of must, should, must_not
119+
* @return void
112120
* @throws Exception\QueryBuildingException
113121
* @api
114122
*/
@@ -117,6 +125,7 @@ public function queryFilter($filterType, $filterOptions, $clauseType = 'must');
117125
/**
118126
* @param string $path
119127
* @param string $value
128+
* @return void
120129
*/
121130
public function setValueByPath($path, $value);
122131

@@ -127,6 +136,7 @@ public function setValueByPath($path, $value);
127136
*
128137
* @param string $path
129138
* @param array $data
139+
* @return void
130140
* @throws Exception\QueryBuildingException
131141
*/
132142
public function appendAtPath($path, array $data);
@@ -143,6 +153,7 @@ public function setByPath($path, $requestPart);
143153

144154
/**
145155
* @param array $request
156+
* @return void
146157
*/
147158
public function replaceRequest(array $request);
148159
}

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Driver/RequestDriverInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Flowpack\ElasticSearch\Domain\Model\Index;
1414

1515
/**
16-
* Request Driver Interface
16+
* Elasticsearch Request Driver Interface
1717
*/
1818
interface RequestDriverInterface
1919
{

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Driver/Version1/DocumentDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use TYPO3\TYPO3CR\Domain\Model\NodeType;
2222

2323
/**
24-
* Document Driver for Elastic version 1.x
24+
* Document driver for Elasticsearch version 1.x
2525
*
2626
* @Flow\Scope("singleton")
2727
*/

0 commit comments

Comments
 (0)