Created
June 15, 2020 06:16
-
-
Save vivekpadia70/05f4b8847d361e7e14f5542445d47c17 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body = {"query":{"bool":{"must":[{"match_all":{}}],"filter":[{"range":{"SentimentScore.Positive":{"gt": positiveSentiment}}}]}}, "sort":{"SentimentScore.Positive": {"order":"desc"}}} | |
result = es.search(index="quotes", body=body) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment