In many search engines, for a given query, it often shows "related searches". There are two kinds of related searches, one is adjacent search queries, and one is adjacent phrases. Like in Google, for the query "elasticsearch find related searches", we get two kinds of adjacent searches in web search results and image search results:
Any idea how to make Elasticsearch give us such adjacent search queries and phrases for a given query, assuming it is loaded with massive amounr of web crawl data?