editor.html 1.4 KB

1234567891011121314151617181920212223242526
  1. <div>
  2. <div class="row-fluid">
  3. <div class="span1">
  4. <label class="small">Length</label>
  5. <input type="number" style="width:80%" ng-model="panel.size" ng-change="set_refresh(true)">
  6. </div>
  7. <div class="span3">
  8. <label class="small">Field</label>
  9. <input type="text" bs-typeahead="fields.list" style="width:80%" ng-change="set_refresh(true)" ng-model='panel.field'></select>
  10. </div>
  11. <div class="span3">
  12. <label class="small">Query Mode</label>
  13. <select style="width:80%" ng-change="set_refresh(true)" ng-model='panel.mode' ng-options="f for f in ['terms only','AND', 'OR']"></select>
  14. </div>
  15. <div class="span5">
  16. <label class="small">Exclude Terms(s) (comma seperated)</label>
  17. <input array-join type="text" style="width:90%" ng-change="set_refresh(true)" ng-model='panel.exclude'></input>
  18. </div>
  19. </div>
  20. <div class="row-fluid">
  21. <div class="span12">
  22. The derive queries panel takes a query and a field, runs a terms facet, then creates queries based on them. For example, you might want to see a histogram of the top 5 requests that return a 404. <strong>You should be careful not to select a high cardinality field</strong> as Elasticsearch must load all of these values into memory.<p>
  23. Query Mode allows to optionally append original query to each term in the list.
  24. </div>
  25. </div>
  26. </div>