I would like to be able to execute a search request across multiple indexes
defined at runtime.
As such, instead of "myIndex_one" and "myIndex_two" I would like to have a
list of indexes
<"myIndex_1",..."myIndex_n"> defined at runtime and then just call
List myIndexes = new ArrayList("myIndex1","myIndex2","myIndex8");
client.prepareSearch(myIndexes).setQuery(query).execute().get();
But right now the ES JAVA Client doesn't have an overloaded prepareSearch
method like:
I would like to be able to execute a search request across multiple
indexes defined at runtime.
As such, instead of "myIndex_one" and "myIndex_two" I would like to have a
list of indexes
<"myIndex_1",..."myIndex_n"> defined at runtime and then just call
List myIndexes = new ArrayList("myIndex1","myIndex2","myIndex8");
client.prepareSearch(myIndexes).setQuery(query).execute().get();
But right now the ES JAVA Client doesn't have an overloaded prepareSearch
method like:
I would like to be able to execute a search request across multiple
indexes defined at runtime.
As such, instead of "myIndex_one" and "myIndex_two" I would like to have
a list of indexes
<"myIndex_1",..."myIndex_n"> defined at runtime and then just call
List myIndexes = new ArrayList("myIndex1","myIndex2","myIndex8");
client.prepareSearch(myIndexes).setQuery(query).execute().get();
But right now the ES JAVA Client doesn't have an overloaded prepareSearch
method like:
Question:
Is there any workaround for this? Or maybe I'm missing some method
somewhere that might offer the same functionality?
Thanks
Paul.
--
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 elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.