Author: jablko
Date: Thu Aug 27 13:35:27 2009
New Revision: 3094
Log:
Use boolean query to combine term query with query parameter
Modified:
trunk/apps/qubit/modules/actor/actions/listAction.class.php
trunk/apps/qubit/modules/repository/actions/listAction.class.php
Modified: trunk/apps/qubit/modules/actor/actions/listAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/actor/actions/listAction.class.php Thu Aug 27
13:11:40 2009 (r3093)
+++ trunk/apps/qubit/modules/actor/actions/listAction.class.php Thu Aug 27
13:35:27 2009 (r3094)
@@ -71,7 +71,7 @@
if (isset($request->query))
{
- $query = $request->query;
+ $query = new Zend_Search_Lucene_Search_Query_Boolean(array($query,
Zend_Search_Lucene_Search_QueryParser::parse($request->query)));
}
$this->pager = new
QubitSearchPager($search->getEngine()->getIndex()->find($query),
$request->page);
Modified: trunk/apps/qubit/modules/repository/actions/listAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/repository/actions/listAction.class.php Thu Aug
27 13:11:40 2009 (r3093)
+++ trunk/apps/qubit/modules/repository/actions/listAction.class.php Thu Aug
27 13:35:27 2009 (r3094)
@@ -32,7 +32,7 @@
if (isset($request->query))
{
- $query = $request->query;
+ $query = new Zend_Search_Lucene_Search_Query_Boolean(array($query,
Zend_Search_Lucene_Search_QueryParser::parse($request->query)));
}
$this->pager = new
QubitSearchPager($search->getEngine()->getIndex()->find($query),
$request->page);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---