Show More
@@ -40,6 +40,7 b' from whoosh.index import open_dir, Empty' | |||||
40 | from whoosh.qparser import QueryParser, QueryParserError |
|
40 | from whoosh.qparser import QueryParser, QueryParserError | |
41 | from whoosh.query import Phrase, Wildcard, Term, Prefix |
|
41 | from whoosh.query import Phrase, Wildcard, Term, Prefix | |
42 | from rhodecode.model.repo import RepoModel |
|
42 | from rhodecode.model.repo import RepoModel | |
|
43 | from rhodecode.lib.utils2 import safe_str | |||
43 |
|
44 | |||
44 | log = logging.getLogger(__name__) |
|
45 | log = logging.getLogger(__name__) | |
45 |
|
46 | |||
@@ -116,7 +117,7 b' class SearchController(BaseController):' | |||||
116 |
|
117 | |||
117 | def url_generator(**kw): |
|
118 | def url_generator(**kw): | |
118 | return update_params("?q=%s&type=%s" \ |
|
119 | return update_params("?q=%s&type=%s" \ | |
119 |
|
|
120 | % (safe_str(c.cur_query), safe_str(c.cur_type)), **kw) | |
120 | repo_location = RepoModel().repos_path |
|
121 | repo_location = RepoModel().repos_path | |
121 | c.formated_results = Page( |
|
122 | c.formated_results = Page( | |
122 | WhooshResultWrapper(search_type, searcher, matcher, |
|
123 | WhooshResultWrapper(search_type, searcher, matcher, |
General Comments 0
You need to be logged in to leave comments.
Login now