title: Elasticsearch - how store data, nested or array?
body: <p>Help me please.
  How to make the best document scheme for such data?
  There are data on the number of products in each city:</p>
  
  <ol>
  <li><code>product1, [city = city1, available = 0], [city = city2, available = 2], [city = city3, available = 1],</code> ...
  ...</li>
  <li><code>product100, [city = city1, available = 1], [city = city2, available = 1], [city = city3, available = 1],</code> ...</li>
  </ol>
  
  <p>How can this data be saved for each of the products if the products can be 1000 and cities can be 100 and that the city-available search work?</p>