f985 / aaa

0 stars 0 forks source link

Products list show json example for 12 items, maybe we need to add pagination #3

Open arturvahanyan14 opened 4 years ago

arturvahanyan14 commented 4 years ago
right now in front, we show only
id,
type,
name,
price,
image,
rate,

{
   "results":[
      {
         "hits":[
            {
               "name":"LEGITIM",
               "type":"Chopping board, white",
               "price":1.49,
               "description":"",
               "image":"http://www.ikea.com/us/en/images/products/legitim-chopping-board-white__0119427_PE275744_S4.JPG",
               "ikea_id":"90202268",
               "share_count":31625,
               "rating":5,
               "materials":[
                  "Polyethylene"
               ],
               "colors":[

               ],
               "sizes":[
                  "13 ½x9 ½\""
               ],
               "category":"Cooking",
               "sub_category":"Cooking > Knives & chopping boards",
               "objectID":"509665190",
               "_snippetResult":{
                  "description":{
                     "value":"",
                     "matchLevel":"none"
                  }
               },
               "_highlightResult":{
                  "name":{
                     "value":"LEGITIM",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "type":{
                     "value":"Chopping board, white",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "description":{
                     "value":"",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "category":{
                     "value":"Cooking",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "sub_category":{
                     "value":"Cooking > Knives & chopping boards",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  }
               }
            },
            {
               "name":"RODD",
               "type":"Floor lamp base, black",
               "price":25,
               "description":"",
               "image":"http://www.ikea.com/us/en/images/products/rodd-floor-lamp-base-black__0120136_PE276562_S4.JPG",
               "ikea_id":"70192406",
               "share_count":31625,
               "rating":5,
               "materials":[
                  "EVA plastic",
                  "Cast iron, Acrylic coating",
                  "Steel, Acrylic coating"
               ],
               "colors":[

               ],
               "sizes":[

               ],
               "category":"Lighting",
               "sub_category":"Lighting > Shades, bases & cords",
               "objectID":"509659230",
               "_snippetResult":{
                  "description":{
                     "value":"",
                     "matchLevel":"none"
                  }
               },
               "_highlightResult":{
                  "name":{
                     "value":"RODD",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "type":{
                     "value":"Floor lamp base, black",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "description":{
                     "value":"",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "category":{
                     "value":"Lighting",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "sub_category":{
                     "value":"Lighting > Shades, bases & cords",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  }
               }
            },
            {
               "name":"JÄRA",
               "type":"Lamp shade, white",
               "price":11.99,
               "description":"Create your own personalized pendant or table lamp by combining the lamp shade with your choice of cord set or lamp base.",
               "image":"http://www.ikea.com/us/en/images/products/jara-lamp-shade-white__0331375_PE522995_S4.JPG",
               "ikea_id":"50206211",
               "share_count":31625,
               "rating":5,
               "materials":[
                  "Steel, Powder coating",
                  "PET plastic, 100 % polyester"
               ],
               "colors":[
                  "Gray",
                  "White"
               ],
               "sizes":[
                  "13\"",
                  "18\"",
                  "22\"",
                  "9\""
               ],
               "category":"Lighting",
               "sub_category":"Lighting > Shades, bases & cords",
               "objectID":"509659090",
               "_snippetResult":{
                  "description":{
                     "value":"Create your own personalized pendant or table lamp by combining",
                     "matchLevel":"none"
                  }
               },
               "_highlightResult":{
                  "name":{
                     "value":"JÄRA",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "type":{
                     "value":"Lamp shade, white",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "description":{
                     "value":"Create your own personalized pendant or table lamp by combining the lamp shade with your choice of cord set or lamp base.",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "category":{
                     "value":"Lighting",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "sub_category":{
                     "value":"Lighting > Shades, bases & cords",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  }
               }
            },
            {
               "name":"GRUNDTAL",
               "type":"Hanger for door, stainless steel",
               "price":9.99,
               "description":"Hanging storage helps you to convert unused space into a storage place.",
               "image":"http://www.ikea.com/us/en/images/products/grundtal-hanger-for-door__0209200_PE362809_S4.JPG",
               "ikea_id":"50226780",
               "share_count":31625,
               "rating":5,
               "materials":[
                  "Stainless steel"
               ],
               "colors":[

               ],
               "sizes":[

               ],
               "category":"Small storage",
               "sub_category":"Small storage > Hooks & hangers",
               "objectID":"509657040",
               "_snippetResult":{
                  "description":{
                     "value":"Hanging storage helps you to convert unused space into a",
                     "matchLevel":"none"
                  }
               },
               "_highlightResult":{
                  "name":{
                     "value":"GRUNDTAL",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "type":{
                     "value":"Hanger for door, stainless steel",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "description":{
                     "value":"Hanging storage helps you to convert unused space into a storage place.",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "category":{
                     "value":"Small storage",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "sub_category":{
                     "value":"Small storage > Hooks & hangers",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  }
               }
            },
            {
               "name":"BOHOLMEN",
               "type":"Colander, black",
               "price":2.99,
               "description":"The colander is designed to rest evenly on the edges of the bowl.",
               "image":"http://www.ikea.com/us/en/images/products/boholmen-colander-black__0122322_PE278601_S4.JPG",
               "ikea_id":"30202544",
               "share_count":31625,
               "rating":4,
               "materials":[
                  "Polypropylene"
               ],
               "colors":[

               ],
               "sizes":[
                  "6x17\""
               ],
               "category":"Kitchen & appliances",
               "sub_category":"Kitchen & appliances > Kitchen faucets & sinks",
               "objectID":"509644710",
               "_snippetResult":{
                  "description":{
                     "value":"The colander is designed to rest evenly on the edges",
                     "matchLevel":"none"
                  }
               },
               "_highlightResult":{
                  "name":{
                     "value":"BOHOLMEN",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "type":{
                     "value":"Colander, black",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "description":{
                     "value":"The colander is designed to rest evenly on the edges of the bowl.",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "category":{
                     "value":"Kitchen & appliances",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "sub_category":{
                     "value":"Kitchen & appliances > Kitchen faucets & sinks",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  }
               }
            },
            {
               "name":"POTATISCHIPS GRÄDDFIL & LÖK",
               "type":"Sour cream and onion potato chips",
               "price":1.69,
               "description":"Serve as a snack with your favorite dip, as a barbecue side dish, or with food at any time.",
               "image":"http://www.ikea.com/us/en/images/products/potatischips-graddfil-lok-sour-cream-and-onion-potato-chips__79438_PE203428_S4.JPG",
               "ikea_id":"80129669",
               "share_count":31625,
               "rating":4,
               "materials":[

               ],
               "colors":[

               ],
               "sizes":[

               ],
               "category":"Food",
               "sub_category":"Food > Candy, chocolates & snacks",
               "objectID":"509639410",
               "_snippetResult":{
                  "description":{
                     "value":"Serve as a snack with your favorite dip, as a",
                     "matchLevel":"none"
                  }
               },
               "_highlightResult":{
                  "name":{
                     "value":"POTATISCHIPS GRÄDDFIL & LÖK",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "type":{
                     "value":"Sour cream and onion potato chips",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "description":{
                     "value":"Serve as a snack with your favorite dip, as a barbecue side dish, or with food at any time.",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "category":{
                     "value":"Food",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "sub_category":{
                     "value":"Food > Candy, chocolates & snacks",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  }
               }
            },
            {
               "name":"ROSTAD LÖK",
               "type":"Fried onion",
               "price":1.99,
               "description":"Yellow onions are used both as a spice and as a vegetable. Serve with hot dogs or hamburgers.",
               "image":"http://www.ikea.com/us/en/images/products/rostad-lok-fried-onion__0143725_PE304943_S4.JPG",
               "ikea_id":"30237176",
               "share_count":31625,
               "rating":4,
               "materials":[

               ],
               "colors":[

               ],
               "sizes":[

               ],
               "category":"Food",
               "sub_category":"Food > Sauces, jam & condiments",
               "objectID":"509639120",
               "_snippetResult":{
                  "description":{
                     "value":"Yellow onions are used both as a spice and as",
                     "matchLevel":"none"
                  }
               },
               "_highlightResult":{
                  "name":{
                     "value":"ROSTAD LÖK",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "type":{
                     "value":"Fried onion",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "description":{
                     "value":"Yellow onions are used both as a spice and as a vegetable. Serve with hot dogs or hamburgers.",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "category":{
                     "value":"Food",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "sub_category":{
                     "value":"Food > Sauces, jam & condiments",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  }
               }
            },
            {
               "name":"TÅRTA CHOKLADKROKANT",
               "type":"Almond cake,chocolate/butterscotch",
               "price":5.99,
               "description":"An almond cake with chocolate, butter cream and butterscotch. Serve as a dessert with coffee or tea. This product is gluten free.",
               "image":"http://www.ikea.com/us/en/images/products/tarta-chokladkrokant-almond-cake-chocolate-butterscotch__0285556_PE422522_S4.JPG",
               "ikea_id":"60212481",
               "share_count":31625,
               "rating":5,
               "materials":[

               ],
               "colors":[

               ],
               "sizes":[

               ],
               "category":"Food",
               "sub_category":"Food > Pastries, desserts & cookies",
               "objectID":"509638990",
               "_snippetResult":{
                  "description":{
                     "value":"An almond cake with chocolate, butter cream and butterscotch. Serve",
                     "matchLevel":"none"
                  }
               },
               "_highlightResult":{
                  "name":{
                     "value":"TÅRTA CHOKLADKROKANT",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "type":{
                     "value":"Almond cake,chocolate/butterscotch",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "description":{
                     "value":"An almond cake with chocolate, butter cream and butterscotch. Serve as a dessert with coffee or tea. This product is gluten free.",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "category":{
                     "value":"Food",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "sub_category":{
                     "value":"Food > Pastries, desserts & cookies",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  }
               }
            },
            {
               "name":"RÄKOR MED SKAL",
               "type":"Shrimp with shell, frozen",
               "price":7.99,
               "description":"These shrimp are caught in the deep sea. The slow growth rate there gives them a delicate taste and a firm texture. Peel and serve on open sandwiches with egg slices, mayonnaise, black pepper, lemon and dill.",
               "image":"http://www.ikea.com/us/en/images/products/rakor-med-skal-shrimp-with-shell-frozen__0410914_PE570314_S4.JPG",
               "ikea_id":"20201663",
               "share_count":31625,
               "rating":4,
               "materials":[

               ],
               "colors":[

               ],
               "sizes":[

               ],
               "category":"Food",
               "sub_category":"Food > Meat, fish & seafood",
               "objectID":"509638740",
               "_snippetResult":{
                  "description":{
                     "value":"These shrimp are caught in the deep sea. The slow",
                     "matchLevel":"none"
                  }
               },
               "_highlightResult":{
                  "name":{
                     "value":"RÄKOR MED SKAL",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "type":{
                     "value":"Shrimp with shell, frozen",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "description":{
                     "value":"These shrimp are caught in the deep sea. The slow growth rate there gives them a delicate taste and a firm texture. Peel and serve on open sandwiches with egg slices, mayonnaise, black pepper, lemon and dill.",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "category":{
                     "value":"Food",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "sub_category":{
                     "value":"Food > Meat, fish & seafood",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  }
               }
            },
            {
               "name":"VILSHULT",
               "type":"Picture, Amsterdam",
               "price":49.99,
               "description":"Motif created by Fernando Bengoechea. Mounted picture - ready to hang.",
               "image":"http://www.ikea.com/us/en/images/products/vilshult-picture__0090396_PE224180_S4.JPG",
               "ikea_id":"20150946",
               "share_count":11821,
               "rating":5,
               "materials":[
                  "Paper, Foil",
                  "Fiberboard",
                  "Fiberboard, Paper"
               ],
               "colors":[

               ],
               "sizes":[
                  "55x39 ¼\""
               ],
               "category":"Decoration",
               "sub_category":"Decoration > Frames & pictures",
               "objectID":"509668270",
               "_snippetResult":{
                  "description":{
                     "value":"Motif created by Fernando Bengoechea. Mounted picture - ready to hang.",
                     "matchLevel":"none"
                  }
               },
               "_highlightResult":{
                  "name":{
                     "value":"VILSHULT",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "type":{
                     "value":"Picture, Amsterdam",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "description":{
                     "value":"Motif created by Fernando Bengoechea. Mounted picture - ready to hang.",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "category":{
                     "value":"Decoration",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "sub_category":{
                     "value":"Decoration > Frames & pictures",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  }
               }
            },
            {
               "name":"GRÖNÖ",
               "type":"Table lamp, frosted glass",
               "price":6.99,
               "description":"Gives a soft mood light. Each lamp is unique because the glass is mouth blown.",
               "image":"http://www.ikea.com/us/en/images/products/grono-table-lamp__0371679_PE551465_S4.JPG",
               "ikea_id":"00029225",
               "share_count":11821,
               "rating":5,
               "materials":[
                  "Polyurethane paint, Glass"
               ],
               "colors":[

               ],
               "sizes":[

               ],
               "category":"Lighting",
               "sub_category":"Lighting > Table lamps",
               "objectID":"509647010",
               "_snippetResult":{
                  "description":{
                     "value":"Gives a soft mood light. Each lamp is unique because",
                     "matchLevel":"none"
                  }
               },
               "_highlightResult":{
                  "name":{
                     "value":"GRÖNÖ",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "type":{
                     "value":"Table lamp, frosted glass",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "description":{
                     "value":"Gives a soft mood light. Each lamp is unique because the glass is mouth blown.",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "category":{
                     "value":"Lighting",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "sub_category":{
                     "value":"Lighting > Table lamps",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  }
               }
            },
            {
               "name":"RÅSKOG",
               "type":"Utility cart, turquoise",
               "price":29.99,
               "description":"The sturdy construction and four casters make it easy for you to move the cart and use it wherever you like. It even fits in tight spaces because of its small size.",
               "image":"http://www.ikea.com/us/en/images/products/raskog-utility-cart-turquoise__0144044_PE304208_S4.JPG",
               "ikea_id":"30216536",
               "share_count":9877,
               "rating":4,
               "materials":[
                  "Steel, Epoxy powder coating"
               ],
               "colors":[

               ],
               "sizes":[
                  "13 3/4x17 3/4x30 3/4\""
               ],
               "category":"Kitchen & appliances",
               "sub_category":"Kitchen & appliances > Kitchen islands & carts",
               "objectID":"509642210",
               "_snippetResult":{
                  "description":{
                     "value":"The sturdy construction and four casters make it easy for",
                     "matchLevel":"none"
                  }
               },
               "_highlightResult":{
                  "name":{
                     "value":"RÅSKOG",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "type":{
                     "value":"Utility cart, turquoise",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "description":{
                     "value":"The sturdy construction and four casters make it easy for you to move the cart and use it wherever you like. It even fits in tight spaces because of its small size.",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "category":{
                     "value":"Kitchen & appliances",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  },
                  "sub_category":{
                     "value":"Kitchen & appliances > Kitchen islands & carts",
                     "matchLevel":"none",
                     "matchedWords":[

                     ]
                  }
               }
            }
         ],
         "nbHits":4618,
         "page":0,
         "nbPages":84,
         "hitsPerPage":12,
         "facets":{
            "price":{
               "9.99":461,
               "4.99":380,
               "3.99":359,
               "2.99":330,
               "5.99":302,
               "14.99":289,
               "19.99":283,
               "1.99":273,
               "7.99":271,
               "12.99":256
            },
            "colors":{
               "White":339,
               "Black":195,
               "Black-brown":85,
               "Pink":70,
               "Gray":65,
               "Blue":59,
               "Green":43,
               "Brown":42,
               "Red":42,
               "Dark gray":30
            },
            "rating":{
               "3":1273,
               "5":1250,
               "4":1238,
               "1":1212,
               "2":1195
            },
            "category":{
               "Decoration":880,
               "Textiles & Rugs":760,
               "Lighting":748,
               "Eating":502,
               "Winter holidays":479,
               "Small storage":453,
               "Kitchen & appliances":329,
               "Bathroom":319,
               "Cooking":319,
               "Dining":280
            },
            "materials":{
               "Polypropylene":602,
               "100 % polyester":527,
               "Glass":487,
               "100 % cotton":396,
               "ABS plastic":396,
               "Stainless steel":309,
               "Polycarbonate plastic":308,
               "Paper":307,
               "Steel, Epoxy/polyester powder coating":262,
               "Steel, Galvanized":217
            }
         },
         "facets_stats":{
            "price":{
               "min":0.39,
               "max":799,
               "avg":28.5615,
               "sum":176167
            },
            "rating":{
               "min":1,
               "max":5,
               "avg":3,
               "sum":18623
            }
         },
         "exhaustiveFacetsCount":false,
         "exhaustiveNbHits":true,
         "query":"",
         "params":"query=&hitsPerPage=12&maxValuesPerFacet=10&page=0&highlightPreTag=__ais-highlight__&highlightPostTag=__%2Fais-highlight__&facets=%5B%22materials%22%2C%22colors%22%2C%22price%22%2C%22rating%22%2C%22category%22%5D&tagFilters=&numericFilters=%5B%22price%3E%3D0%22%5D",
         "index":"ikea",
         "processingTimeMS":2
      },
      {
         "hits":[
            {
               "objectID":"509665190"
            }
         ],
         "nbHits":4618,
         "page":0,
         "nbPages":1000,
         "hitsPerPage":1,
         "facets":{
            "price":{
               "9.99":461,
               "4.99":380,
               "3.99":359,
               "2.99":330,
               "5.99":302,
               "14.99":289,
               "19.99":283,
               "1.99":273,
               "7.99":271,
               "12.99":256
            }
         },
         "facets_stats":{
            "price":{
               "min":0.39,
               "max":799,
               "avg":28.5615,
               "sum":176167
            }
         },
         "exhaustiveFacetsCount":true,
         "exhaustiveNbHits":false,
         "query":"",
         "params":"query=&hitsPerPage=1&maxValuesPerFacet=10&page=0&highlightPreTag=__ais-highlight__&highlightPostTag=__%2Fais-highlight__&attributesToRetrieve=%5B%5D&attributesToHighlight=%5B%5D&attributesToSnippet=%5B%5D&tagFilters=&analytics=false&clickAnalytics=false&facets=price",
         "index":"ikea",
         "processingTimeMS":1
      }
   ]
}