4.1.1.1.1.1.1.5. datanator.api.lib.search package¶
4.1.1.1.1.1.1.5.1. Submodules¶
4.1.1.1.1.1.1.5.2. datanator.api.lib.search.manager module¶
Search manager for full text searching
Author: | Saahith Pochiraju <saahith116@gmail.com> |
---|---|
Date: | 2018-08-08 |
Copyright: | 2018, Karr Lab |
License: | MIT |
-
class
datanator.api.lib.search.manager.
SearchManager
(cache_dirname='/root/.wc/data/datanator')[source]¶ Bases:
datanator.api.lib.data_manager.BaseManager
Represents a text search through the database grabbing relevant information
-
search
(string)[source]¶ Collects and creates dictionary of all Database objects coming up in a full text search for related string
Parameters: ( (string) – obj :str): item to be searched for Returns: List of ranked collected items from text search dict_db_models ( dict
): Dictionary of collected items from text searchReturn type: list_db_models ( list
)
-