app/views.py
def request_doc(doc_id):
    """
    Searches elastic index for a document matching a particular ID.
    :param str doc_id: A specific document ID
    :return: results of elastic search matching doc_id
    """
    q = {
        "query": {
            "match": {
                "_id": doc_id
            }
        },
    }
    return es.search(body=q, index=es_index)

    Searches elastic index for a document matching a particular ID.
    :param str doc_id: A specific document ID
    :return: results of elastic search matching doc_id
    
Searches elastic index for a document matching a particular ID.
Searches elastic index for a document matching a particular ID .
def request_doc(doc_id):
    q = {
        "query": {
            "match": {
                "_id": doc_id
            }
        },
    }
    return es.search(body=q, index=es_index)
def request_doc ( doc_id ) : q = { "query" : { "match" : { "_id" : doc_id } } , } return es . search ( body = q , index = es_index )
Searches elastic index for a document matching a particular ID.
Searches elastic index for a document matching a particular ID .
"""
    Searches elastic index for a document matching a particular ID.
    :param str doc_id: A specific document ID
    :return: results of elastic search matching doc_id
    """
results of elastic search matching doc_id
results of elastic search matching doc_id
doc_id
A specific document ID
A specific document ID