Skip to content

Instantly share code, notes, and snippets.

@caryfitzhugh
Last active December 18, 2015 16:59
Show Gist options
  • Save caryfitzhugh/5815127 to your computer and use it in GitHub Desktop.
Save caryfitzhugh/5815127 to your computer and use it in GitHub Desktop.
{
"rank" =>"NOT_CARE",
"match-expr" =>"NOT_CARE",
"hits" => {
"found" =>5,
"start" =>0,
"hit" => [
{
"id" =>373
},
{
"id" =>374
},
{
"id" =>375
},
{
"id" =>376
},
{
"id" =>377
}
]
},
"facets" => {
"has_photo" => {
"constraints" => [
{
"value" =>"0",
"count" =>0
},
{
"value" =>"1",
"count" =>5
}
],
"min" =>0,
"max" =>5
},
"ingredient_count" => {
"constraints" => [
{
"value" =>"1..3",
"count" =>3
},
{
"value" =>"4..6",
"count" =>2
},
{
"value" =>"7..9",
"count" =>0
},
{
"value" =>"10..",
"count" =>0
}
]
},
"time" => {
"constraints" => [
{
"value" =>"1..10",
"count" =>0
},
{
"value" =>"11..20",
"count" =>0
},
{
"value" =>"21..30",
"count" =>3
},
{
"value" =>"31..45",
"count" =>1
},
{
"value" =>"46..60",
"count" =>1
},
{
"value" =>"61..",
"count" =>0
}
]
},
"publisher_rating" => {
"constraints" => [
{
"value" =>"1..10",
"count" =>0
},
{
"value" =>"11..20",
"count" =>2
},
{
"value" =>"21..30",
"count" =>0
},
{
"value" =>"31..40",
"count" =>0
},
{
"value" =>"41..50",
"count" =>0
},
{
"value" =>"51..60",
"count" =>0
},
{
"value" =>"61..70",
"count" =>0
},
{
"value" =>"71..80",
"count" =>2
},
{
"value" =>"81..90",
"count" =>0
},
{
"value" =>"91..100",
"count" =>1
}
]
},
"user_tags" => {
"constraints" => [
],
"min" =>nil,
"max" =>nil
},
"serves" => {
"constraints" => [
{
"value" =>"0",
"count" =>3
},
{
"value" =>"1..2",
"count" =>0
},
{
"value" =>"3..4",
"count" =>0
},
{
"value" =>"5..6",
"count" =>0
},
{
"value" =>"7..",
"count" =>2
}
]
},
"publisher_key" => {
"constraints" => [
{
"value" =>"unknown",
"count" =>5
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment