inspirehep.modules.search package¶
Submodules¶
inspirehep.modules.search.api module¶
-
class
inspirehep.modules.search.api.
AuthorsSearch
(**kwargs)[source]¶ Bases:
invenio_search.api.RecordsSearch
,inspirehep.modules.search.api.SearchMixin
Elasticsearch-dsl specialized class to search in Authors database.
-
class
inspirehep.modules.search.api.
ConferencesSearch
(**kwargs)[source]¶ Bases:
invenio_search.api.RecordsSearch
,inspirehep.modules.search.api.SearchMixin
Elasticsearch-dsl specialized class to search in Conferences database.
-
class
inspirehep.modules.search.api.
DataSearch
(**kwargs)[source]¶ Bases:
invenio_search.api.RecordsSearch
,inspirehep.modules.search.api.SearchMixin
Elasticsearch-dsl specialized class to search in Data database.
-
class
inspirehep.modules.search.api.
ExperimentsSearch
(**kwargs)[source]¶ Bases:
invenio_search.api.RecordsSearch
,inspirehep.modules.search.api.SearchMixin
Elasticsearch-dsl specialized class to search in Experiments database.
-
class
inspirehep.modules.search.api.
InstitutionsSearch
(**kwargs)[source]¶ Bases:
invenio_search.api.RecordsSearch
,inspirehep.modules.search.api.SearchMixin
Elasticsearch-dsl specialized class to search in Institutions database.
-
class
inspirehep.modules.search.api.
JobsSearch
(**kwargs)[source]¶ Bases:
invenio_search.api.RecordsSearch
,inspirehep.modules.search.api.SearchMixin
Elasticsearch-dsl specialized class to search in Jobs database.
-
class
inspirehep.modules.search.api.
JournalsSearch
(**kwargs)[source]¶ Bases:
invenio_search.api.RecordsSearch
,inspirehep.modules.search.api.SearchMixin
Elasticsearch-dsl specialized class to search in Journals database.
-
class
inspirehep.modules.search.api.
LiteratureSearch
(**kwargs)[source]¶ Bases:
invenio_search.api.RecordsSearch
,inspirehep.modules.search.api.SearchMixin
Elasticsearch-dsl specialized class to search in Literature database.
-
class
inspirehep.modules.search.api.
SearchMixin
[source]¶ Bases:
object
Mixin that adds helper functions to ElasticSearch DSL classes.
-
get_source
(uuid, **kwargs)[source]¶ Get source from a given uuid.
This function mimics the behaviour from the low level ES library get_source function.
Parameters: uuid (UUID) – uuid of document to be retrieved. Returns: dict
-
inspirehep.modules.search.bundles module¶
UI for Invenio-Search.
inspirehep.modules.search.ext module¶
Search extension.
inspirehep.modules.search.facets module¶
inspirehep.modules.search.query_factory module¶
INSPIRE Query class to wrap the Q object from elasticsearch-dsl.
inspirehep.modules.search.search_factory module¶
INSPIRE search factory used in invenio-records-rest.
-
inspirehep.modules.search.search_factory.
inspire_facets_factory
(self, search)[source]¶ Parse query using Inspire-Query-Parser and prepare facets for it :param self: REST view. :param search: Elastic search DSL search instance.
Returns: Tuple with search instance and URL arguments.
-
inspirehep.modules.search.search_factory.
inspire_filter_factory
(search, urlkwargs, search_index)[source]¶ Copies behaviour of default facets factory but without the aggregations, As facets factory is also responsible for filtering the year and author (invenio mess) :param search: Elastic search DSL search instance. :param urlkwargs: :param search_index: index name
Returns: tuple with search and urlarguments
inspirehep.modules.search.utils module¶
inspirehep.modules.search.views module¶
Search blueprint in order for template and static files to be loaded.
-
inspirehep.modules.search.views.
default_sortoption
(sort_options)[source]¶ Get defualt sort option for Invenio-Search-JS.
-
inspirehep.modules.search.views.
format_sortoptions
(sort_options)[source]¶ Create sort options JSON dump for Invenio-Search-JS.
Module contents¶
Search module.