Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #569 from ezsystems/fix-EZP-21719-depth-criterion
Implement EZP-21719: Implement LocationDepth search criterion
- Loading branch information
Showing
13 changed files
with
919 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
eZ/Publish/API/Repository/Tests/_fixtures/Legacy/Depth.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?php | ||
|
||
return eZ\Publish\API\Repository\Values\Content\Search\SearchResult::__set_state( | ||
array( | ||
'facets' => array(), | ||
'searchHits' => array( | ||
0 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 4, | ||
'title' => 'Users', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
1 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 41, | ||
'title' => 'Media', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
2 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 45, | ||
'title' => 'Setup', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
3 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 56, | ||
'title' => 'Design', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
4 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 57, | ||
'title' => 'Home', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
), | ||
'spellSuggestion' => NULL, | ||
'time' => 1, | ||
'timedOut' => NULL, | ||
'maxScore' => NULL, | ||
'totalCount' => 5, | ||
) | ||
); |
36 changes: 36 additions & 0 deletions
36
eZ/Publish/API/Repository/Tests/_fixtures/Legacy/DepthGt.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
return eZ\Publish\API\Repository\Values\Content\Search\SearchResult::__set_state( | ||
array( | ||
'facets' => array(), | ||
'searchHits' => array( | ||
0 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 10, | ||
'title' => 'Anonymous User', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
1 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 14, | ||
'title' => 'Administrator User', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
), | ||
'spellSuggestion' => NULL, | ||
'time' => 1, | ||
'timedOut' => NULL, | ||
'maxScore' => NULL, | ||
'totalCount' => 2, | ||
) | ||
); |
157 changes: 157 additions & 0 deletions
157
eZ/Publish/API/Repository/Tests/_fixtures/Legacy/DepthGte.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
<?php | ||
|
||
return eZ\Publish\API\Repository\Values\Content\Search\SearchResult::__set_state( | ||
array( | ||
'facets' => array(), | ||
'searchHits' => array( | ||
0 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 10, | ||
'title' => 'Anonymous User', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
1 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 11, | ||
'title' => 'Members', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
2 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 12, | ||
'title' => 'Administrator users', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
3 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 13, | ||
'title' => 'Editors', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
4 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 14, | ||
'title' => 'Administrator User', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
5 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 42, | ||
'title' => 'Anonymous Users', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
6 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 49, | ||
'title' => 'Images', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
7 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 50, | ||
'title' => 'Files', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
8 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 51, | ||
'title' => 'Multimedia', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
9 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 52, | ||
'title' => 'Common INI settings', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
10 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 54, | ||
'title' => 'eZ Publish Demo Design (without demo content)', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
11 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 58, | ||
'title' => 'Contact Us', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
12 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 59, | ||
'title' => 'Partners', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
), | ||
'spellSuggestion' => NULL, | ||
'time' => 1, | ||
'timedOut' => NULL, | ||
'maxScore' => NULL, | ||
'totalCount' => 13, | ||
) | ||
); |
Oops, something went wrong.