Last active
December 25, 2015 04:19
-
-
Save raecoo/6915967 to your computer and use it in GitHub Desktop.
Elasticsearch response
This file contains hidden or 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
facets: { | |
"brand_id" :{ | |
"_type"=>"terms", | |
"missing"=>46573, | |
"total"=>63247, | |
"other"=>1027, | |
"terms"=>[ | |
{"term"=>"14", "count"=>33889}, | |
{"term"=>"10", "count"=>23961}, | |
{"term"=>"37", "count"=>1044}, | |
{"term"=>"54", "count"=>730}, | |
{"term"=>"27", "count"=>648}, | |
{"term"=>"1", "count"=>628}, | |
{"term"=>"35", "count"=>430}, | |
{"term"=>"34", "count"=>429}, | |
{"term"=>"33", "count"=>304}, | |
{"term"=>"36", "count"=>157} | |
] | |
}, | |
"category_id"=>{ | |
"_type"=>"terms", | |
"missing"=>35821, | |
"total"=>67180, | |
"other"=>23699, | |
"terms"=>[ | |
{"term"=>671, "count"=>18214}, | |
{"term"=>642, "count"=>8845}, | |
{"term"=>641, "count"=>4192}, | |
{"term"=>276, "count"=>3285}, | |
{"term"=>244, "count"=>3104}, | |
{"term"=>1, "count"=>2018}, | |
{"term"=>47, "count"=>1147}, | |
{"term"=>610, "count"=>1086}, | |
{"term"=>867, "count"=>890}, | |
{"term"=>611, "count"=>700} | |
] | |
}, | |
"geo"=>{ | |
"_type"=>"geo_distance", | |
"ranges"=>[ | |
{"from"=>0.0, "to"=>50.0, "count"=>106, | |
"min"=>1.7950724071253608, "max"=>5.399322192800557, | |
"total_count"=>106, "total"=>311.17494630227367, | |
"mean"=>2.935612700964846 | |
} | |
] | |
} | |
} |
This file contains hidden or 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
#<Tire::Results::Collection:0x007fee43297ff0 | |
@response={ | |
"took"=>4, | |
"timed_out"=>false, | |
"_shards"=>{"total"=>5, "successful"=>5, "failed"=>0}, | |
"hits"=>{ | |
"total"=>1054, | |
"max_score"=>84.8088, | |
"hits"=>[ | |
{"_index"=>"development_listings", "_type"=>"listing", "_id"=>"53869", "_score"=>84.8088, "_source"=>{"id"=>53869, "store_id"=>28, "product_id"=>9579, "brand_id"=>923, "category_id"=>915, "title"=>"Natural Balance® Fish & Sweet Potato Dry Dog Food Fish & Sweet Potato 15lb", "upc"=>"723633505178", "ean13"=>"0723633505178", "upc_e"=>nil, "labels"=>[14], "customized"=>false, "price"=>37.99, "quantity"=>0, "track_quantity"=>false, "feature"=>false, "out_of_stock"=>false, "in_store_only"=>false, "discontinued"=>false, "deleted"=>false, "created_at"=>"2011-05-21T23:23:41+0000", "updated_at"=>"2013-04-21T15:27:26+0000", "pickup"=>true, "location"=>"40.740422, -73.99981", "store"=>{"active"=>0, "open"=>1, "suspended"=>false, "deleted"=>false}}}, | |
{"_index"=>"development_listings", "_type"=>"listing", "_id"=>"95486", "_score"=>84.8088, "_source"=>{"id"=>95486, "store_id"=>96, "product_id"=>4336, "brand_id"=>nil, "category_id"=>610, "title"=>"New Life Spectrum Marine Fish Formula 1mm Sinking Pellet Fish Food", "upc"=>"687916402083", "ean13"=>"0687916402083", "upc_e"=>nil, "labels"=>[], "customized"=>false, "price"=>9.79, "quantity"=>0, "track_quantity"=>false, "feature"=>false, "out_of_stock"=>false, "in_store_only"=>false, "discontinued"=>false, "deleted"=>false, "created_at"=>"2012-12-04T19:25:21+0000", "updated_at"=>"2012-12-04T19:25:21+0000", "pickup"=>true, "location"=>"40.79605, -73.97048", "store"=>{"active"=>1, "open"=>1, "suspended"=>false, "deleted"=>false}}}, | |
{"_index"=>"development_listings", "_type"=>"listing", "_id"=>"106667", "_score"=>84.8088, "_source"=>{"id"=>106667, "store_id"=>96, "product_id"=>78953, "brand_id"=>960, "category_id"=>362, "title"=>"Nutrafin Max Tropical Fish Flakes Tropical Fish Flakes .67 Oz, 19", "upc"=>"015561167000", "ean13"=>"0015561167000", "upc_e"=>nil, "labels"=>[23], "customized"=>false, "price"=>3.99, "quantity"=>0, "track_quantity"=>false, "feature"=>false, "out_of_stock"=>false, "in_store_only"=>false, "discontinued"=>false, "deleted"=>false, "created_at"=>"2013-02-22T21:18:12+0000", "updated_at"=>"2013-02-22T21:18:12+0000", "pickup"=>true, "location"=>"40.79605, -73.97048", "store"=>{"active"=>1, "open"=>1, "suspended"=>false, "deleted"=>false}}}, | |
{"_index"=>"development_listings", "_type"=>"listing", "_id"=>"164002", "_score"=>84.8088, "_source"=>{"id"=>164002, "store_id"=>222, "product_id"=>9579, "brand_id"=>923, "category_id"=>915, "title"=>"Natural Balance® Fish & Sweet Potato Dry Dog Food Fish & Sweet Potato 15lb", "upc"=>"723633505178", "ean13"=>"0723633505178", "upc_e"=>nil, "labels"=>[14, 14], "customized"=>false, "price"=>36.95, "quantity"=>-1, "track_quantity"=>true, "feature"=>false, "out_of_stock"=>true, "in_store_only"=>false, "discontinued"=>false, "deleted"=>false, "created_at"=>"2013-04-18T23:24:58+0000", "updated_at"=>"2013-05-25T19:46:15+0000", "pickup"=>true, "location"=>"40.70917, -73.92152", "store"=>{"active"=>1, "open"=>1, "suspended"=>false, "deleted"=>false}}}, | |
{"_index"=>"development_listings", "_type"=>"listing", "_id"=>"55320", "_score"=>84.75527, "_source"=>{"id"=>55320, "store_id"=>26, "product_id"=>9579, "brand_id"=>923, "category_id"=>915, "title"=>"Natural Balance® Fish & Sweet Potato Dry Dog Food Fish & Sweet Potato 15lb", "upc"=>"723633505178", "ean13"=>"0723633505178", "upc_e"=>nil, "labels"=>[14, 14], "customized"=>false, "price"=>37.99, "quantity"=>0, "track_quantity"=>false, "feature"=>false, "out_of_stock"=>false, "in_store_only"=>false, "discontinued"=>false, "deleted"=>false, "created_at"=>"2011-05-21T23:41:27+0000", "updated_at"=>"2013-04-21T15:27:27+0000", "pickup"=>true, "location"=>"40.71789, -74.007138", "store"=>{"active"=>0, "open"=>1, "suspended"=>false, "deleted"=>false}}}, | |
{"_index"=>"development_listings", "_type"=>"listing", "_id"=>"89247", "_score"=>84.75527, "_source"=>{"id"=>89247, "store_id"=>44, "product_id"=>9579, "brand_id"=>923, "category_id"=>915, "title"=>"Natural Balance® Fish & Sweet Potato Dry Dog Food Fish & Sweet Potato 15lb", "upc"=>"723633505178", "ean13"=>"0723633505178", "upc_e"=>nil, "labels"=>[14, 14], "customized"=>false, "price"=>33.99, "quantity"=>0, "track_quantity"=>false, "feature"=>false, "out_of_stock"=>false, "in_store_only"=>false, "discontinued"=>false, "deleted"=>false, "created_at"=>"2011-08-03T10:50:33+0000", "updated_at"=>"2013-04-21T15:27:28+0000", "pickup"=>true, "location"=>"40.633992, -74.022117", "store"=>{"active"=>0, "open"=>0, "suspended"=>false, "deleted"=>false}}}, | |
{"_index"=>"development_listings", "_type"=>"listing", "_id"=>"75816", "_score"=>84.75527, "_source"=>{"id"=>75816, "store_id"=>45, "product_id"=>59020, "brand_id"=>14224, "category_id"=>671, "title"=>"Real Meat Fish & Venison Jerky Dog Treats (4oz Pouch Fish & Venison Jerky Treats)", "upc"=>"782877800265", "ean13"=>"0782877800265", "upc_e"=>nil, "labels"=>[14, 14], "customized"=>false, "price"=>5.99, "quantity"=>0, "track_quantity"=>false, "feature"=>false, "out_of_stock"=>false, "in_store_only"=>false, "discontinued"=>false, "deleted"=>false, "created_at"=>"2011-07-21T01:44:51+0000", "updated_at"=>"2013-04-21T16:16:54+0000", "pickup"=>true, "location"=>"40.678261, -73.975894", "store"=>{"active"=>0, "open"=>1, "suspended"=>false, "deleted"=>false}}}, | |
{"_index"=>"development_listings", "_type"=>"listing", "_id"=>"68455", "_score"=>84.75527, "_source"=>{"id"=>68455, "store_id"=>43, "product_id"=>6789, "brand_id"=>923, "category_id"=>915, "title"=>"Natural Balance® Fish & Sweet Potato Dry Dog Food Fish & Sweet Potato 28lb", "upc"=>"723633505307", "ean13"=>"0723633505307", "upc_e"=>nil, "labels"=>[14, 14], "customized"=>false, "price"=>51.39, "quantity"=>0, "track_quantity"=>false, "feature"=>false, "out_of_stock"=>false, "in_store_only"=>false, "discontinued"=>false, "deleted"=>false, "created_at"=>"2011-06-24T16:25:14+0000", "updated_at"=>"2013-04-21T15:27:30+0000", "pickup"=>true, "location"=>"40.725282, -73.995048", "store"=>{"active"=>0, "open"=>1, "suspended"=>false, "deleted"=>false}}}, | |
{"_index"=>"development_listings", "_type"=>"listing", "_id"=>"77095", "_score"=>84.75527, "_source"=>{"id"=>77095, "store_id"=>46, "product_id"=>9579, "brand_id"=>923, "category_id"=>915, "title"=>"Natural Balance® Fish & Sweet Potato Dry Dog Food Fish & Sweet Potato 15lb", "upc"=>"723633505178", "ean13"=>"0723633505178", "upc_e"=>nil, "labels"=>[14, 14], "customized"=>false, "price"=>35.99, "quantity"=>0, "track_quantity"=>false, "feature"=>false, "out_of_stock"=>false, "in_store_only"=>false, "discontinued"=>false, "deleted"=>false, "created_at"=>"2011-07-26T07:50:22+0000", "updated_at"=>"2013-04-21T15:27:28+0000", "pickup"=>true, "location"=>"40.673088, -73.983364", "store"=>{"active"=>0, "open"=>1, "suspended"=>false, "deleted"=>false}}}, | |
{"_index"=>"development_listings", "_type"=>"listing", "_id"=>"95770", "_score"=>84.75527, "_source"=>{"id"=>95770, "store_id"=>96, "product_id"=>6789, "brand_id"=>923, "category_id"=>915, "title"=>"Natural Balance® Fish & Sweet Potato Dry Dog Food Fish & Sweet Potato 28lb", "upc"=>"723633505307", "ean13"=>"0723633505307", "upc_e"=>nil, "labels"=>[14, 14], "customized"=>false, "price"=>56.99, "quantity"=>0, "track_quantity"=>false, "feature"=>false, "out_of_stock"=>false, "in_store_only"=>false, "discontinued"=>false, "deleted"=>false, "created_at"=>"2012-12-05T22:29:23+0000", "updated_at"=>"2013-04-21T15:27:32+0000", "pickup"=>true, "location"=>"40.79605, -73.97048", "store"=>{"active"=>1, "open"=>1, "suspended"=>false, "deleted"=>false}}} | |
] | |
} | |
}, | |
@options={:size=>10}, | |
@time=4, @total=1054, @facets=nil, @max_score=84.8088, @wrapper=Tire::Results::Item> |
This file contains hidden or 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
[ | |
<Item (Listing) id: "53869", store_id: 28, product_id: 9579, brand_id: 923, category_id: 915, title: "Natural Balance® Fish & Sweet Potato Dry Dog Food Fish & Sweet Potato 15lb", upc: "723633505178", ean13: "0723633505178", upc_e: nil, labels: [14, 14], customized: false, price: 37.99, quantity: 0, track_quantity: false, feature: false, out_of_stock: false, in_store_only: false, discontinued: false, deleted: false, created_at: "2011-05-21T23:23:41+0000", updated_at: "2013-04-21T15:27:26+0000", pickup: true, location: "40.740422, -73.99981", store: <Item active: 0, open: 1, suspended: false, deleted: false>, _score: 84.8088, _type: "listing", _index: "bindo_development_listings", _version: nil, sort: nil, highlight: nil, _explanation: nil>, | |
<Item (Listing) id: "95486", store_id: 96, product_id: 4336, brand_id: nil, category_id: 610, title: "New Life Spectrum Marine Fish Formula 1mm Sinking Pellet Fish Food", upc: "687916402083", ean13: "0687916402083", upc_e: nil, labels: [], customized: false, price: 9.79, quantity: 0, track_quantity: false, feature: false, out_of_stock: false, in_store_only: false, discontinued: false, deleted: false, created_at: "2012-12-04T19:25:21+0000", updated_at: "2012-12-04T19:25:21+0000", pickup: true, location: "40.79605, -73.97048", store: <Item active: 1, open: 1, suspended: false, deleted: false>, _score: 84.8088, _type: "listing", _index: "bindo_development_listings", _version: nil, sort: nil, highlight: nil, _explanation: nil>, | |
<Item (Listing) id: "106667", store_id: 96, product_id: 78953, brand_id: 960, category_id: 362, title: "Nutrafin Max Tropical Fish Flakes Tropical Fish Flakes .67 Oz, 19", upc: "015561167000", ean13: "0015561167000", upc_e: nil, labels: [23], customized: false, price: 3.99, quantity: 0, track_quantity: false, feature: false, out_of_stock: false, in_store_only: false, discontinued: false, deleted: false, created_at: "2013-02-22T21:18:12+0000", updated_at: "2013-02-22T21:18:12+0000", pickup: true, location: "40.79605, -73.97048", store: <Item active: 1, open: 1, suspended: false, deleted: false>, _score: 84.8088, _type: "listing", _index: "bindo_development_listings", _version: nil, sort: nil, highlight: nil, _explanation: nil>, | |
<Item (Listing) id: "164002", store_id: 222, product_id: 9579, brand_id: 923, category_id: 915, title: "Natural Balance® Fish & Sweet Potato Dry Dog Food Fish & Sweet Potato 15lb", upc: "723633505178", ean13: "0723633505178", upc_e: nil, labels: [14, 14], customized: false, price: 36.95, quantity: -1, track_quantity: true, feature: false, out_of_stock: true, in_store_only: false, discontinued: false, deleted: false, created_at: "2013-04-18T23:24:58+0000", updated_at: "2013-05-25T19:46:15+0000", pickup: true, location: "40.70917, -73.92152", store: <Item active: 1, open: 1, suspended: false, deleted: false>, _score: 84.8088, _type: "listing", _index: "bindo_development_listings", _version: nil, sort: nil, highlight: nil, _explanation: nil>, | |
<Item (Listing) id: "55320", store_id: 26, product_id: 9579, brand_id: 923, category_id: 915, title: "Natural Balance® Fish & Sweet Potato Dry Dog Food Fish & Sweet Potato 15lb", upc: "723633505178", ean13: "0723633505178", upc_e: nil, labels: [14, 14], customized: false, price: 37.99, quantity: 0, track_quantity: false, feature: false, out_of_stock: false, in_store_only: false, discontinued: false, deleted: false, created_at: "2011-05-21T23:41:27+0000", updated_at: "2013-04-21T15:27:27+0000", pickup: true, location: "40.71789, -74.007138", store: <Item active: 0, open: 1, suspended: false, deleted: false>, _score: 84.75527, _type: "listing", _index: "bindo_development_listings", _version: nil, sort: nil, highlight: nil, _explanation: nil>, | |
<Item (Listing) id: "89247", store_id: 44, product_id: 9579, brand_id: 923, category_id: 915, title: "Natural Balance® Fish & Sweet Potato Dry Dog Food Fish & Sweet Potato 15lb", upc: "723633505178", ean13: "0723633505178", upc_e: nil, labels: [14, 14], customized: false, price: 33.99, quantity: 0, track_quantity: false, feature: false, out_of_stock: false, in_store_only: false, discontinued: false, deleted: false, created_at: "2011-08-03T10:50:33+0000", updated_at: "2013-04-21T15:27:28+0000", pickup: true, location: "40.633992, -74.022117", store: <Item active: 0, open: 0, suspended: false, deleted: false>, _score: 84.75527, _type: "listing", _index: "bindo_development_listings", _version: nil, sort: nil, highlight: nil, _explanation: nil>, | |
<Item (Listing) id: "75816", store_id: 45, product_id: 59020, brand_id: 14224, category_id: 671, title: "Real Meat Fish & Venison Jerky Dog Treats (4oz Pouch Fish & Venison Jerky Treats)", upc: "782877800265", ean13: "0782877800265", upc_e: nil, labels: [14, 14], customized: false, price: 5.99, quantity: 0, track_quantity: false, feature: false, out_of_stock: false, in_store_only: false, discontinued: false, deleted: false, created_at: "2011-07-21T01:44:51+0000", updated_at: "2013-04-21T16:16:54+0000", pickup: true, location: "40.678261, -73.975894", store: <Item active: 0, open: 1, suspended: false, deleted: false>, _score: 84.75527, _type: "listing", _index: "bindo_development_listings", _version: nil, sort: nil, highlight: nil, _explanation: nil>, | |
<Item (Listing) id: "68455", store_id: 43, product_id: 6789, brand_id: 923, category_id: 915, title: "Natural Balance® Fish & Sweet Potato Dry Dog Food Fish & Sweet Potato 28lb", upc: "723633505307", ean13: "0723633505307", upc_e: nil, labels: [14, 14], customized: false, price: 51.39, quantity: 0, track_quantity: false, feature: false, out_of_stock: false, in_store_only: false, discontinued: false, deleted: false, created_at: "2011-06-24T16:25:14+0000", updated_at: "2013-04-21T15:27:30+0000", pickup: true, location: "40.725282, -73.995048", store: <Item active: 0, open: 1, suspended: false, deleted: false>, _score: 84.75527, _type: "listing", _index: "bindo_development_listings", _version: nil, sort: nil, highlight: nil, _explanation: nil>, | |
<Item (Listing) id: "77095", store_id: 46, product_id: 9579, brand_id: 923, category_id: 915, title: "Natural Balance® Fish & Sweet Potato Dry Dog Food Fish & Sweet Potato 15lb", upc: "723633505178", ean13: "0723633505178", upc_e: nil, labels: [14, 14], customized: false, price: 35.99, quantity: 0, track_quantity: false, feature: false, out_of_stock: false, in_store_only: false, discontinued: false, deleted: false, created_at: "2011-07-26T07:50:22+0000", updated_at: "2013-04-21T15:27:28+0000", pickup: true, location: "40.673088, -73.983364", store: <Item active: 0, open: 1, suspended: false, deleted: false>, _score: 84.75527, _type: "listing", _index: "bindo_development_listings", _version: nil, sort: nil, highlight: nil, _explanation: nil>, | |
<Item (Listing) id: "95770", store_id: 96, product_id: 6789, brand_id: 923, category_id: 915, title: "Natural Balance® Fish & Sweet Potato Dry Dog Food Fish & Sweet Potato 28lb", upc: "723633505307", ean13: "0723633505307", upc_e: nil, labels: [14, 14], customized: false, price: 56.99, quantity: 0, track_quantity: false, feature: false, out_of_stock: false, in_store_only: false, discontinued: false, deleted: false, created_at: "2012-12-05T22:29:23+0000", updated_at: "2013-04-21T15:27:32+0000", pickup: true, location: "40.79605, -73.97048", store: <Item active: 1, open: 1, suspended: false, deleted: false>, _score: 84.75527, _type: "listing", _index: "bindo_development_listings", _version: nil, sort: nil, highlight: nil, _explanation: nil> | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment