---
title: "Full-text search behavior"
slug: "full-text-search-behavior"
abstract: "Overview of how the search behaves, including wildcards and search restrictions."
---
# Full-text search behavior

In Sitecore Content Hub, the full-text search examines all available asset metadata. Using the **AND** and **OR** operators can return result combinations from different metadata fields. You can narrow down a search to one particular property using the [advanced search](https://doc.sitecore.com/ch/en/users/content-hub/apply-advanced-filters.html "Apply advanced filters"). To organize search results, you can [sort by relevance](https://doc.sitecore.com/ch/en/users/content-hub/sorting-search-results-by-relevance.html "Sorting search results by relevance").

The search feature in Content Hub is case-insensitive except for the **AND** and **OR** operators, which must be fully uppercase. By default, searches use the *StartsWith* wildcard mode so that a search term is treated as if it ends with an asterisk, without one needing to be included.

You can search for multiple items by separating them with commas.

> [!warning]
> Due to a restriction on Elasticsearch, properties longer than 512 characters are not indexed by the advanced search. Also, single-letter strings are ignored in the *StartsWith* and *Contains* wildcard modes, because they would return too many results.

> [!note]
> If you are a superuser or have the necessary permissions granted to you through [user group policies](https://doc.sitecore.com/ch/en/users/content-hub/user-group-policies.html "User group policies"), you can define [search restrictions](https://doc.sitecore.com/ch/en/users/content-hub/search-restrictions.html "Search restrictions") that determine how full-text search retrieves results.

## Search examples

The following table contains examples of how the full-text search works with the default *StartsWith* search mode.

| Search term | Search results | Explanation |
| --- | --- | --- |
| *foobar* | *foobar*, and any variation using uppercase or lowercase letters like *FooBar, fooBar, FOOBAR*, and so on. | All letters in the search term must be present, in the exact order. |
| *foo AND bar, bar AND foo* | *foo bar*, *bar foo*. | Both search terms must be present, in any order. |
| *foo OR bar, bar OR foo* | *foo*, or *bar*, or both. | At least one search term must be present, in any order. |
| *foo-bar, foo&bar, foo[special character]bar* | *foo&bar, foo.bar, foo bar*, or any other variation following the structure *foo[special character]bar*. | All letters in the search term, plus a special character, must be present in the exact order. |
| *"foo bar"* | *foo bar* | Returns exact matches, in the exact order. Can also return assets with the search terms distributed across multiple fields, such as *foo* in `field1` and *bar* in `field2`. |
| *foo bar* | *foo bar* | This is the equivalent of searching for *foo* AND *bar*. |

## Wildcards

If the wildcard mode is set to *Match*, adding wildcard characters to searches can help you locate items when you are unsure of the exact search term. This expands the reach of your search by increasing the potential number of results. For example:

- *apple*\* - returns *apple*, *applesauce*, *apples*, and so on.
- *\*apple* - returns *apple*, *pineapple*, *grapple*, and so on.
- *\*apple*\* - returns all of the above and *pineapples*.

The **\*** wildcard represents any number of characters. To search for an unknown character, you can use the **?** wildcard. For example, *organi?e* returns *organize* and *organise*.

> [!note]
> Special characters such as *&*, *£*, *%*, *^*, `-`, `_`, and regular white spaces, are generally treated as interchangeable when they occur between words. However, if you're using a wildcard character (such as `*`) within a word, special characters, such as a hyphen `-` or underscore `_` might affect search results. In this case, replace special characters with a space to improve accuracy. Search behavior is most reliable when using only letters and numbers.

> [!important]
> Do not use the following characters in a full-text search: `«`, `»`, `÷`, `×`, `¦`, `¤`, `⋇`, or `؉`.
>
> Do not combine special characters and wildcards within the same search word or phrase. For example, use *invoice re\*ort* instead of *invoice-re\*ort* to ensure consistent results like *invoice-report*.