All the products having isPromoted should come at the top.
After that, we need to rank them on the basis of sum of clickCount and bookingCount
We need to take care of word matching too in this ranking. (Like for a search pro ), the product named pro should come first(because it matches fully), but should come after promoted products.
Will be really helpful, if someone can help me to formulate query
Can you please tell me how to do that?
I am not able to formulate query
I formulated this but couldn't include keyword search and its not working properly.
What did you try so far? What did not work for you?
Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
A full reproduction script is something anyone can copy and paste in Kibana dev console, click on the run button to reproduce your use case. It will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.
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.