Search Time Query Expansion

I want to implement a classic query expansion (Rocchio method for example) for
ElasticSearch.

Basically what I need to do is to retrieve the term vectors of the top N
relevant documents given an original query, extract a list of terms based
on some criteria, and finally get enriched document results with a expanded
query. Surely I can do that by searching twice, but is there any better
solution that I can do it IN the ElasticSearch? Do you have any
suggestions about where and how I can implement it?

Thanks!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4f202647-5a2c-4be8-a731-f485589ef7ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.