Warning
This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
tool_shed.webapp.search package¶
Submodules¶
tool_shed.webapp.search.repo_search module¶
Module for searching the toolshed repositories
-
class
tool_shed.webapp.search.repo_search.
RepoWeighting
(B=0.75, K1=1.2, **kwargs)[source]¶ Bases:
whoosh.scoring.BM25F
Affect the BM25G scoring model through the final method. source: https://groups.google.com/forum/#!msg/whoosh/1AKNbW8R_l8/XySW0OecH6gJ
-
use_final
= True¶
-
-
class
tool_shed.webapp.search.repo_search.
RepoSearch
[source]¶ Bases:
object
-
search
(trans, search_term, page, page_size, boosts)[source]¶ Perform the search on the given search_term
Parameters: - search_term – unicode encoded string with the search term(s)
- boosts – namedtuple containing custom boosts for searchfields, see api/repositories.py
- page_size – integer defining a length of one page
- page – integer with the number of page requested
Returns results: dictionary containing hits themselves and the hits summary
-