zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #04159
[Bug 860362] Re: FTS doesn't index paths correctly
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)
** Changed in: zeitgeist-extensions
Importance: Undecided => High
** Changed in: zeitgeist-extensions
Status: New => Triaged
--
You received this bug notification because you are a member of Zeitgeist
Extensions, which is the registrant for Zeitgeist Extensions.
https://bugs.launchpad.net/bugs/860362
Title:
FTS doesn't index paths correctly
Status in Zeitgeist Extensions:
Triaged
Bug description:
There's a bug in scheme branching in fts (~line 610) which cause
file:// uris to truncate and index the same way as http and other
uris.
To manage notifications about this bug go to:
https://bugs.launchpad.net/zeitgeist-extensions/+bug/860362/+subscriptions
References