> ## 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.

# SearchCriterion table

> Criteria storage for Selection and other Find mechanisms

## SearchCriterion Table (203)

Criteria storage for Selection and other Find mechanisms

## Fields

| Name                      | Description                                                                                                                                        | Type                                                    | Nullable |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | :------: |
| SearchCriterion\_id       | Primary key                                                                                                                                        | PK                                                      |    No    |
| SearchCriteriaGroup\_id   | Owning group                                                                                                                                       | FK [SearchCriteriaGroup](./searchcriteriagroup.mdx)     |    No    |
| criterionId               | Usually DbFieldId of field to be searched                                                                                                          | FieldId                                                 |    No    |
| extraId                   | Extra info, forms part of the internal unique identification of the criterion                                                                      | Id                                                      |    Yes   |
| udefIdentity              | Extra info for searching udef fields, to keep track of actual field across layout changes                                                          | Id                                                      |    Yes   |
| operatorId                | Operator ID                                                                                                                                        | Enum [CriterionOperator](./enums/criterionoperator.mdx) |    No    |
| linkType                  | Link type, AND or OR                                                                                                                               | Enum [CriterionLinkType](./enums/criterionlinktype.mdx) |    No    |
| active                    | Should this criterion be executed                                                                                                                  | UShort                                                  |    No    |
| rank                      | Ordering within this group                                                                                                                         | 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    |
| columnName                | Column name from archive provider in NetServer/SIX.web                                                                                             | String(254)                                             |    Yes   |
| operatorName              | Operator name from archive provider                                                                                                                | String(254)                                             |    Yes   |
| uniqueKey                 | Unique key (hash) from ArchiveRestrictionInfo                                                                                                      | Id                                                      |    Yes   |
| parenthesis               | Parenthesis value, positive is number of opening parentheses to prepend to this criterion, negative is the number of closing parentheses to append | Short                                                   |    Yes   |

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

## Indexes

| Fields                  | Types       | Description |
| ----------------------- | ----------- | ----------- |
| SearchCriteriaGroup\_id | FK          | Index       |
| columnName              | String(254) | Index       |

## Relationships

| Table                                          | Description                                                        |
| ---------------------------------------------- | ------------------------------------------------------------------ |
| [associate](./associate)                       | Employees, resources and other users - except for External persons |
| [SearchCriteriaGroup](./searchcriteriagroup)   | Criteria storage for Selection and other Find mechanisms           |
| [SearchCriterionValue](./searchcriterionvalue) | Criteria storage for Selection and other Find mechanisms           |

## 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

- [SearchCriterionValue table](/en/database/tables/searchcriterionvalue.md)
- [Typical search](/en/api/search/find-selection/typical-search.md)
- [SearchCriteriaGroup table](/en/database/tables/searchcriteriagroup.md)
- [Enum values for CriterionOperator](/en/database/tables/enums/criterionoperator.md)
- [Dynamic selections](/en/api/search/selection/dynamic-selections.md)
- [Enum values for CriterionLinkType](/en/database/tables/enums/criterionlinktype.md)
