Merging multiple queries

I have 3 queries as following
First query gives us the file name of the content we search.

First query
GET all_files/_search?scroll=1m
{
"_source": "file.filename",
"query": {
"match_phrase": {
"content": {
"query": "rape"
}
}
}
}

Based on the file name i need the following fileds from multiple indices which is in second query.

2nd query

GET doc_classification,doc_to_topic_association,doc_with_similar_names/_search?scroll=1m
{
"_source": ["classification_name","file_path","description","category","topic_name","filename_with_location","similar_filename","similar_filename_with_location","similarity_score","duplicate"],
"query": {
"terms": {
"file_name": [
"TSUNE00020181210eeca0005v.docx",
"PHILNA0020190425ef4p000jl.docx"
]
}
}
}

in second query, we got topic name. Based on the topic_name we need keywords from another index as shown in third query

3rd query

GET topic_to_keywords_monash/_search?scroll=1m
{
"query": {
"match_phrase": {
"topic_name": {
"query": "law"
}
}
}
}

I need all the 3 queries as single query, is it possible.
Can anyone help me on this?

It's not sorry to say.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.