Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hi,
We are using Integrity 11.0.0.506.
In Workflow and Documents I would like to find all items where the "Summary" field contains "pca"
The query is -> Summary contains "pca"
But the result is incorrect
It returns only the item where Summary is exactly equal to "pca" ?!
It is missing the items where "pca" is in the middle or at the beginning of the Summary field text
Please see the attached image.
Only if I write the query as -> Summary contains "pca*" , then I get the expected result
Solved! Go to Solution.
The LIKE keyword perform the search without indexes for the exact text including characters that would not be found normally. There's a more detailed explanation of the keywords you can use in searches in the Help Center, under User Help > Tracking Changes With Integrity Lifecycle Manager Items > Searching for Items > Enhancing a Text Search for Items Using Operators
The contains search will search the text field for any word that matches. In your example, "pca" will match "pca" but it would also match "pca project" "what is pca for" and so on. It does not match parts of words, though, unless you use the wildcard.
Hi,
Can you tell me why these queries:
Summary contains "(pca"
Summary contains "_pca"
Summary contains "[pca"
Summary contains "{pca"
also match the "pca" string ?
The characters ( _ [ { are all word or token breakers. When a table is indexed for text searching, the database breaks up the text into tokens using the defined token breakers. The defined list of token breakers depends on the language and database, but in the list usually includes any punctuation and spaces. The tokens are indexed - so in your case each search would find "pca" since the punctuation character will be ignored.
For more information:
Another case:
If a query is written like: Rubric contains "_IN" , the result is incorrect, nothing is returned
Only if the query is written like: Rubric contains "LIKE _IN", the result is correct.
Please see the attached image.
This detail is mentioned here:
The LIKE keyword perform the search without indexes for the exact text including characters that would not be found normally. There's a more detailed explanation of the keywords you can use in searches in the Help Center, under User Help > Tracking Changes With Integrity Lifecycle Manager Items > Searching for Items > Enhancing a Text Search for Items Using Operators