Store users' search queries within index and search against those queries

I have an index containing the type with blog posts.
I want to have another type within this index with two fields:

user id and the user's search query

After every blog posts type insert I want to execute a search
that will find all users' ids whose search queries match the inserted
blog post.

Currently I'm doing this within my RDBMS with a bunch of joins.
I'm converting full text searches to Elastic and do not understand
how to

  1. store these users' queris
  2. how to execute such a query

I guess this is a common pattern. I just don't feel Elastic enough not to
ask for help here.

Thanks!

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