Warning
This document is for an old release 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.
galaxy.webapps.tool_shed.search package¶
Submodules¶
galaxy.webapps.tool_shed.search.repo_search module¶
Module for searching the toolshed repositories
-
class
galaxy.webapps.tool_shed.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
galaxy.webapps.tool_shed.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
Returns results: dictionary containing number of hits, hits themselves and matched terms for each
-