Elasticsearch Inner with store

0

In my project there are about 40,000 products from different stores, but to return a search for Elasticsearch , I need the city and state filter from where the store is located. The problem is this, if a store has 10,000 products, should I put the store location on all products, or is there any way to make a kind of inner like Mysql?

    
asked by anonymous 27.12.2017 / 20:38

1 answer

0

Hello, elasticsearch works with data collections. So you do not have foreign keys with strong referential integrity as in relational databases. In your case I would put the store id in the collection to use as the key in the search.

    
27.12.2017 / 20:49