The editor filter operator functions like a logical 'AND' statement. Here are some examples to demonstrate how this logic will operate in various scenarios:
Example A. When you search for strings with the following criteria:
translated:no (it returns all the untranslated strings)
proofread:no (it returns all the translated strings that haven't been proofread yet)
The system tries to find the intersection of those two sets, and as a result, no strings are returned. The table below outlines all possible string scenarios and the editor's expected behavior based on the filters' criteria.
String example | Translated | Proofread | Results in the search: |
String1 | No | No | This scenario is not possible, so it will show no results. |
String2 | No | Yes | This scenario is not possible, so it will show no results. |
String3 | Yes | No | It will be omitted. |
String4 | Yes | Yes | It will be omitted. |
Example B. if you apply the following filters, for example:
translated:no
issue:open (it returns all the strings with open issues)
The system will return all the untranslated strings with at least one open issue. The table below outlines all possible string scenarios and the editor's expected behavior based on the filters' criteria.
String example | Translated | Issue | Results in the search: |
String1 | No | No | It will be omitted. |
String2 | No | Yes | It will appear in the results. |
String3 | Yes | No | It will be omitted. |
String4 | Yes | Yes | It will be omitted. |
Example C. When you search by any filter (e.g., tags) and want to use this filter for multiple values (e.g., tag:tag1,tag2), the editor will display only the strings that meet the characteristics of all the specified values. Let's say you have the following strings:
String A, which includes tag1
String B, which includes tag2
String C, which includes tag1 and tag2
Using the filter "tag:tag1,tag2" will only show string C, and strings A and B will be excluded from the results because they do not have both tags (tag1 and tag2). The table below outlines all possible string scenarios and the editor's expected behavior based on the filters' criteria.
String example | Contain Tag1 | Contain Tag2 | Results in the search: |
String1 | No | No | It will be omitted. |
String2 | No | Yes | It will be omitted. |
String3 | Yes | No | It will be omitted. |
String4 | Yes | Yes | It will appear in the results. |
Example D. When you search by any filter (e.g., tags_not_contains) and you want to use this filter for multiple values (e.g., tags_not_contains:tag1,tag2), the editor will only show the strings that comply with the multiple values' characteristics. Let's say you have the following strings:
String A, which includes tag1
String B, which includes tag2
String C, which includes tag1 and tag2
Using the filter "tags_not_contains:tag1,tag2" will only show strings A and B because they do not have both tags (tag1 and tag2) assigned, and String C will be excluded from the results. The table below outlines all possible string scenarios and the editor's expected behavior based on the filters' criteria.
String example | Contain Tag1 | Contain Tag2 | Results in the search: |
String1 | No | No | It will appear in the results. |
String2 | No | Yes | It will appear in the results. |
String3 | Yes | No | It will appear in the results. |
String4 | Yes | Yes | It will be omitted. |