Document Matching between TWO Indexes


I started working on elasticsearch recently.

I have been working on fuzzy search for matching selected fields of a document in one index (say index1) with the corresponding fields in all documents in another index(say index2).

Is there any way I can search all the documents of index1 one by one and export all the corresponding matches found for each document of index1 in index2 ?

Below is the schema

I already have the query for matching

I would like to know if there is any way we can write a loop to take all the documents to be searched and export the matching results for each document


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