-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EZP-27101: Remove recursion when retrieving search metadata for relat…
…ion fields (#1372) * Fix EZP-27101: Remove recursion when retrieving search metadata * fixup! Fix EZP-27101: Remove recursion when retrieving search metadata * fixup! Fix EZP-27101: Remove recursion when retrieving search metadata
- Loading branch information
1 parent
69c2f36
commit 3539b9c
Showing
5 changed files
with
63 additions
and
30 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,15 @@ | ||
# Relation search indexing changes | ||
|
||
For the 2018.06 release, eZ Publish changed the way relations are indexed. Previously the relation metadata was loaded recursively, meaning that relations of relations etc. were also included. This behavior was changed to only include Objects one level deep so only direct relations are taken into account. | ||
|
||
The change was done to avoid various recursion problems when relations are circular. Also, the new behavior allows for better (more relevant) search results. | ||
|
||
The affected kernel Datatypes are eZObjectRelationType and eZObjectRelationListType. | ||
|
||
If you have your custom Datatype that stores relations to other Objects, you can make it behave similarly. Just add the following to your Datatype class: | ||
```php | ||
public function isRelationType() | ||
{ | ||
return true; | ||
} | ||
``` |
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