title: adding filters dynamically to DSL query body generated using bodybuilder.js
body: <p>The server gets an array of query terms from a frontend ajax call:</p>
  
  <pre><code>req.query.filterTerms=['black', 'white', 'green']
  </code></pre>
  
  <p>I need to chain each ofthese filters to the bodybuilder query which is:</p>
  
  <pre><code>var body=bodybuilder()
  .query('match', 'searchable', req.query.querytext)
  .from(i)
  .build();
  </code></pre>
  
  <p>How do i dynamically chain .filter() method/function for each of the query terms in the array to the bodybuilder instance?</p>