Created
May 20, 2011 20:57
-
-
Save plaflamme/983779 to your computer and use it in GitHub Desktop.
An example formal description of facets in ES
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
facets : "facets" : { | |
<facet_def> | |
[,<facet_def>]* | |
} | |
facet_def: <facet_name> : { | |
<facet_type> | |
[,"global":true] | |
[,<facet_filter>] | |
} | |
facet_name: "[a-ZA-Z]+" | |
facet_type: <type_name> { | |
<type_body> | |
} | |
facet_filter: "facet_filter" : { | |
<filter_def> | |
} | |
// <> indicates required portions | |
// [] indicates optional things which is also a JS array, so it would be best to pick something else | |
// facet_type could instead link to drill-down and see all facet types and their formal description | |
// filter_def would link to the filters section |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment