Author: enrico
Date: 2007-06-20 14:55:05 +0000 (Wed, 20 Jun 2007)
New Revision: 3022

Modified:
   software/ui/src/Engine.cpp
Log:
Give good initial results

Modified: software/ui/src/Engine.cpp
===================================================================
--- software/ui/src/Engine.cpp  2007-06-20 14:26:51 UTC (rev 3021)
+++ software/ui/src/Engine.cpp  2007-06-20 14:55:05 UTC (rev 3022)
@@ -20,6 +20,8 @@
 
 #include "Engine.h"
 
+#include <iostream>
+
 using namespace std;
 using namespace ept::apt;
 using namespace ept::debtags;
@@ -131,6 +133,8 @@
        // We always want programs, so always AND it here
        enquire.set_query(makeQuery());
 
+       //cerr << "QUERY: " << enquire.get_query().get_description() << endl;
+
        // Get the 100 top matches
        Xapian::MSet matches = enquire.get_mset(0, 100);
        for (Xapian::MSetIterator i = matches.begin(); i != matches.end(); ++i)
@@ -142,8 +146,8 @@
                // Stop producing if the quality goes below a cutoff point
                // FIXME: hardcoded value, but I can't see a reason to make it
                // configurable yet
-               if (i.get_percent() < 40)
-                       break;
+               //if (i.get_percent() < 40)
+                       //break;
 
                // Finally filter by installed state if requested
                if (m_filter_state != ANY)


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to