Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Elasticsearch Query
{
"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