saadaamir wrote: ↑22 May 2024, 21:09
Hi,
how does the "contains" filter exactly work in filtering.
For example if i have the string "User experience" and im filtering the "notes" field with it.
Will it only find the notes with the entire string "User experience" or with either "user Snow Rider 3D" or "experience" or both.
The "contains" filter typically works by checking if the specified substring appears anywhere within the target string. Here’s how it generally functions:
Exact Match: If you filter with "User experience", it will match any string that contains the exact phrase "User experience", including variations in case (if case sensitivity is not enforced).
Partial Matches: It will also find notes that contain either "User", "experience", or both as long as they appear in that order within the string. For example:
"User experience" (exact match)
"This is a User experience" (contains "User")
"Experience is key to User satisfaction" (contains "experience")
Case Sensitivity: Depending on the implementation, the filter may or may not be case-sensitive. In many systems, "user" and "User" would be treated the same, but in others, they could be different.
In summary, the "contains" filter will match any string that includes the substring "User experience" in its entirety or either of the words "User" or "experience" if they appear in that order.