changeset 436:ae3ae7e9e14d

lupy: fixed strange search results by allowing high number of ignored chars after a match imported from: moin--main--1.5--patch-440
author Thomas Waldmann <tw@waldmann-edv.de>
date Sun, 12 Feb 2006 12:15:01 +0000
parents 368e6a8e4f98
children f96c2c8d7c91
files ChangeLog MoinMoin/search.py
diffstat 2 files changed, 16 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Feb 12 12:06:05 2006 +0000
+++ b/ChangeLog	Sun Feb 12 12:15:01 2006 +0000
@@ -2,6 +2,20 @@
 # arch-tag: automatic-ChangeLog--arch@arch.thinkmo.de--2003-archives/moin--main--1.5
 #
 
+2006-02-12 13:15:01 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-440
+
+    Summary:
+      lupy: fixed strange search results by allowing high number of ignored chars after a match
+    Revision:
+      moin--main--1.5--patch-440
+
+    lupy: fixed strange search results by allowing high number of ignored chars after a match
+    
+
+    modified files:
+     ChangeLog MoinMoin/search.py
+
+
 2006-02-12 13:06:05 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-439
 
     Summary:
--- a/MoinMoin/search.py	Sun Feb 12 12:06:05 2006 +0000
+++ b/MoinMoin/search.py	Sun Feb 12 12:15:01 2006 +0000
@@ -343,8 +343,8 @@
                 pattern = pattern[1:]
             term = RegularExpressionQuery(Term("title", pattern))
         else:
-            term = PrefixQuery(Term("title", pattern), 3)
-        #term.boost = 100.0
+            term = PrefixQuery(Term("title", pattern), 1000000) # number of chars which are ignored behind the match
+            #term.boost = 100.0
         return term