editor.html 1.2 KB

12345678910111213141516171819202122
  1. <div>
  2. <div class="row-fluid">
  3. <div class="span12">
  4. The derive queries panel takes a query and a field, then runs a terms facet against both and generates a list of terms to query on. 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>
  5. Query Mode allows to optionally append original query to each term in the list.
  6. </div>
  7. </div>
  8. <div class="row-fluid">
  9. <div class="span1">
  10. <label class="small">Length</label>
  11. <input type="number" style="width:80%" ng-model="panel.size" ng-change="set_refresh(true)">
  12. </div>
  13. <div class="span3">
  14. <label class="small">Query Mode</label>
  15. <select style="width:80%" ng-change="set_refresh(true)" ng-model='panel.mode' ng-options="f for f in ['terms only','AND', 'OR']"></select>
  16. </div>
  17. <div class="span8">
  18. <label class="small">Exclude Terms(s) (comma seperated)</label>
  19. <input array-join type="text" style="width:90%" ng-change="set_refresh(true)" ng-model='panel.exclude'></input>
  20. </div>
  21. </div>
  22. </div>