[extensions-web] search: Don't both lower-casing search terms
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] search: Don't both lower-casing search terms
- Date: Fri, 23 Mar 2012 11:35:46 +0000 (UTC)
commit bfba17a4451840e1d17d3ef45ec6ed0bb3f72d6f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Mar 23 05:13:52 2012 -0300
search: Don't both lower-casing search terms
It isn't necessary
sweettooth/extensions/search.py | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/sweettooth/extensions/search.py b/sweettooth/extensions/search.py
index 1bc92b0..befbf8a 100644
--- a/sweettooth/extensions/search.py
+++ b/sweettooth/extensions/search.py
@@ -18,13 +18,9 @@ def index_extension(extension):
doc = xapian.Document()
termgen.set_document(doc)
- name = extension.name.lower()
- uuid = extension.uuid.lower()
- description = extension.description.lower()
-
- termgen.index_text(name, 10)
- termgen.index_text(uuid)
- termgen.index_text(description)
+ termgen.index_text(extension.name, 10)
+ termgen.index_text(extension.uuid)
+ termgen.index_text(extension.description)
doc.set_data(str(extension.pk))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]