def get_documents_by_ids(es_client, app, ids):
    """Get given search app documents by supplied ids."""
    return es_client.mget(
        index=app.es_model.get_read_alias(),
        doc_type=app.name,
        body={
            'ids': ids,
        },
    )