Searching

Once the search feature has been enabled and projects have been indexed, it is possible to search on a project from the Search button on the main navigation bar.

A project needs to be selected first before the search interface can be shown. Only indexable projects will be listed.

Search interface

Search query

The text input at the top of the search form allows you to type a search query.

An empty search query, or a query that only contains the * wildcard, will return every item that has been indexed for this project.

To execute the search, you can click the Search button, or press Enter while focusing on the search query field.

Operators

A few operators can be used to construct complex search conditions:

a b
a | b

Search for results that contain the word a, the word b, or both at once.

a + b

Search for results that contain both a and b at the same time.

-c

Search for results that do not contain c.

a + -c

Search for results that contain a, but that do not contain c.

Searching for a -c may not return the results that you expect. This will search for results that contain a and results that do not contain c, but not necessarily results that satisfy both conditions.
a*

Search for results that contain any word starting with a. This wildcard operator cannot be used in the middle or at the end of a word.

"a b"

Search for results that contain exactly a b, not a z b or b a.

Those operators can be all be used simultaneously. For example, doctor + -psy* will look for search results that contain doctor and that do not contain any word starting with the prefix psy.

Precedence

Each search term and operator is evaluated from left to right by default, but this order can be controlled by wrapping them in parentheses:

  • a + b c is equivalent to (a + b) | c. This search query will match results that either have both a and b, or just have c.

  • a + (b c) is equivalent to a + (b | c). This search query will match results that have a and that have either b or c.

Sources

Below the search query input, checkboxes allow you to filter results to only include those from specific data types, called sources. By default, all sources are selected.

At least one source must be selected. When no sources are selected, a warning is shown and the search query will be performed as if all sources were selected instead.

Sorting

It is possible to control how search results are sorted:

By relevance

The default option. The search engine will compute a relevance score based on how well each search result matches the search query. The most relevant search results will be shown first.

By element name

Search results will be sorted by element name in ascending order. This does not take parent element names into account.

Facets

After a search query has been executed, new options called facets may be shown to filter the search further based on other properties. It is possible to filter search results by:

Clicking on any of the checkboxes for the suggested values will re-execute the search with this additional filter, and will update the facets to reflect those newly filtered search results. Unchecking a value removes the filter.

The values for each facet are sorted by name in ascending order by default. They may be sorted by number of occurrences within the current search in descending order by clicking on Sort by occurrences.