Contains Word node
Description
The Contains word node takes two inputs. It filters the items in your query by checking if the specified attribute contains the inputted text string, e.g. hello
It's similar to the Attribute search node but has a narrower scope.
| Attribute Search Node | Contains Word Node | |
|---|---|---|
| What attributes can be searched? | All attributes on the design/interface being queried | One specific attribute |
| What can be searched for? | Text, number | Text |
Usage
This node is a condition. It can be added to the query branch directly after the root node or a logical node.
It can be populated with these nodes:
- Attribute (of Text type)
- Text node
- Value From Item Attribute (of Text type)
Options
Select the node to access its options:
-
Swap - use a different comparison node. Any populated segments are kept, which limits the options.
-
Delete - remove the node from the query branch.
-
Link negated - enable this to invert the condition imposed by the node. Items must now fail the condition to be included in the query results.
Example
Fetch all inspections that mention graffiti in the description
In full detail:
Fetch items of the Inspections interface where their Description attribute contains the word graffiti
See JSON code
{
"type": "Query",
"properties": {
"collectionCode": "Live",
"dodiCode": "designInterfaces_inspections"
},
"children": [
{
"type": "WordSearch",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksDescription"
}
},
{
"type": "String",
"properties": {
"value": ["graffiti"]
}
}
]
}
]
}

