AI Hints
Home›Elasticsearch Tutorial›Multi Get and By Query
Elasticsearch · Lesson 21 of 120

Practice: Load the Catalog

All 49 products.

⏱ 2 min read▶ Video at 19:11🎓 Free
Watch this lesson in the Elasticsearch courseWatch on YouTube ↗Full Elasticsearch course

Time to practise. We'll load the full Trailhead catalog with the bulk API, then check it arrived. From now on, every lesson starts with this catalog loaded.

  • Bulk load
  • Check it
  • Ready for search

The catalog is loaded

We've bulk loaded all forty nine products into the products index. Let's count them, and look at one. Run it. Forty nine documents, and product seventeen is a travel pack.

Dev Tools Consoletext
GET products/_count?filter_path=count

GET products/_source/17
Output
# GET products/_count 200 OK
{"count": 49}

# GET products/_source/17 200 OK
{
  "id": 17,
  "name": "Carry-On 35L Travel Pack",
  "brand": "Alpina",
  "category": "Backpacks",
  "price": 130.99,
  "rating": 4.6,
  "reviews": 548,
  "in_stock": true,
  "colors": ["green", "grey", "blue"],
  "tags": ["climbing", "winter"],
  "description": "A durable backpack with a padded hip belt for long days on the
  trail.",
  "added": "2025-02-14",
  "weight_g": 2015
}
Also uses _load
products

Each product has

Every product has a name, brand and category. A price, a star rating, and a count of reviews. Tags and colors, which are lists. And a description, the date it was added, and its weight in grams.

Textname, description
Labelsbrand, category
Numbersprice, rating, reviews
Liststags, colors
Otheradded date, weight

Summary

The full catalog of forty nine products is loaded, and it's what we'll search from here on. Next, your first real search.

Key takeaways
  • 49 products
  • Bulk loaded
  • Ready
Next up: Your First Search — the _search endpoint