[tracker] libtracker-fts: Prefix searches must ignore stop words



commit 54ca0e78b8a35318b6e0dd8edca8922d4a85f7af
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue Mar 9 12:23:49 2010 +0100

    libtracker-fts: Prefix searches must ignore stop words

 src/libtracker-fts/tracker-fts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-fts/tracker-fts.c b/src/libtracker-fts/tracker-fts.c
index b80f102..23e9e5d 100644
--- a/src/libtracker-fts/tracker-fts.c
+++ b/src/libtracker-fts/tracker-fts.c
@@ -4402,7 +4402,7 @@ static int tokenizeSegment(
       continue;
     }
 
-    if (stop_word != 0) {
+    if (stop_word != 0 && !(iEnd<nSegment && pSegment[iEnd]=='*')) {
 	continue;
     }
 



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