How would you structure indexes / types for an eshop application? Such an eshop will consist of domain objects such as product, category, tag, manufacturer, etc. On the full-text search results page, a mixed list of all domain objects should be displayed.
I can imagine two options:
- One index for the entire application, each domain object as a type.
- Each domain object has its own index, the same type is an “element”.
Which option will scale better?
Most of the "elements" in the database are products. Some products are not yet available. How to increase current products?
Full-text should prefer to show categories / manufacturers at the top of the page. How to increase certain types / objects from a specific index?
source
share