Ranking by Profit and Popularity in Elasticsearch

Moved to Elastic&rsquo;s blog - https://www.elastic.co/search-labs/blog/function-score-query-boosting-profit-popularity-elasticsearch