3 var app = angular.module('exampleApp', [
4 'angular-elastic-builder',
7 app.controller('BasicController', function() {
9 var data = this.data = {};
37 'test.state.multi': [ 'AZ', 'CT' ]
44 'test.term': 'asdfasdf'
57 'test.number': { type: 'number', minimum: 650 },
58 'test.term': { type: 'term' },
59 'test.boolean': { type: 'term', subType: 'boolean' },
60 'test.state.multi': { type: 'multi', choices: [ 'AZ', 'CA', 'CT' ]}
63 data.needsUpdate = true;
65 this.showQuery = function() {
68 filter: { and : data.query }
71 return JSON.stringify(queryToShow, null, 2);