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. To organize search results, you can sort 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.

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 considered interchangeable.

Do you have some feedback for us?

If you have suggestions for improving this article,