tracker r2265 - in branches/indexer-split: . src/tracker-indexer



Author: ifrade
Date: Thu Sep 25 15:23:29 2008
New Revision: 2265
URL: http://svn.gnome.org/viewvc/tracker?rev=2265&view=rev

Log:
The words added to the index must have positive score

Modified:
   branches/indexer-split/ChangeLog
   branches/indexer-split/src/tracker-indexer/tracker-indexer.c

Modified: branches/indexer-split/src/tracker-indexer/tracker-indexer.c
==============================================================================
--- branches/indexer-split/src/tracker-indexer/tracker-indexer.c	(original)
+++ branches/indexer-split/src/tracker-indexer/tracker-indexer.c	Thu Sep 25 15:23:29 2008
@@ -910,9 +910,9 @@
 	}
 
 	if (data->add) {
-		score = -1 * tracker_field_get_weight (field);
-	} else {
 		score = tracker_field_get_weight (field);
+	} else {
+		score = -1 * tracker_field_get_weight (field);
 	}
 
 	arr = g_strsplit (parsed_value, " ", -1);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]