Search
This module defines how the search interprets what the user types, and where it looks.
The settings arbitrate between silence and noise: searching the whole word or a part of the word, searching the text of the documents or only their metadata, tolerating typos. Several of them cost performance, which is flagged case by case below.
Search syntax options
- Simple: uses a simple syntax: the whole word is searched in the content and the metadata, and a multi-term search uses an "OR" between each word.
- Content: searches the text in the contents.
- Metadata: searches the text in the metadata.
- Advanced: uses an advanced syntax: the search works like a "contains" instead of a whole word, and a multi-term search uses an "OR" between each word. Available syntax:
- OR:
term1 OR term2 - AND:
term1 AND term2(or+instead of AND) - NOT:
term1 AND NOT term2(or-instead of NOT) - Exact phrase or whole word: between quotes, for instance "This is a phrase"
- Wildcards:
*replaces several characters,?replaces one character
- OR:
Search options
-
Split on special characters: takes into account each part of a compound word, and not only the whole compound word. For instance: "Rainbow-colored" is split into 2 words: "rainbow", "colored".
-
Highlight text: highlights the searched text.
Warning: this option can impact search performance.
-
Display summary: displays a column with the summary of the search.
Warning: this option can impact search performance.
- Display in one line:
- Multi-line mode (default): line in "wide" mode, each line numbered and ended by [...].
- 1-line mode: line in "compact" mode, each piece numbered and separated by a comma. The tooltip shows the line breaks.
- Number of fragments: controls the content of the summary column. Only applies while searching in the indexed content.
- Summary fragment length: maximum number of lines displayed in the column. A higher length and number of fragments can impact search performance.
- Display in one line:
-
Content: searches the text in the contents.
-
Metadata: searches the text in the metadata.
-
Prioritize metadata: by default, the content and the metadata have the same weight. This option gives priority to the metadata, and the results coming from the metadata are displayed first.
-
Fuzzy search: fuzzy search only applies to the whole-word search in simple and advanced mode. It is not used with the "contains" search in simple mode, nor with the multi-term advanced search.