cs-icon.svg

Supported Operators for Various Data Types

When working with Advanced Search in Contentstack, it is essential to understand the different operators available for querying fields across various data types. These operators enable you to filter data efficiently. The table below outlines the supported operators for each data type, helping you make the most out of Contentstack’s search and filtering capabilities:

FieldsSupported Operators
Single Line Textbox (Text)
  • $eq = Matches
  • $regex = Contains
  • $ne = Does not match
Multi Line Textbox (Text)$regex = Contains
Rich Text Editor (Text)$regex = Contains
JSON Rich Text Editor (Text)$regex = Contains
Markdown (Text)$regex = Contains
Select (Boolean)
  • $eq = Matches
  • $ne = Does not match
Modular BlocksNot applicable
Number
  • $eq = Equals
  • $lte = Is lesser than and equals
  • $gte = Is greater than and equals
  • $ne = Does not match
Boolean
  • $eq = Matches
  • $ne = Does not match
Date (Number)
  • $eq = Equals
  • $lte = Is lesser than and equals
  • $gte = Is greater than and equals
  • $lt = Is lesser than
  • $gt = Is greater than
File
  • $eq = Matches
  • $ne = Does not match
LinkTitle
  • $eq = Matches
  • $regex = Contains
  • $ne = Does not match

URL
  • $eq = Matches
  • $regex = Contains
  • $ne = Does not match
Reference
  • $eq = Matches
  • $ne = Does not match
GroupNot applicable
Environment tags
  • $eq = Matches
  • $ne = Does not match
Language/locale
  • $eq = Matches
  • $ne = Does not match
Users
  • $eq = Matches
  • $ne = Does not match
Tag
  • $eq = Matches
  • $ne = Does not match

Note: The Matches operator is case-sensitive.

Was this article helpful?
^