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)
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' _tokenizer. index_text( name, 5) _tokenizer. index_text( name, 5, "N") _tokenizer. index_text( name, weight)
--- 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.
self.
@@ -619,7 +619,7 @@
path, name = os.path.split(path)
self.
- elif scheme == "mailto:": _tokenizer. index_text( name, 6)
+ elif scheme == "mailto":
tokens = host.split("@")
name = tokens[0]
self.