guides
Searching a translation memory
Search Translation Units finds the translation units of a translation memory by their source text, and returns them with their translation in targetLocale.
What is searched
Every match type searches the source text only: the segments in the TM's source locale. A translation is never searched, so a term that appears only in a target locale finds nothing. Only units with a translation in targetLocale are returned.
An empty sourceText returns every unit with a translation in targetLocale.
Match types
matchType | Matches | Case |
|---|---|---|
Contains (default) | Units whose source holds every word of sourceText, as whole words, in any order. Words are stemmed and stop words dropped (see below), so saving changes finds Changes saved. It does not match parts of words: sav finds nothing. | Ignored |
Expression | A full-text query, described below. | Ignored |
To find words that start with a text, use an Expression with :* (transl:*); to find a phrase, quote it ('save your changes').
Expression syntax
An expression is a full-text query: single words joined by operators.
| Write | Means | Example | |
|---|---|---|---|
& or and | both | save & changes | |
| `\ | or or` | either | save or keep |
!, or not after and/or | not | save & !draft, save and not draft | |
( ) | grouping | `(save \ | keep) & changes` |
<-> | the next word follows right after | save <-> changes | |
<N> | the next word follows N words later | save <2> changes | |
:* after a word | words starting with it | transl:* finds translation, translated | |
'…' | a phrase: the words in this order | 'save your changes' |
- Words, not substrings. Each operand is a whole word, stemmed like
Contains. Use:*to match the start of a word; nothing matches the middle or end of a word. - Case is ignored, operators included:
AND,Andandandare the same. notat the start is not an operator. Write!draft, notnot draft. The wordsand,orandnotare operators only between spaces.- No escaping.
&,|,!,(,),:,*,<,>and'are always syntax, and there is no escape character. Punctuation is not searchable: search the words around it. - Every pair of words needs an operator.
save changesis invalid: writesave & changes,save <-> changesor'save changes'. An invalid expression answers422withInvalid queryand a tip.
Stemming and stop words
Contains and Expression use the rules of the TM's source language. For Arabic, Armenian, Basque, Catalan, Danish, Dutch, English, Finnish, French, German, Greek, Hindi, Hungarian, Indonesian, Irish, Italian, Lithuanian, Nepali, Norwegian, Portuguese, Romanian, Russian, Serbian, Spanish, Swedish, Tamil, Turkish and Yiddish, words are reduced to their stem (saving, saved and saves all match save) and common words such as the or of are ignored. For other languages, words are matched as written, ignoring case, and no word is ignored.