Skip to main content

Attribute types

Hub organizes product information through a structured set of attributes, each defined by a specific data type. These attributes form the foundation for how data is stored, understood, and interacted with - while filters are applied based on the structure of this underlying information.

This page outlines every available data type for the attribute in Hub, along with the filter conditions you can apply to each. Use it as a reference when building views, running searches, or customising how product information is displayed.


String

A string is used to represent text data. It can include letters, numbers, and symbols. In Hub, string attributes are often used for fields like product names, descriptions, or any other textual data that needs to be filtered by exact matches or partial matches.

Common Use Cases:

  • Product names
  • Descriptions
  • External URLs
  • Categories and types

Available Filter Conditions:

  • Is: Exact match (e.g., "Wood")
  • Is not: Excludes exact match (e.g., not "Ceramic")
  • Contains: Matches partial text (e.g., contains "metal")
  • Starts with: Matches text that begins with the specified string (e.g., starts with "Plast")
  • Ends with: Matches text that ends with the specified string (e.g., ends with "tile")
  • Is empty: Matches empty fields (null or blank)

Number

Number attributes represent numeric values, such as measurements, quantities, or other data requiring numeric comparison or range filtering. These values can be integers or decimals.

Common Use Cases:

  • Quantity or number of variants
  • Product weight
  • Price
  • Lead time
  • Dimensions (if stored as numbers instead of strings)

Available Filter Conditions:

  • Is: Exact match (e.g., 100)
  • Is not: Excludes exact match (e.g., not 50)
  • Greater than: Matches values greater than the specified number (e.g., > 10)
  • Less than: Matches values less than the specified number (e.g., < 100)
  • Between: Matches values within a specified range (e.g., 50 - 150)
  • Is empty: Matches empty fields

Date

Date attributes represent specific points in time. These are often used for tracking product creation dates, modification timestamps, and other time-based data.

Common Use Cases:

  • Product launch date
  • Expiration date
  • Last updated date

Available Filter Conditions:

  • On or after: Matches dates on or after the specified date
  • After: Matches dates after the specified date
  • On or before: Matches dates on or before the specified date
  • Before: Matches dates before the specified date
  • On: Exact date match
  • Not on: Excludes exact date match
  • Is empty: Matches empty fields

Boolean

Boolean attributes represent binary values - either True or False. These are commonly used for attributes that have only two possible states, such as availability or product certification.

Common Use Cases:

  • In stock (True/False)
  • Certified (True/False)
  • Fire-rated (True/False)
  • Sustainable (True/False)

Available Filter Conditions:

  • Is: Exact match for True or False (e.g., is True)
  • Is not: Excludes the specified value (e.g., is not True)
  • Is empty: Matches empty (null or undefined) fields

These data types allow you to organize and filter product information effectively within Hub.