--- title: "Search junction" slug: "core-search-junction" updated: 2026-05-19T11:57:41Z published: 2026-05-19T11:57:41Z canonical: "docs.lobstersoftware.com/core-search-junction" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Search junction The [Search junction](/v1/docs/en/core-search-junction) is a *type of restriction* that is used to logically link Boolean return values from other [Restrictions](/v1/docs/en/core-i-search-restriction). The [Search junction](/v1/docs/en/core-search-junction) is required when configuring [Restrictions](/v1/docs/en/core-i-search-restriction) in **Lobster Data Platform/Orchestration** in the following cases: | Use case | Logic | Example | | --- | --- | --- | | **AND** junction (Conjunction) from at least two [Restrictions](/v1/docs/en/core-i-search-restriction) | The AND junction returns `true` if all linked [Restrictions](/v1/docs/en/core-i-search-restriction) return `true`. *Alternative Definition:* The AND junction returns `false` if at least one of the linked [Restrictions](/v1/docs/en/core-i-search-restriction) returns `false`. --- In the graphical editor (see right), the [Restrictions](/v1/docs/en/core-i-search-restriction) are arranged one above the other within an AND junction. The arrangement demonstrates that the **Rule passed** result is only achieved if all [Restrictions](/v1/docs/en/core-i-search-restriction) are completed from top to bottom (i.e. with the partial result "Rule passed"). Failure to pass a single one of the linked [Restrictions](/v1/docs/en/core-i-search-restriction) causes a branch to the right to the overall result **Rule failed**. | ![images/download/attachments/162410197/image-2024-1-15_9-36-16-version-1-modificationdate-1705307776129-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-15_9-36-16-version-1-modificationdate-1705307776129-api-v2.png) This [Search junction](/v1/docs/en/core-search-junction) is considered passed for entities whose `active` property contains the value `true` AND whose `ownerId` contains the value `1066`. | | **OR** junction (Disjunction) from at least two [Restrictions](/v1/docs/en/core-i-search-restriction) | The OR junction returns `true` if at least one of the linked [Restrictions](/v1/docs/en/core-i-search-restriction) returns `true`. *Alternative Definition:* The OR junction returns `false` if all linked [Restrictions](/v1/docs/en/core-i-search-restriction) return `false`. --- In the graphical editor (see right), the [Restrictions](/v1/docs/en/core-i-search-restriction) appear next to each other within an OR junction. The arrangement demonstrates that the result **Rule failed** is only achieved if all [Restrictions](/v1/docs/en/core-i-search-restriction) are completed from left to right (i.e. with the partial result "Rule failed"). Passing a single one of the linked [Restrictions](/v1/docs/en/core-i-search-restriction) results in the overall result **Rule passed**. | ![images/download/attachments/162410197/image-2024-1-15_9-37-59-version-1-modificationdate-1705307879638-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-15_9-37-59-version-1-modificationdate-1705307879638-api-v2.png) This [Search junction](/v1/docs/en/core-search-junction) is considered passed for entities whose active property contains the value `true` AND whose `ownerId` contains the value `1066`. | | **Negation** (Negation) a restriction | The return value of a *restriction* can be "negated" – i.e. "logically reversed". The "negation" therefore returns `true` instead of `false` and vice versa. **IMPORTANT:** Technically, **Lobster Data Platform/Orchestration** only provides for the *negation* of [Restrictions](/v1/docs/en/core-i-search-restriction) for the [Search junction](/v1/docs/en/core-search-junction) *restriction type*. All other types of [Restrictions](/v1/docs/en/core-i-search-restriction) can only be negated indirectly by using them within a negated [Search junction](/v1/docs/en/core-search-junction). --- In the graphical editor, the negation is indicated by the symbol ( **!** ) at the bottom of the [Search junction](/v1/docs/en/core-search-junction). In addition, the text character "!" also appears as a prefix in front of the link type in the title bar of the [Search junction](/v1/docs/en/core-search-junction) (*in the image on the right*: "!AND") | ![images/download/attachments/162410197/image-2024-1-15_9-38-52-version-1-modificationdate-1705307932648-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-15_9-38-52-version-1-modificationdate-1705307932648-api-v2.png) This [Search junction](/v1/docs/en/core-search-junction) is considered passed for entities for which the `ownerId` projection does NOT return the value 1066 - i.e. either no value (`$null`)) or a *different* value. | ## Configuration The editor for [Restrictions](/v1/docs/en/core-i-search-restriction) is based on the [Rule editor](/v1/docs/en/orchestration-rule-editor) in terms of appearance and function when it comes to creating logical aggregates. The *rules* (see [Rules and values](/v1/docs/en/orchestration-rules-resolvers)) in the [Rule editor](/v1/docs/en/orchestration-rule-editor) correspond to the [Restrictions](/v1/docs/en/core-i-search-restriction). The [Search junction](/v1/docs/en/core-search-junction) corresponds to the [Junction](/v1/docs/en/core-rule-junction) (`RuleJunction`) for rules. A [Search junction](/v1/docs/en/core-search-junction) (`SearchJunction`) is created automatically if this is required to add a restriction or a negation to an existing configuration. Technically, a [Search junction](/v1/docs/en/core-search-junction) (or the `SearchJunction` entity type) has the following properties: | Property | Data type | Usage | | --- | --- | --- | | **Required expressions** `requiredExpressions` | `Object[]` | The "Required expressions" property is used to list the [Restrictions](/v1/docs/en/core-i-search-restriction) that are the subject of the [Search junction](/v1/docs/en/core-search-junction). This list can contain any number of instances of any *restriction type*, including further instances of the [Search junction](/v1/docs/en/core-search-junction). | | **Junction type** `0` | Junction type (`JunctionType`) | The static enumeration "Junction type" (`JunctionType`) provides exactly two options: - **AND** (`CONJUNCTION`) → AND junction (see above for details) - **OR** (`DISJUNCTION`) → OR junction (see above for details) | | **not** `not` | `Boolean` | If the `Boolean` value `true` is assigned to the "not" (`not`) indicator, the return value from the link is "negated". The default value is `false` (no negation). | The technical structure of the [Search junction](/v1/docs/en/core-search-junction) is only relevant if a [Search junction](/v1/docs/en/core-search-junction) is created, changed or "read" using automation or if the interactive function "Edit as XML" is used to manipulate a [Search junction](/v1/docs/en/core-search-junction). In contrast, the following table shows typical interactive configuration operations for the [Search junction](/v1/docs/en/core-search-junction) using very simple examples. These operations can be used to create logical aggregates of any complexity by nesting. | Starting situation | → ![images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/34-20e3.svg](https://www.lobster-world.com/online/ldp/docs/25.0/en/orchestration/images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/34-20e3.svg?c1757871057647) a Setting up an OR junction | → ![images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/35-20e3.svg](https://www.lobster-world.com/online/ldp/docs/25.0/en/orchestration/images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/35-20e3.svg?c1757871057647) a - Result | ← ![images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/36-20e3.svg](https://www.lobster-world.com/online/ldp/docs/25.0/en/orchestration/images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/36-20e3.svg?c1757871057647) a+b: Reversal | | --- | --- | --- | --- | | To define a *restriction*, the various editors always use a parameter for a *value configuration*, the name of which can vary depending on the context (e.g. "Where" condition or "Restriction"). In the [Search builder](/v1/docs/en/administration-system-search-builder), for example, this affects the value for the **Where** condition within the configured search: --- ![images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/31-20e3.svg](https://www.lobster-world.com/online/ldp/docs/25.0/en/orchestration/images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/31-20e3.svg?c1757871057647) ↓ *No restriction applied* ![images/download/attachments/162410197/image-2024-1-15_9-48-34-version-1-modificationdate-1705308514385-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-15_9-48-34-version-1-modificationdate-1705308514385-api-v2.png) --- ![images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/32-20e3.svg](https://www.lobster-world.com/online/ldp/docs/25.0/en/orchestration/images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/32-20e3.svg?c1757871057647) ↓ *Click on the menu icon to open the context menu* ![images/download/attachments/162410197/image-2024-1-15_9-53-15-version-1-modificationdate-1705308796013-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-15_9-53-15-version-1-modificationdate-1705308796013-api-v2.png) --- ![images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/33-20e3.svg](https://www.lobster-world.com/online/ldp/docs/25.0/en/orchestration/images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/33-20e3.svg?c1757871057647) ↓ *An instance of the selected restriction type is added as a value by selection*:![images/download/attachments/162410197/image-2024-1-15_9-47-17-version-1-modificationdate-1705308437426-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-15_9-47-17-version-1-modificationdate-1705308437426-api-v2.png) **NOTE:** A specific configuration for the added [Simple property restriction](/v1/docs/en/core-simple-property-search) is deliberately omitted here. For the following alternative steps (see ![images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/34-20e3.svg](https://www.lobster-world.com/online/ldp/docs/25.0/en/orchestration/images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/34-20e3.svg?c1757871057647) abc), it is only important that any *restriction* already exists. | ![images/download/attachments/162410197/image-2024-1-15_9-41-14-version-1-modificationdate-1705308074459-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-15_9-41-14-version-1-modificationdate-1705308074459-api-v2.png) A click on one of the **OR** diamonds, which appears on the mouse cursor approach to the right or left of each restriction, opens a context menu for selecting the type of restriction to be added or by pasting a copied or cut restriction from the clipboard. | ![images/download/attachments/162410197/image-2024-1-15_9-46-31-version-1-modificationdate-1705308391610-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-15_9-46-31-version-1-modificationdate-1705308391610-api-v2.png) | The context menu options "Cut" or "Remove" delete existing *restrictions* from a configuration. If a [Search junction](/v1/docs/en/core-search-junction) that is not negated (see c) then only contains exactly one *restriction*, the surrounding [Search junction](/v1/docs/en/core-search-junction) automatically disappears from the configuration because it is no longer required. | | → ![images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/34-20e3.svg](https://www.lobster-world.com/online/ldp/docs/25.0/en/orchestration/images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/34-20e3.svg?c1757871057647) b Setting up am AND junction | → ![images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/35-20e3.svg](https://www.lobster-world.com/online/ldp/docs/25.0/en/orchestration/images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/35-20e3.svg?c1757871057647) b - Result | | ![images/download/attachments/162410197/image-2024-1-15_9-42-6-version-1-modificationdate-1705308126733-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-15_9-42-6-version-1-modificationdate-1705308126733-api-v2.png) A click on one of the **AND** diamonds, which appears on mouse cursor approach to the right or left of each restriction, opens a context menu for selecting the type of restriction to be added or by pasting a copied or cut restriction from the clipboard. | ![images/download/attachments/162410197/image-2024-1-15_9-45-50-version-1-modificationdate-1705308350618-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-15_9-45-50-version-1-modificationdate-1705308350618-api-v2.png) | | → ![images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/34-20e3.svg](https://www.lobster-world.com/online/ldp/docs/25.0/en/orchestration/images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/34-20e3.svg?c1757871057647) c Do not select (negation) | → ![images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/35-20e3.svg](https://www.lobster-world.com/online/ldp/docs/25.0/en/orchestration/images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/35-20e3.svg?c1757871057647) c - Result | ← ![images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/36-20e3.svg](https://www.lobster-world.com/online/ldp/docs/25.0/en/orchestration/images/external_images/confluence.lobster.de_8443/scroll-exporter-virtual-download/twemoji/36-20e3.svg?c1757871057647) c Reversal | | ![images/download/attachments/162410197/image-2024-1-15_9-43-22-version-1-modificationdate-1705308202501-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-15_9-43-22-version-1-modificationdate-1705308202501-api-v2.png) | ![images/download/attachments/162410197/image-2024-1-15_9-44-39-version-1-modificationdate-1705308280063-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-15_9-44-39-version-1-modificationdate-1705308280063-api-v2.png) By selecting the **not** option in Step c, a *negated* [Search junction](/v1/docs/en/core-search-junction) (with AND type) containing the original *restriction* was automatically created at the position of the original restriction. This only happens if the original *restriction* is not a [Search junction](/v1/docs/en/core-search-junction). | The [Search junction](/v1/docs/en/core-search-junction) created as the carrier of the negation to be applied does not automatically disappear again when the "not" menu function is used again: - If "not" is selected again in the context menu for the instance of the [Search junction](/v1/docs/en/core-search-junction) that has already been negated, the negation disappears, but the [Search junction](/v1/docs/en/core-search-junction) remains, although with only one *restriction*. - If "not" is selected again for the original *restriction* (*here*: the [Simple property restriction](/v1/docs/en/core-simple-property-search)), an additional [Search junction](/v1/docs/en/core-search-junction) is created. The only way to return to the original state is to select "Cut" for the [Simple property restriction](/v1/docs/en/core-simple-property-search) in order to be able to insert it again after removing the [Search junction](/v1/docs/en/core-search-junction). | **IMPORTANT:** Each instance of the [Search junction](/v1/docs/en/core-search-junction) in turn represents a *restriction* that can be linked or negated with other [Restrictions](/v1/docs/en/core-i-search-restriction) in a parent [Search junction](/v1/docs/en/core-search-junction). The [Search builder](/v1/docs/en/administration-system-search-builder) also provides a tree view for configuring the "Where" condition, in which some of the operations described here can also be carried out. **NOTE:** However, the "not" option for negation is not available via the tree view, but only in the editor. However, for an instance of the [Search junction](/v1/docs/en/core-search-junction) selected in the tree, the negation can be changed to via the **Edit as XML** function. ## Example A search for [Companies/Clients](/v1/docs/en/base-company-account) should list company accounts: - To which the [Company type](/v1/docs/en/base-company-type) "Bill-to party" (INV) is assigned in the "Company type" (`types`) property; - OR for which no parent company is specified in the "Parent companies" (`parentCompanies`) property; - AND for which the [User of session](/v1/docs/en/base-session-user-value) is not registered as the "creator" (`creatorId`). Configuration: The **Where** condition of the search can be set up with the configuration operations described above as shown below. ![images/download/attachments/162410197/image-2024-1-15_9-56-44-version-1-modificationdate-1705309004827-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-15_9-56-44-version-1-modificationdate-1705309004827-api-v2.png) The tree view in the [Search builder](/v1/docs/en/administration-system-search-builder) illustrates the hierarchical structure of this **Where** condition: | At the top level of the "Where" condition there is an instance of the [Search junction](/v1/docs/en/core-search-junction) of the "AND" type, which links two "Required expressions": - Another instance of the [Search junction](/v1/docs/en/core-search-junction) with the "OR" type also links two "Required expressions": - A [Field restriction](/v1/docs/en/core-property-search) checks whether the list field "Company types" (`types`) contains the [Company type](/v1/docs/en/base-company-type) "Bill-to party" (`INV`). - A [Simple property restriction](/v1/docs/en/core-simple-property-search) checks whether the "Parent companies" (`parentCompanies`) property is empty. - Another instance of the [Field restriction](/v1/docs/en/core-property-search) checks whether the "owner" (`creatorId`) property refers to a different user ID than the [User of session](/v1/docs/en/base-session-user-value) value resolver. | ![images/download/attachments/162410197/image-2024-1-15_9-58-6-version-1-modificationdate-1705309086767-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-1-15_9-58-6-version-1-modificationdate-1705309086767-api-v2.png) | | --- | --- |