Author: pb
Date: Sun Feb 15 17:36:24 2009
New Revision: 3581
Log:
- implemented workaround for #013676: Updating Visibility of a node doesn't
change search result
Modified:
ezfind/ezp4/trunk/extension/ezfind/classes/ezfezpsolrquerybuilder.php
ezfind/ezp4/trunk/extension/ezfind/doc/changelogs/2.0/unstable/CHANGELOG-2.0.0alpha1-to-2.0.0beta1
ezfind/ezp4/trunk/extension/ezfind/settings/ezfind.ini
Modified: ezfind/ezp4/trunk/extension/ezfind/classes/ezfezpsolrquerybuilder.php
==============================================================================
--- ezfind/ezp4/trunk/extension/ezfind/classes/ezfezpsolrquerybuilder.php (original)
+++ ezfind/ezp4/trunk/extension/ezfind/classes/ezfezpsolrquerybuilder.php Sun Feb 15 17:36:24 2009
@@ -140,6 +140,22 @@
if ( $policyLimitationFilterQuery !== false )
{
$filterQuery[] = $policyLimitationFilterQuery;
+ }
+
+
+
+ if ( (!eZContentObjectTreeNode::showInvisibleNodes() || !$ignoreVisibility ) &&Ê(self::$FindINI->variable( 'SearchFilters', 'FilterHiddenFromDB' ) == 'enabled') )
+ {
+ $db =& eZDB::instance();
+ $invisibleNodeIDArray = $db->arrayQuery( 'SELECT node_id FROM ezcontentobject_tree WHERE ezcontentobject_tree.is_invisible = 1', array( 'column' => 0) );
+ $hiddenNodesQueryText = 'meta_main_node_id_si:[* TO *] -meta_main_node_id_si:(';
+ foreach ( $invisibleNodeIDArray as $element )
+ {
+ $hiddenNodesQueryText = $hiddenNodesQueryText . $element['node_id'] . ' ';
+ }
+ $hiddenNodesQueryText = $hiddenNodesQueryText . ')';
+ $filterQuery[] = $hiddenNodesQueryText;
+
}
// Add content class query filter
Modified: ezfind/ezp4/trunk/extension/ezfind/doc/changelogs/2.0/unstable/CHANGELOG-2.0.0alpha1-to-2.0.0beta1
==============================================================================
--- ezfind/ezp4/trunk/extension/ezfind/doc/changelogs/2.0/unstable/CHANGELOG-2.0.0alpha1-to-2.0.0beta1 (original)
+++ ezfind/ezp4/trunk/extension/ezfind/doc/changelogs/2.0/unstable/CHANGELOG-2.0.0alpha1-to-2.0.0beta1 Sun Feb 15 17:36:24 2009
@@ -27,3 +27,4 @@
- corrected bug #014472 Typos, in "more like this" filter and facet parameters
- corrected bug #014068: Filter definition must be an array in ezfind fetch, although documentation seems to allow string definition
- fixed bug #014253: problem with limitation (and also added visibility parameter)
+- implemented workaround for bug #013676: Updating Visibility of a node doesn't change search result
Modified: ezfind/ezp4/trunk/extension/ezfind/settings/ezfind.ini
==============================================================================
--- ezfind/ezp4/trunk/extension/ezfind/settings/ezfind.ini (original)
+++ ezfind/ezp4/trunk/extension/ezfind/settings/ezfind.ini Sun Feb 15 17:36:24 2009
@@ -54,6 +54,7 @@
# CustomMap[eztext]=ezfSolrDocumentFieldText
CustomMap[ezobjectrelation]=ezfSolrDocumentFieldObjectRelation
CustomMap[ezobjectrelationlist]=ezfSolrDocumentFieldObjectRelation
+#CustomMap[ezxml]=ezfSolrDocumentFieldXML
# Datatype to field type map.
#
@@ -124,6 +125,10 @@
#Currently support for one filter type, a raw Solr query string
RawFilterList[]
#Example to exclude certain classes
-#RawFilterList[]='meta_class_identifier_string:[* TO *] -meta_class_identifier_string:folder'
+#RawFilterList[]='meta_class_identifier_string:[* TO *] -meta_class_identifier_string:folder
+#Workaround for non indexed hidden nodes
+#Needed for eZP 4.0 and 4.1 without the cronobs enabled
+#Set to enabled if this is the case
+FilterHiddenFromDB=disabled
_______________________________________________
svn-eZFind mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-ezfind