> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SearchCriteriaGroup table

> Criteria storage for Selection and other Find mechanisms

## SearchCriteriaGroup Table (202)

Criteria storage for Selection and other Find mechanisms

## Fields

| Name                      | Description                                             | Type                                                              | Nullable |
| ------------------------- | ------------------------------------------------------- | ----------------------------------------------------------------- | :------: |
| SearchCriteriaGroup\_id   | Primary key                                             | PK                                                                |    No    |
| SearchCriteria\_id        | Owning model                                            | FK [SearchCriteria](./searchcriteria.mdx)                         |    No    |
| name                      | The name of this criteria group                         | String(254)                                                       |    No    |
| textId                    | Extra information (descriptive) for this Criteria Group | FK [text](./text.mdx)                                             |    Yes   |
| direction                 | 0 = Add, 1 = Subtract this group from the total result  | Enum [CriteriaGroupDirection](./enums/criteriagroupdirection.mdx) |    No    |
| rank                      | Rank order within this CriteriaModel                    | UShort                                                            |    No    |
| active                    | Should this group be executed                           | UShort                                                            |    No    |
| registered                | Registered when                                         | UtcDateTime                                                       |    No    |
| registered\_associate\_id | Registered by whom                                      | FK [associate](./associate.mdx)                                   |    No    |
| updated                   | Last updated when                                       | UtcDateTime                                                       |    No    |
| updated\_associate\_id    | Last updated by whom                                    | FK [associate](./associate.mdx)                                   |    No    |
| updatedCount              | Number of updates made to this record                   | UShort                                                            |    No    |

<img src="https://mintcdn.com/superofficeas/3ZhivzBeXAvFeVZx/media/loc/en/database/tables/SearchCriteriaGroup.png?fit=max&auto=format&n=3ZhivzBeXAvFeVZx&q=85&s=193e7fe6732c1de622a2c147fb83dfeb" alt="SearchCriteriaGroup table relationship diagram" width="911" height="855" data-path="media/loc/en/database/tables/SearchCriteriaGroup.png" />

## Indexes

| Fields                   | Types      | Description |
| ------------------------ | ---------- | ----------- |
| SearchCriteria\_id, rank | FK, UShort | Index       |

## Relationships

| Table                                | Description                                                        |
| ------------------------------------ | ------------------------------------------------------------------ |
| [associate](./associate)             | Employees, resources and other users - except for External persons |
| [SearchCriteria](./searchcriteria)   | Criteria storage for Selection and other Find mechanisms           |
| [SearchCriterion](./searchcriterion) | Criteria storage for Selection and other Find mechanisms           |
| [text](./text)                       | Long text fields from all over the system                          |

## Replication Flags

* Area Management controlled table. Contents replicated to satellites and traveller databases.
* Replicate changes UP from satellites and travellers back to central.
* Copy to satellite and travel prototypes.

## Security Flags

* No access control via user's Role.


## Related topics

- [SearchCriteria table](/en/database/tables/searchcriteria.md)
- [SearchCriterion table](/en/database/tables/searchcriterion.md)
- [Typical search](/en/api/search/find-selection/typical-search.md)
- [Enum values for CriteriaGroupDirection](/en/database/tables/enums/criteriagroupdirection.md)
- [Dynamic selections](/en/api/search/selection/dynamic-selections.md)
- [text table](/en/database/tables/text.md)
