--- hide: - footer --- # Filters Filters are a way to isolate specific titles in a search result, and apply `results` to them based on `conditions`. ```json hl_lines="6-10" { "group": "Bomberman GB 2", "titles": [ { "searchTerm": "Bomberman GB 2", "filters": [ { "conditions": {"matchRegions": ["Japan"]}, "results": {"group": "Bomberman GB"} } ] } ] } ``` In the previous example the `searchTerm` of `Bomberman GB2` finds all titles with the short name `Bomberman GB2`, and gathers them in the `Bomberman GB2` group. If the region of a title happens to include `Japan`, then that title is moved to the group `Bomberman GB` instead. Because the `filters` key is an array, you can add as many conditions and results pairs as you like. The valid conditions are:
| Key | Type | Description |
|---|---|---|
matchLanguages |
array[str] |
Optional. A list of languages using ISO-639-1 two-letter language codes, that a title must match for the condition to be true. ```json "conditions": { "matchLanguages": ["Fr", "Nl" , "Sv", "No", "Da", "Fi"] } ``` |
matchRegions |
array[str] |
Optional. A list of regions that a title must match for the condition to be true. ```json "conditions": { "matchRegions": ["Europe", "Japan"] } ``` |
matchString |
str |
Optional. A regex string that must match against the title's full name for the condition to be true. ```json "conditions": { "matchString": "\\(Special Edition\\)" } ``` |
regionOrder |
obj[str[array[str]]] |
Optional. A list of regions that must be higher than others in the user's region priority for the condition to be true. If any of the regions in the You can also use |
| Key | Type | Description |
|---|---|---|
categories |
array[str] |
Optional. A category is a class of titles, like Demos, Games, and Multimedia. Multiple categories can be assigned to a title, and existing categories are overridden. |
englishFriendly |
bool |
Optional, defaults to |
group |
str |
Optional. The group value is used as the new
group name and
short name for all the titles
that match the filter. |
isOldest |
bool |
Optional, defaults to |
superset |
bool |
Optional. Designates the title as a superset. Supersets are variants of titles that contain more content, or for some reason are superior to another version. This might include, for example, a Game of the Year edition, an all-in-one pack that bundles a game and all its DLC, or a DVD version of a title previously released on multiple CDs. |
localNames |
object[str, str] |
Optional. Contains the local names of a title. Add names for all available languages, including English. Language keys must be lowercase versions of languages found in the
See Local names for more information on specifying local names. |
priority |
int |
Optional, defaults to Priorities for |