Contextual Search with History Documents


Hello ES-People!

I'm quite new in ES and want to develop a contexutal search. It means that I want also introduce history datas in the search result.
Use Case:
On the one database, I have my Content with documents from creditors, debtors, accounts, cost areas and so on.
On the other database I have my History with documents how often the (for example) creditor, debtors.. feature was already clicked.
I don't want to save the history in the content documents, because I have always to update all (for example) creditor, when one of more thousands creditors is clicked.
Therefore I want to join two documents (query to documents) and get a common score for these two documents.

Is there a way in ES to solve this?

Best regards,

(system) #2