Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
4.6.0
-
None
-
Operating System:
PHP Version: PHP 5.3.3-7
Description
Hi,
ezpulish 4.5 solr 3.1,
Im using an objectrelationlist attribute as a facette and its works just fine,
after a weeks, my client notice that some objects are not showing any more in facette field,
after diggin I realized that the node id of my objects are not indexed in the solr field "submeta_offers___main_node_id_si" used for facetting.
and thats because the folowing code in getData functin return false
$subObjectID = $relationItem['contentobject_id']; if ( !$subObjectID ) continue; $subObject = eZContentObjectVersion::fetchVersion( $relationItem['contentobject_version'], $subObjectID ); if ( !$subObject || $relationItem['in_trash'] ) continue;
note that $relationItem['contentobject_version'] return an old value "15" and my object s version are betwin [21 and 31]
I hope some one can help
Steps to reproduce
-Create class "Article" that contains an objectrelation list attribute identifed by offers
-Create class "offer"
-relay an article withe an offer called "Promotion",
-make an ezfind search for your article => the id of the offer will be indexed in submeta_offers___main_node_id_si
-edit and republish the offer more than 10 times (or DefaultVersionHistoryLimit value).
-clean your indexes and re-index all your contents
-make an ezfind search for your article => the id of the offer will NOT be indexed in submeta_offers___main_node_id_si