-
Notifications
You must be signed in to change notification settings - Fork 203
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 #507 from ezsystems/fix-EZP-21516-search-field-ezs…
…election-multiple Fix EZP-21516: Field criterion: unable to query ezselection using Multiple Choice
- Loading branch information
Showing
17 changed files
with
805 additions
and
49 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
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
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
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
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,50 @@ | ||
<?php | ||
/** | ||
* File containing the Country SearchField class | ||
* | ||
* @copyright Copyright (C) 1999-2013 eZ Systems AS. All rights reserved. | ||
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2 | ||
* @version //autogentag// | ||
*/ | ||
|
||
namespace eZ\Publish\Core\FieldType\Country; | ||
|
||
use eZ\Publish\SPI\Persistence\Content\Field; | ||
use eZ\Publish\SPI\FieldType\Indexable; | ||
use eZ\Publish\SPI\Persistence\Content\Search; | ||
|
||
/** | ||
* Indexable definition for Country field type | ||
*/ | ||
class SearchField implements Indexable | ||
{ | ||
/** | ||
* Get index data for field for search backend | ||
* | ||
* @param Field $field | ||
* | ||
* @return \eZ\Publish\SPI\Persistence\Content\Search\Field[] | ||
*/ | ||
public function getIndexData( Field $field ) | ||
{ | ||
return array( | ||
new Search\Field( | ||
'value', | ||
$field->value->data, | ||
new Search\FieldType\MultipleStringField() | ||
), | ||
); | ||
} | ||
|
||
/** | ||
* Get index field types for search backend | ||
* | ||
* @return \eZ\Publish\SPI\Persistence\Content\Search\FieldType[] | ||
*/ | ||
public function getIndexDefinition() | ||
{ | ||
return array( | ||
'value' => new Search\FieldType\MultipleStringField(), | ||
); | ||
} | ||
} |
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
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
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
Oops, something went wrong.