Hi,
I am using Elasticsearch for searching. I want to search the keywords based on dates such that any date has maximum 2 results. That is, out of default 10 results, maximum search maximum corresponding to a date are 2.
Hi,
I am using Elasticsearch for searching. I want to search the keywords based on dates such that any date has maximum 2 results. That is, out of default 10 results, maximum search maximum corresponding to a date are 2.
Which 2 out of the 10?
So, I have done this using aggregation. But it takes extra time. Example : I have date field stored in ES. I want to search donald trump. So I want that out of the default 10 results that I get, max 2 results belongs to 10-Jan-2017, although their relevance score are higher than other returned result. I have done this using aggregation, but since its does sorting and all, it takes more time.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.