 splitToHash = (split) ->
   hash = []
   for own k, v of split
-    continue if k is 'name'
+    continue if k in ['name', 'bucketFilter']
     hash.push(k + ":" + v)
 
   return hash.sort().join('|')


  getUnknownQuery = (query, root, condensedQuery) ->
    return query unless root?
    unknownQuery = []
    added = false


      timeFilter: filter
    }

addToFilter = (filter, newFilterPieces...) ->
  if filter?
    newTimeFilterPiece = newFilterPieces.filter(({type}) -> return type is 'within')[0]
    if newTimeFilterPiece?.type is 'within'
      { filter, timeFilter } = separateTimeFilter(filter)
    newFilterPieces.push filter
  if newFilterPieces.length > 1
    return {
      type: 'and'
      operation: 'filter'
      filters: newFilterPieces
    }
  return newFilterPieces[0]

createFilter = (value, splitOp) ->
  if splitOp.bucket in ['timePeriod', 'timeDuration']
