Modeling relationships

We saw in the previous sections how to model and store products and run various queries on products. The product data had partly structured data and partly textual data. What if we also had detailed features of the products available to us? We may have many different types of products and each product may have completely different types of detailed features. For example, for products that fall into the Laptops category, we would have features such as screen size, processor type, and processor clock speed.

At the same time, products in the Automobile GPS Systems category may have features such as screen size, whether GPS can speak street names, or whether it has free lifetime map updates available.

Because we may have ...

Get Learning Elastic Stack 7.0 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.