Content search

When working with a lot of content in your space, you’ll find that you’ll need to refine the list of content to quickly find what you’re looking for. The search and filter options in the Contentful web app allow you to do this in a variety of ways.

You can search entries or media assets. The basic text option lets you search through all the text fields of your entries, while filters allow you to further refine the results to just the content types you’re interested in.

The basic search works best when you generally know the name of the entry you’re looking for. 

search-and-filter-gif

To perform a basic search:

  1. Enter your keywords into the search bar in the top navigation.  As you type, the results list will automatically refine itself, while suggestions will be shown as a drop-down in the search bar. 

  2. The search will look through all of the possible text fields in your space.

Using a filter

Filters are useful for when you need a specific content type or existing entry. To further refine the results list, add more filters. 

For exact results, use the IS operator. For fuzzy search, use the MATCH operator. 

To add a filter: 

  1. Click the blue Filters button on the right-hand side of the search bar. 

  2. Choose the filter type you’d like to search by from the drop-down list. 

  3. Each filter will then prompt you to add additional information (such as refining by calendar date) as needed. 

Using multiple filters

To add multiple filters, simply use the method above for as many additional filters as you’d like.

For a more in-depth introduction to using multiple filters, watch the following (two minute) video:

If you are having problems with search, the following tips can help:

  • Use long, but specific, search terms. This speeds up searching

  • Use the MATCH operator

    • If your search term is composed of multiple words, and you know the content type and the field where you want to search, use the MATCH operator

  • Avoid filler words

    • Examples of filler words: you know, I mean, okay, so, actually, basically, right, etc.

  • Avoid stop words

    • Examples of stop words: because, been, before, being, between, both, but, etc.

  • Avoid searching fields which have a limited value set (e.g. number ranges 0 - 5, booleans, etc.) on content types with large numbers of entries

  • Avoid highly linked entries or assets

    • Design your content model in a way that doesn't require entries to be highly linked to many others

Searching media assets

Searching media assets works the same as searching entries: the only difference is that there are filters that apply only to assets. These are:

  • Width

  • Height

  • Type

  • Size

  • Filename

Notes:

  • Width and Height should be entered as whole numbers only (e.g., use 500 and not 500px)

  • Size should be entered as a whole number only (for example, 100000 not 100k)

To search your media assets:

  1. Click the Media tab in the navigation bar. 

  2. Enter the search term you’d like to use, or click the blue Filter button to add a filter.

  3. Your results list will be refined to show only the content that matches your search.

Quick search in the Contentful UI

To perform a quick search:

  1. Press the q key anywhere in the web app to open the quick search dialog.

  2. Enter your desired search terms. The search will search through all content types, entries and assets in your space.

Was this helpful?
add-circle arrow-right remove style-two-pin-marker subtract-circle