// Generated by CoffeeScript 2.3.2
(function() {
  var Attribute, Prefix;

  Attribute = require('./attribute');

  module.exports = Prefix = class Prefix extends Attribute {
    filter(paramString) {
      var occur, prefix, ref;
      occur = (ref = this._options.occur) != null ? ref : "should";
      return {
        bool: {
          [`${occur}`]: (function() {
            var i, len, ref1, results;
            ref1 = paramString.split(',');
            results = [];
            for (i = 0, len = ref1.length; i < len; i++) {
              prefix = ref1[i];
              results.push({
                prefix: {
                  [`${this.field}`]: prefix.trim()
                }
              });
            }
            return results;
          }).call(this)
        }
      };
    }

  };

}).call(this);
