Skip to content

Instantly share code, notes, and snippets.

@wakawaka54
Created January 13, 2019 07:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save wakawaka54/d4cad864d858efc41a0b2806ea0041b4 to your computer and use it in GitHub Desktop.
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