1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
// This file is autogenerated, DO NOT EDIT
// quickstart/full-text-filtering-tutorial.asciidoc:129
[source, python]
----
resp = client.bulk(
index="cooking_blog",
refresh="wait_for",
operations=[
{
"index": {
"_id": "1"
}
},
{
"title": "Perfect Pancakes: A Fluffy Breakfast Delight",
"description": "Learn the secrets to making the fluffiest pancakes, so amazing you won't believe your tastebuds. This recipe uses buttermilk and a special folding technique to create light, airy pancakes that are perfect for lazy Sunday mornings.",
"author": "Maria Rodriguez",
"date": "2023-05-01",
"category": "Breakfast",
"tags": [
"pancakes",
"breakfast",
"easy recipes"
],
"rating": 4.8
},
{
"index": {
"_id": "2"
}
},
{
"title": "Spicy Thai Green Curry: A Vegetarian Adventure",
"description": "Dive into the flavors of Thailand with this vibrant green curry. Packed with vegetables and aromatic herbs, this dish is both healthy and satisfying. Don't worry about the heat - you can easily adjust the spice level to your liking.",
"author": "Liam Chen",
"date": "2023-05-05",
"category": "Main Course",
"tags": [
"thai",
"vegetarian",
"curry",
"spicy"
],
"rating": 4.6
},
{
"index": {
"_id": "3"
}
},
{
"title": "Classic Beef Stroganoff: A Creamy Comfort Food",
"description": "Indulge in this rich and creamy beef stroganoff. Tender strips of beef in a savory mushroom sauce, served over a bed of egg noodles. It's the ultimate comfort food for chilly evenings.",
"author": "Emma Watson",
"date": "2023-05-10",
"category": "Main Course",
"tags": [
"beef",
"pasta",
"comfort food"
],
"rating": 4.7
},
{
"index": {
"_id": "4"
}
},
{
"title": "Vegan Chocolate Avocado Mousse",
"description": "Discover the magic of avocado in this rich, vegan chocolate mousse. Creamy, indulgent, and secretly healthy, it's the perfect guilt-free dessert for chocolate lovers.",
"author": "Alex Green",
"date": "2023-05-15",
"category": "Dessert",
"tags": [
"vegan",
"chocolate",
"avocado",
"healthy dessert"
],
"rating": 4.5
},
{
"index": {
"_id": "5"
}
},
{
"title": "Crispy Oven-Fried Chicken",
"description": "Get that perfect crunch without the deep fryer! This oven-fried chicken recipe delivers crispy, juicy results every time. A healthier take on the classic comfort food.",
"author": "Maria Rodriguez",
"date": "2023-05-20",
"category": "Main Course",
"tags": [
"chicken",
"oven-fried",
"healthy"
],
"rating": 4.9
}
],
)
print(resp)
----
|