polyfractal / sherlock

MIT License
119 stars 28 forks source link

Nested param #55

Closed bent0ws closed 11 years ago

bent0ws commented 11 years ago

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" }

polyfractal commented 11 years ago

Looks good to me...thanks!