title: facets in elastic 5.5
body: <p>I'm trying to build a feceted search with elastic 5.5 (With elastic 2.* I found information on how to do this but in 5.5 I can't)</p>
  
  <p>Not something unusual, store-like items that i want to show hint of the amount if the user will choose to filter using some property. <a href="https://i.stack.imgur.com/jgZRA.png" rel="nofollow noreferrer">Image for visualisation</a></p>
  
  <p>Data set example:</p>
  
  <pre><code>[
    {
      "id" : "978-0641723445",
      "cat" : ["book","hardcover"],
      "name" : "The Lightning Thief",
      "author" : "Rick Riordan",
      "series_t" : "Percy Jackson and the Olympians",
      "sequence_i" : 1,
      "genre_s" : "fantasy",
      "inStock" : true,
      "price" : 12.50,
      "pages_i" : 384
    }
  ,
    {
      "id" : "978-1423103349",
      "cat" : ["book","paperback"],
      "name" : "The Sea of Monsters",
      "author" : "Rick Riordan",
      "series_t" : "Percy Jackson and the Olympians",
      "sequence_i" : 2,
      "genre_s" : "fantasy",
      "inStock" : true,
      "price" : 6.49,
      "pages_i" : 304
    }
  ,
    {
      "id" : "978-1857995879",
      "cat" : ["book","paperback"],
      "name" : "Sophie's World : The Greek Philosophers",
      "author" : "Jostein Gaarder",
      "sequence_i" : 1,
      "genre_s" : "fantasy",
      "inStock" : true,
      "price" : 3.07,
      "pages_i" : 64
    }
  ,
    {
      "id" : "978-1933988177",
      "cat" : ["book","paperback"],
      "name" : "Lucene in Action, Second Edition",
      "author" : "Michael McCandless",
      "sequence_i" : 1,
      "genre_s" : "IT",
      "inStock" : true,
      "price" : 30.50,
      "pages_i" : 475
    }
  ]
  </code></pre>
  
  <p>Thanks!</p>