forked from ezsystems/ezpublish-api
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 #1051 from ezsystems/impl-EZP-23396-elasticsearch-…
…fulltext Implement EZP-23396: Elasticsearch: Implement Fulltext criterion for Content search
- Loading branch information
Showing
3 changed files
with
92 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?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' => 54, | ||
'title' => 'eZ Publish Demo Design (without demo content)', | ||
), | ||
'score' => 0.49063533999999998, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
)), | ||
1 => | ||
eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state(array( | ||
'valueObject' => | ||
array ( | ||
'id' => 58, | ||
'title' => 'Contact Us', | ||
), | ||
'score' => 1.0769257999999999, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
)), | ||
), | ||
'spellSuggestion' => NULL, | ||
'time' => 1, | ||
'timedOut' => NULL, | ||
'maxScore' => 1.0769257999999999, | ||
'totalCount' => 2, | ||
)); | ||
|
27 changes: 27 additions & 0 deletions
27
Repository/Tests/_fixtures/Elasticsearch/FullTextFiltered.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,27 @@ | ||
<?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' => 58, | ||
'title' => 'Contact Us', | ||
), | ||
'score' => 1.0769257999999999, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
)), | ||
), | ||
'spellSuggestion' => NULL, | ||
'time' => 1, | ||
'timedOut' => NULL, | ||
'maxScore' => 1.0769257999999999, | ||
'totalCount' => 1, | ||
)); | ||
|
27 changes: 27 additions & 0 deletions
27
Repository/Tests/_fixtures/Elasticsearch/FullTextWildcard.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,27 @@ | ||
<?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' => 58, | ||
'title' => 'Contact Us', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
)), | ||
), | ||
'spellSuggestion' => NULL, | ||
'time' => 1, | ||
'timedOut' => NULL, | ||
'maxScore' => 1, | ||
'totalCount' => 1, | ||
)); | ||
|