daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Sep 14th, 2015 4 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. # create a record
  4. curl -XPUT 'http://localhost:9200/sparks-search/models/1' -d '{"season": "WINTER", "categoryTree": null, "products": [{"description": null, "title": "Sweatshirt - Dark Blue", "color": "Blau", "images": [{"type": "absolute", "urls": {"small": "https://i1.ztat.net/catalog/PB/B2/2S/00/0K/11/PBB22S000-K11@1.jpg", "large": "https://i1.ztat.net/large/PB/B2/2S/00/0K/11/PBB22S000-K11@1.jpg", "medium": "https://i1.ztat.net/detail/PB/B2/2S/00/0K/11/PBB22S000-K11@1.jpg"}}, {"type": "absolute", "urls": {"small": "https://i4.ztat.net/catalog/PB/B2/2S/00/0K/11/PBB22S000-K11@2.jpg", "large": "https://i4.ztat.net/large/PB/B2/2S/00/0K/11/PBB22S000-K11@2.jpg", "medium": "https://i4.ztat.net/detail/PB/B2/2S/00/0K/11/PBB22S000-K11@2.jpg"}}], "attributes": [{"id": "Material Oberstoff", "value": ["100% Baumwolle"], "title": null}], "variants": [{"sellers": [{"price": {"current": 13.95, "discountPercentage": 0, "isoCode": "EUR", "original": 13.95}, "shippingMethods": [{"handlingTimeMin": 259200, "deliveryTimeMin": 86400, "deliveryMethod": "Standard", "handlingTimeMax": 432000, "deliveryTimeMax": 432000, "carrier": "DHL", "deliveryCostSingleItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}, "id": "dhl_standard", "deliveryCostMultiItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}}], "id": "3383", "deepLinkUrl": "https://blingbling-marketplace.com/project-b-pullover-sweatshirt-dark-blue-pbb22s000-k11.html", "stock": 2}], "id": "PBB22S000-K11000L000", "size": "L"}, {"sellers": [{"price": {"current": 13.95, "discountPercentage": 0, "isoCode": "EUR", "original": 13.95}, "shippingMethods": [{"handlingTimeMin": 259200, "deliveryTimeMin": 86400, "deliveryMethod": "Standard", "handlingTimeMax": 432000, "deliveryTimeMax": 432000, "carrier": "DHL", "deliveryCostSingleItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}, "id": "dhl_standard", "deliveryCostMultiItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}}], "id": "3383", "deepLinkUrl": "https://blingbling-marketplace.com/project-b-pullover-sweatshirt-dark-blue-pbb22s000-k11.html", "stock": 0}], "id": "PBB22S000-K1103XL000", "size": "3XL"}, {"sellers": [{"price": {"current": 13.95, "discountPercentage": 0, "isoCode": "EUR", "original": 13.95}, "shippingMethods": [{"handlingTimeMin": 259200, "deliveryTimeMin": 86400, "deliveryMethod": "Standard", "handlingTimeMax": 432000, "deliveryTimeMax": 432000, "carrier": "DHL", "deliveryCostSingleItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}, "id": "dhl_standard", "deliveryCostMultiItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}}], "id": "3383", "deepLinkUrl": "https://blingbling-marketplace.com/project-b-pullover-sweatshirt-dark-blue-pbb22s000-k11.html", "stock": 2}], "id": "PBB22S000-K11000M000", "size": "M"}, {"sellers": [{"price": {"current": 13.95, "discountPercentage": 0, "isoCode": "EUR", "original": 13.95}, "shippingMethods": [{"handlingTimeMin": 259200, "deliveryTimeMin": 86400, "deliveryMethod": "Standard", "handlingTimeMax": 432000, "deliveryTimeMax": 432000, "carrier": "DHL", "deliveryCostSingleItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}, "id": "dhl_standard", "deliveryCostMultiItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}}], "id": "3383", "deepLinkUrl": "https://blingbling-marketplace.com/project-b-pullover-sweatshirt-dark-blue-pbb22s000-k11.html", "stock": 1}], "id": "PBB22S000-K1100XS000", "size": "XS"}, {"sellers": [{"price": {"current": 13.95, "discountPercentage": 0, "isoCode": "EUR", "original": 13.95}, "shippingMethods": [{"handlingTimeMin": 259200, "deliveryTimeMin": 86400, "deliveryMethod": "Standard", "handlingTimeMax": 432000, "deliveryTimeMax": 432000, "carrier": "DHL", "deliveryCostSingleItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}, "id": "dhl_standard", "deliveryCostMultiItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}}], "id": "3383", "deepLinkUrl": "https://blingbling-marketplace.com/project-b-pullover-sweatshirt-dark-blue-pbb22s000-k11.html", "stock": 1}], "id": "PBB22S000-K1100XL000", "size": "XL"}, {"sellers": [{"price": {"current": 13.95, "discountPercentage": 0, "isoCode": "EUR", "original": 13.95}, "shippingMethods": [{"handlingTimeMin": 259200, "deliveryTimeMin": 86400, "deliveryMethod": "Standard", "handlingTimeMax": 432000, "deliveryTimeMax": 432000, "carrier": "DHL", "deliveryCostSingleItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}, "id": "dhl_standard", "deliveryCostMultiItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}}], "id": "3383", "deepLinkUrl": "https://blingbling-marketplace.com/project-b-pullover-sweatshirt-dark-blue-pbb22s000-k11.html", "stock": 2}], "id": "PBB22S000-K11000S000", "size": "S"}, {"sellers": [{"price": {"current": 13.95, "discountPercentage": 0, "isoCode": "EUR", "original": 13.95}, "shippingMethods": [{"handlingTimeMin": 259200, "deliveryTimeMin": 86400, "deliveryMethod": "Standard", "handlingTimeMax": 432000, "deliveryTimeMax": 432000, "carrier": "DHL", "deliveryCostSingleItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}, "id": "dhl_standard", "deliveryCostMultiItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}}], "id": "3383", "deepLinkUrl": "https://blingbling-marketplace.com/project-b-pullover-sweatshirt-dark-blue-pbb22s000-k11.html", "stock": 0}], "id": "PBB22S000-K110XXL000", "size": "XXL"}], "id": "4d182d832275ff61d81e53fb854353a6aa791cea"}], "categories": ["katalog", "men", "men-jumpers"]}'
  5.  
  6. curl -XPUT 'http://localhost:9200/sparks-search/models/2' -d '{"season": "SUMMER", "categoryTree": null, "products": [{"description": null, "title": "Bluse - dark blue", "color": "Blau", "images": [{"type": "absolute", "urls": {"small": "https://i5.ztat.net/catalog/PB/B2/1E/00/4K/11/PBB21E004-K11@1.jpg", "large": "https://i5.ztat.net/large/PB/B2/1E/00/4K/11/PBB21E004-K11@1.jpg", "medium": "https://i5.ztat.net/detail/PB/B2/1E/00/4K/11/PBB21E004-K11@1.jpg"}}, {"type": "absolute", "urls": {"small": "https://i6.ztat.net/catalog/PB/B2/1E/00/4K/11/PBB21E004-K11@2.jpg", "large": "https://i6.ztat.net/large/PB/B2/1E/00/4K/11/PBB21E004-K11@2.jpg", "medium": "https://i6.ztat.net/detail/PB/B2/1E/00/4K/11/PBB21E004-K11@2.jpg"}}], "attributes": [{"id": "Material Oberstoff", "value": ["100% Baumwolle"], "title": null}], "variants": [{"sellers": [{"price": {"current": 6.95, "discountPercentage": 0, "isoCode": "EUR", "original": 6.95}, "shippingMethods": [{"handlingTimeMin": 259200, "deliveryTimeMin": 86400, "deliveryMethod": "Standard", "handlingTimeMax": 432000, "deliveryTimeMax": 432000, "carrier": "DHL", "deliveryCostSingleItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}, "id": "dhl_standard", "deliveryCostMultiItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}}], "id": "3383", "deepLinkUrl": "https://blingbling-marketplace.com/project-b-t-shirt-top-bluse-dark-blue-pbb21e004-k11.html", "stock": 3}], "id": "PBB21E004-K11000M000", "size": "M"}, {"sellers": [{"price": {"current": 6.95, "discountPercentage": 0, "isoCode": "EUR", "original": 6.95}, "shippingMethods": [{"handlingTimeMin": 259200, "deliveryTimeMin": 86400, "deliveryMethod": "Standard", "handlingTimeMax": 432000, "deliveryTimeMax": 432000, "carrier": "DHL", "deliveryCostSingleItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}, "id": "dhl_standard", "deliveryCostMultiItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}}], "id": "3383", "deepLinkUrl": "https://blingbling-marketplace.com/project-b-t-shirt-top-bluse-dark-blue-pbb21e004-k11.html", "stock": 3}], "id": "PBB21E004-K11000S000", "size": "S"}, {"sellers": [{"price": {"current": 6.95, "discountPercentage": 0, "isoCode": "EUR", "original": 6.95}, "shippingMethods": [{"handlingTimeMin": 259200, "deliveryTimeMin": 86400, "deliveryMethod": "Standard", "handlingTimeMax": 432000, "deliveryTimeMax": 432000, "carrier": "DHL", "deliveryCostSingleItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}, "id": "dhl_standard", "deliveryCostMultiItem": {"current": "2.99", "discountPercentage": 0, "isoCode": "EUR", "original": "2.99"}}], "id": "3383", "deepLinkUrl": "https://blingbling-marketplace.com/project-b-t-shirt-top-bluse-dark-blue-pbb21e004-k11.html", "stock": 3}], "id": "PBB21E004-K11000L000", "size": "L"}], "id": "51dfd2c6c734dfc34f4be8c416997be927db1b73"}], "categories": ["katalog", "women", "women-blouses"]}'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top