Global Search

Search any entries/assets within Contentstack using the search bar in the header.

Contentstack’s Global Search helps you search any content within your stack. It performs a full-text search to bring you the most relevant results matching your search phrases.

When you search for a phrase in the search bar, it compares every word of your search phrase with every word of the values used in fields of entries or assets. It then sorts the results based on a robust algorithm created to provide the best-matched results first.

To search for entries or assets, click on the search bar in the header, enter the required search phrase and hit ‘Enter’.

By default, you will see the list of all the entries containing the search phrase. To switch to results within assets, use the selector given adjacent to the search bar in the results page, as shown below.

Search a term.png

You can further refine the search results using filters.

Note: The maximum size allowed for the search term is 32,766 bytes. Searching strings greater than this size will give an error. 

Using filters

Contentstack provides a number of filters to refine the search results. Let’s look at these filters in detail.

Search filters for Entries

Contentstack provides three types of filters for refining search results for entries: Content Types, Publish Status, and Tags. Let’s look at how to use these filters.

Content types

When you search using a key phrase, it searches within all content types by default. If you want to search for entries within specific content types, click the down arrow beside the Content Types filter, mark the required content types and click Apply.

Search using Content Type.png

Select 'Reset' to clear the filter.

Publish Status

Use this filter to refine results based on the published status of the entries (published/unpublished) or search within the entries published on specific environments. Select the down arrow beside the Publish Status filter, mark the required environments, and click Apply.

Search using Publish Status.png

Select 'Reset' to clear the filter.

Tags

If you have tagged your entries, this filter helps you quickly refine your search results. Select the down arrow beside the Tags filter. You will see the list of all the tags assigned to the entries. Mark the required tags, and click Apply.

Search using Tags.png

Select 'Reset' to clear the filter.

You can apply one or more filters simultaneously to narrow down your search results. When you apply multiple filters, you will see all the applied filters. You can remove any of the applied filters at any time, or reset all filters by clicking Clear Filter.

Search filters for Assets

Three filters are available for refining search results for assets: File Types, Publish Status, and Tags. Let’s look at how to use these filters.

File type

This filter lets you refine the search results by files types such as audio, image, PDF, video, document, etc. To apply this filter, click the down arrow located beside the File Types filter. Mark the required file types and click Apply.

Search using File types.png

Select 'Reset' to clear the filter.

The other two filters Publish Status and Tags work similar to the way they work for entries.

You can apply one or more filters simultaneously to narrow down your search results. When you apply multiple filters, you will see all the applied filters. You can remove any of the applied filters at any time, or reset all filters by clicking Clear Filter.

Was this article helpful?
top-arrow