Created
January 13, 2019 07:32
-
-
Save wakawaka54/d4cad864d858efc41a0b2806ea0041b4 to your computer and use it in GitHub Desktop.
Elasticsearch Query
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
{ | |
"from" : 0, | |
"size" : 25, | |
"profile": true, | |
"query" : { | |
"bool" : { | |
"must" : [ | |
{ | |
"match" : { | |
"searchData.fullText" : { | |
"query" : "drone", | |
"operator" : "AND", | |
"prefix_length" : 0, | |
"max_expansions" : 50, | |
"fuzzy_transpositions" : true, | |
"lenient" : false, | |
"zero_terms_query" : "NONE", | |
"boost" : 1.0 | |
} | |
} | |
} | |
], | |
"filter" : [ | |
{ | |
"range" : { | |
"numberSort.totalGrossPrice" : { | |
"from" : 1.0, | |
"to" : 1500.0, | |
"include_lower" : true, | |
"include_upper" : true, | |
"boost" : 1.0 | |
} | |
} | |
}, | |
{ | |
"range" : { | |
"numberSort.lotSize" : { | |
"from" : 1, | |
"to" : 10, | |
"include_lower" : true, | |
"include_upper" : true, | |
"boost" : 1.0 | |
} | |
} | |
}, | |
{ | |
"range" : { | |
"numberSort.orders" : { | |
"from" : 10, | |
"to" : 10000000, | |
"include_lower" : true, | |
"include_upper" : true, | |
"boost" : 1.0 | |
} | |
} | |
}, | |
{ | |
"range" : { | |
"numberSort.ratings" : { | |
"from" : 4.0, | |
"to" : 5.0, | |
"include_lower" : true, | |
"include_upper" : true, | |
"boost" : 1.0 | |
} | |
} | |
} | |
], | |
"disable_coord" : false, | |
"adjust_pure_negative" : true, | |
"boost" : 1.0 | |
} | |
}, | |
"sort" : [ | |
{ | |
"numberSort.totalUnitPrice" : { | |
"order" : "asc" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment