{ "query" : { "bool" : { "must" : { "bool" : { "should" : [ { "wildcard" : { "name": "*белицаdertime*" } }, { "wildcard" : { "name": "*белицаdertime*" } }, { "match": { "title": { "query": "белицаdertime", "operator": "and", "boost": 2, "fuzziness": "AUTO" } } }, { "match": { "channel_name": { "query": "белицаdertime", "operator": "and", "boost": 25, "fuzziness": 0 } } }, { "match": { "name": { "query": "белицаdertime", "operator": "and", "boost": 1 } } }, { "match": { "virc": { "query": "belicadertime", "operator": "and", "boost": 2, "fuzziness": "AUTO" } } }, { "match": { "tags": { "query": "белицаdertime", "operator": "and", "boost": 2 } } }, { "wildcard" : { "user.name" : { "value" : "белицаdertime*", "boost" : 5 } } }, { "wildcard" : { "user.channel_name" : { "value" : "белицаdertime*", "boost" : 5 } } }, { "match": { "user.channel_name": { "query": "белицаdertime", "operator": "and", "boost": 5 } } }, { "match": { "body": { "query": "белицаdertime", "operator": "and", "boost": 0.5 } } } ] } }, "should" : [ { "term" : { "user.official" : { "value" : true, "boost" : 30 } } }, { "term" : { "official" : { "value" : true, "boost" : 2 } } }, { "range" : { "total" : { "gte" : 30000, "lte" : 100000, "boost" : 1 } } }, { "range" : { "total" : { "gte" : 100000, "boost" : 2 } } }, { "range" : { "dt" : { "gte" : "1565964763", "boost" : 60 } } }, { "range" : { "dt" : { "lte" : "1565964763", "gte" : "1563977563", "boost" : 10 } } }, { "range" : { "dt" : { "lte" : "1563977563", "gte" : "1561385563", "boost" : 5 } } } ], "filter" : [ ], "must_not" : [ { "term": { "user.official": false }}, { "term": { "official": false }}, { "term": { "official": "false" }} ] } }, "size" : 2000 } Vbox7

VBox7 logo