Comment 1 for bug 860362

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

For reference this is the diff. I am not gonna apply it as is, as it'll require a reindex in order to take effect:

=== modified file 'fts/fts.py'
--- fts/fts.py 2011-09-07 08:42:40 +0000
+++ fts/fts.py 2011-09-27 08:15:08 +0000
@@ -607,7 +607,7 @@
   # usually web URIs, are indexed in another way because there may
   # be domain name etc. in there we want to rank differently
   scheme, host, path = self._split_uri (url_unescape (uri))
- if scheme == "file://" or not scheme:
+ if scheme == "file" or not scheme:
    path, name = os.path.split(path)
    self._tokenizer.index_text(name, 5)
    self._tokenizer.index_text(name, 5, "N")
@@ -619,7 +619,7 @@
     path, name = os.path.split(path)
     self._tokenizer.index_text(name, weight)

- elif scheme == "mailto:":
+ elif scheme == "mailto":
    tokens = host.split("@")
    name = tokens[0]
    self._tokenizer.index_text(name, 6)