Created
February 14, 2017 08:41
-
-
Save anonymous/755c511bcf905d2f85840f01938919ee to your computer and use it in GitHub Desktop.
Multi match with cut-off=0.00025
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
curl -XPOST 'localhost:9200/search_cluster/_search?pretty' -d' | |
{"explain": "true", "query" : { | |
"function_score" : { | |
"query" : { | |
"multi_match" : { | |
"query" : " Donald Clinton Wiseman Nelson", | |
"fields" : [ "title", "url", "content^3" ], | |
"cutoff_frequency" : 0.00025, | |
"minimum_should_match": "75%", | |
"operator": "AND" | |
} | |
}, | |
"functions" : [ { | |
"exp" : { | |
"pubDate" : { | |
"scale" : "8.75h", | |
"decay" : 0.7 | |
} | |
} | |
} ], | |
"score_mode" : "multiply" | |
}}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment