nl_tokens: Add a numeric filter for a given attribute When value is an array they are combined with OR When value is a single value it will combined with AND
pl_tokens: function ( attribute , operator , v ) { var value = valToNumber ( v ) ; if ( this . isNumericRefined ( attribute , operator , value ) ) return this ; var mod = merge ( { } , this . numericRefinements ) ; mod [ attribute ] = merge ( { } , mod [ attribute ] ) ; if ( mod [ attribute ] [ operator ] ) { // Array copy mod [ attribute ] [ operator ] = mod [ attribute ] [ operator ] . slice ( ) ; // Add the element. Concat can't be used here because value can be an array. mod [ attribute ] [ operator ] . push ( value ) ; } else { mod [ attribute ] [ <mask> ] = [ value ] ; } return this . setQueryParameters ( { numericRefinements : mod } ) ; }