cs-icon.svg

Run Advanced Search

Contentstack’s Advanced Search feature is accessible from the search bar located in the header of our app. To do an advanced search using conditions within your Contentstack app, you can perform the following steps:

  1. In the Search bar (press ctrl + K), select if you want to search for Entries or Assets.
  2. Click on Advanced Search
  3. Choose a condition. You will see Match All by default. On clicking it, you can switch to Match Any. Select the option that suits your requirements the best.
  4. Under the condition, you need to enter your search query(ies). A search query contains a field, an operator, and the expected value. For example, you can search for an entry with a specific title. So, select the field Title, then use the operator Matches, and then enter the value that you are looking for, say Home.
    1. The field drop-down lets you first select only SYSTEM-DEFINED FIELDS, such as Content Type, Created By, Updated By, Published By, Published Environment, Created At, Updated At, Published At, Language, Tags, UID.
    2. Once you select a field, the next drop-down option lets you select a conditional operator based on the field you select. So if you select the field as "Content Type" you should see matches, contains, does not match).

      The operators depend on the data type of the field that you have chosen. For example, if you select Title (which is of ‘string’ data type), you will be able to see operators that support string data type i.e., ‘matches’, ‘contains,’ and so on. We have covered more about this in the latter section.
      Image-Dashboard-CTVisualizer.jpg
      To add multiple search queries, click the + link, and enter your query as explained above.
      image.png

      Note: All the conditions or queries that you add on the same level will work with either ‘ALL’ or ‘ANY’ operator, not a mix of both.

  5. Finally, you can add nested conditions. Nested conditions help you build really complex queries to further refine your search.
    To add a nested condition, click the + link. You will see a nested block, within which you can select the ‘ALL’ or ‘ANY’ operator.
    image.png
Was this article helpful?
^