Switch to unified view
a/Allura/allura/controllers/search.py | b/Allura/allura/controllers/search.py | ||
---|---|---|---|
... |
... |
||
26 | if not q: |
26 | if not q: |
27 | q = '' |
27 | q = '' |
28 | else: |
28 | else: |
29 | results = search.search( |
29 | results = search.search( |
30 | q, |
30 | q, |
31 | fq='is_history_b:%s' % history)
|
31 | fq='is_history_b:%s' % history,
|
32 | short_timeout=True) |
||
32 | if results: count=results.hits |
33 | if results: count=results.hits |
33 | return dict(q=q, history=history, results=results or [], count=count) |
34 | return dict(q=q, history=history, results=results or [], count=count) |
34 | 35 | ||
35 | 36 | ||
36 | class ProjectBrowseController(BaseController): |
37 | class ProjectBrowseController(BaseController): |