Skip to content

Instantly share code, notes, and snippets.

@plaflamme
Created May 20, 2011 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plaflamme/983779 to your computer and use it in GitHub Desktop.
Save plaflamme/983779 to your computer and use it in GitHub Desktop.
An example formal description of facets in ES
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