However, this only gives me the last two samples from either type1 or type
2. If the last two samples both belong to type1, the combined query only
returns two type1 samples, which is different from the two separate GET
queries.
Can any one give me some hints how to get this done? I appreciate your
help!
However, this only gives me the last two samples from either type1 or type 2. If the last two samples both belong to type1, the combined query only returns two type1 samples, which is different from the two separate GET queries.
Can any one give me some hints how to get this done? I appreciate your help!
Thanks a lot for your prompt help. I got both approaches working, which is
very exciting. I prefer the top_hits aggregation approach. The msearch
approach is not accepting normal JSON payloads, which makes things a bit
harder for processing in Javascript.
My query payload is shown below. Works like a champ!
Jingzhao Ou, do you state that you successfully combined msearch with the
query containing aggregations (like in your example)? How should the query
be constructed then to prevent "msearch approach is not accepting normal
JSON payloads"? Could you please post a working msearch API call example?
Thanks,
Roman
субота, 20 вересня 2014 р. 02:51:17 UTC+3 користувач Jingzhao Ou написав:
Hi, David,
Thanks a lot for your prompt help. I got both approaches working, which is
very exciting. I prefer the top_hits aggregation approach. The msearch
approach is not accepting normal JSON payloads, which makes things a bit
harder for processing in Javascript.
My query payload is shown below. Works like a champ!
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.