Re: Compute TF/IDF across indexes

2014-02-26 Thread Binh Ly
I tried this and indeed it works, so thanks Ivan for the tip! -- 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+unsubscr...@googlegroups.com. To view

Re: Compute TF/IDF across indexes

2014-02-25 Thread Ivan Brusic
I have never tried or looked at the code, but off the top of my head perhaps the DFS query type would work: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-search-type.html#dfs-query-then-fetch Since the DFS query type calculates the TF/IDF values based on the

Re: Compute TF/IDF across indexes

2014-02-25 Thread Luiz Guilherme Pais dos Santos
Hi Ivan, The DFS query then fetch worked very well! Thank you! Cheers, Luiz Guilherme On Tue, Feb 25, 2014 at 5:15 PM, Ivan Brusic i...@brusic.com wrote: I have never tried or looked at the code, but off the top of my head perhaps the DFS query type would work:

Re: Compute TF/IDF across indexes

2014-02-25 Thread Ivan Brusic
Great, I am glad that it worked. I do not use multi-index searches, so I was not sure if it would. Good to know that shards from different indices can be aggregated with DFS queries. -- Ivan On Tue, Feb 25, 2014 at 6:04 PM, Luiz Guilherme Pais dos Santos luizgpsan...@gmail.com wrote: Hi