[pLog-svn] r6471 - plog/branches/lifetype-1.2/class/dao

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sat May 24 15:11:37 EDT 2008


Author: jondaley
Date: 2008-05-24 15:11:37 -0400 (Sat, 24 May 2008)
New Revision: 6471

Modified:
   plog/branches/lifetype-1.2/class/dao/searchengine.class.php
Log:
noted that the searchengine doesn't only search published articles when in non full text mode.  I think this only affects getNumItems.  Came across this bug when searching for one article, but had another draft article that also matched.  The search engine doesn't jump to the one published article immediately, since it thinks there are two articles.  The draft article isn't shown, but the count returns 2, so just kind of strange

Modified: plog/branches/lifetype-1.2/class/dao/searchengine.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/searchengine.class.php	2008-05-24 19:09:51 UTC (rev 6470)
+++ plog/branches/lifetype-1.2/class/dao/searchengine.class.php	2008-05-24 19:11:37 UTC (rev 6471)
@@ -180,9 +180,11 @@
 				}
 			}
 			else {
-				// alternative, slower path
+                    // TODO: use $conds?  It currently ignores status, etc.
+                
+                    // alternative, slower path
 				$query = $this->getArticleSearchConditions( $searchTerms );
-								
+
 				$total = $this->getNumItems( "{$prefix}articles a", $query, "a.id" );				
 			}
 			



More information about the pLog-svn mailing list