:py:mod:`api.solr_utils` ======================== .. py:module:: api.solr_utils Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: api.solr_utils._cache_solr_collection_schema_types api.solr_utils.collections_available api.solr_utils._process_result_repsonse api.solr_utils.search_collection api.solr_utils.import_all_concepts api.solr_utils.drop_collection api.solr_utils.ensure_concept_searchable api.solr_utils._upload_payload api.solr_utils._concept_dct api.solr_utils._solr_error_response Attributes ~~~~~~~~~~ .. autoapisummary:: api.solr_utils.SOLR_INDEX_SCHEMA api.solr_utils.logger .. py:data:: SOLR_INDEX_SCHEMA .. py:data:: logger .. py:function:: _cache_solr_collection_schema_types(collection) .. py:function:: collections_available(cdbs) .. py:function:: _process_result_repsonse(resp) .. py:function:: search_collection(cdbs, raw_query) .. py:function:: import_all_concepts(cdb, cdb_model) .. py:function:: drop_collection(cdb_model) .. py:function:: ensure_concept_searchable(cui, cdb, cdb_model) Adds a single cui and associated metadata is available in the associated solr search index. Args: cui: concept unique identifier of the concept to make searchable cdb: the MedCAT CDB where the cui can be found cdb_model: the associated Django model instance for the CDB. .. py:function:: _upload_payload(update_url, data, collection, commit=False) .. py:function:: _concept_dct(cui, cdb, info) .. py:function:: _solr_error_response(resp, error_msg)