Skip to content

Commit

Permalink
Merge pull request #1051 from ezsystems/impl-EZP-23396-elasticsearch-…
Browse files Browse the repository at this point in the history
…fulltext

Implement EZP-23396: Elasticsearch: Implement Fulltext criterion for Content search
  • Loading branch information
pspanja committed Oct 24, 2014
2 parents 69bbdb7 + eeb54f2 commit 1c2d3d7
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Repository/Tests/_fixtures/Elasticsearch/FullText.php
@@ -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 Repository/Tests/_fixtures/Elasticsearch/FullTextFiltered.php
@@ -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 Repository/Tests/_fixtures/Elasticsearch/FullTextWildcard.php
@@ -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,
));

0 comments on commit 1c2d3d7

Please sign in to comment.