--- title: "Faceting Numbers" slug: "faceting-numbers" updated: 2021-10-14T22:56:56Z published: 2021-10-14T22:56:56Z canonical: "docs.imat.io/faceting-numbers" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.imat.io/llms.txt > Use this file to discover all available pages before exploring further. # Faceting Numbers # Faceting Query Numbers Numeric values are treated differently than date values. All values are absolute and, just like date values, order must be respected. Numbers support file size suffixes (e.g., "MB" or "M" for megabytes), or scientific notation (1e6 for 1 million). The gaps that delineate bins within the range can be non-uniform. #### Example: ``` https:///search?q=data&facets=contentlength:range(begin:0, end:100, gap:10) ``` #### Response: ``` ... 13 3 5 0 0 0 0 0 0 0 ``` --- If you specify bins outside the beginning and ending range, they are ignored. #### Example: ``` https:///search?q=data&facets=contentlength:range(begin:0, end:100M, gap:{1k, 100k, 10M, 101M}) ``` #### Response: ``` ... 13 3 5 0 ``` --- Numeric values cannot be defined from the end value. The following queries would result in an error. #### Example: ``` https:///search?q=data&facets=contentlength:range(begin:-100, end:100 gap:-10) https:///search?q=data&facets=contentlength:range(begin:0, end:100M, gap:{10M, 100k, 1k}) ``` #### Response: ``` Error ``` --- ### Numeric Values and Multipliers Numeric values can also use multipliers ( xN values ) and exponents ( ^N values ). #### Example: ``` https:///search?q=data&facets=contentlength:range(begin:0, end:1e8, gap:x10) ``` #### Response: ``` ... 13 3 5 5 0 5 0 0 ``` Using a multiplier value across zero is considered invalid, because you cannot multiply a negative number and ever be larger than 0 #### Example: ``` https:///search?q=data&facets=contentlength:range(begin:-5, end:5, gap:x2) ``` #### Response: ``` Error ```