Skip to content

Instantly share code, notes, and snippets.

@phanngoc
Created September 12, 2018 03:56
Show Gist options
  • Save phanngoc/244e66ea381526e41205b65d2dbdaaac to your computer and use it in GitHub Desktop.
Save phanngoc/244e66ea381526e41205b65d2dbdaaac to your computer and use it in GitHub Desktop.
{
"bool" : {
"must" : [
{
"bool" : {
"must" : [
{
"has_child" : {
"query" : {
"bool" : {
"must" : [
{
"query_string" : {
"query" : "\\*不要でできる\\*",
"fields" : [
"message^1.0",
"name^1.0"
],
"use_dis_max" : true,
"tie_breaker" : 0.0,
"default_operator" : "or",
"auto_generate_phrase_queries" : false,
"max_determinized_states" : 10000,
"enable_position_increments" : true,
"fuzziness" : "AUTO",
"fuzzy_prefix_length" : 0,
"fuzzy_max_expansions" : 50,
"phrase_slop" : 0,
"escape" : false,
"split_on_whitespace" : true,
"boost" : 1.0
}
}
],
"filter" : [
{
"term" : {
"stage" : {
"value" : "operator",
"boost" : 1.0
}
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
},
"type" : "message_search",
"score_mode" : "max",
"min_children" : 0,
"max_children" : 2147483647,
"ignore_unmapped" : false,
"boost" : 1.0
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
}
],
"filter" : [
{
"match_all" : {
"boost" : 1.0
}
}
],
"must_not" : [
{
"term" : {
"created_at" : {
"value" : -30610249600,
"boost" : 1.0
}
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"minimum_should_match" : "1.0",
"boost" : 1.0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment