polyfractal/sherlock — pull request #55 by andersonbento (2013-05-28 15:36:16+00:00)
Title: Nested param

I implemented this because this param is necessary when you have different Facets types ( nested and string for example) and works fine to me!

How to use:
$facetcolor = Sherlock::facetBuilder()->Terms()
->fields("options.colors")
->nested("options")
->facetname("Colors");

The Output:
"Color": {
"terms":{
"field":"options.color"
},
"nested": "options"
}