Forum Academy Marketplace Showcase Pricing Features

Contains Keywords matching rules

“Contains keywords” seems to be case-insensitive. If I search for “note” or “Note”, I get matches on “note” and “Note”

“Contains keywords” seems to do partial word matches but I can’t work out the rules. If I search for:
“note”, I get matches on “note” and “notes”
“not”, I don’t get any matches (some minimum number of characters?)
“notes”, both “note” and “notes” match ???
“notesi”, I don’t get any matches as you’d expect

The reference documentation I can find is very high level. Could someone tell me where I can find the exact set of word matching rules “Contains keywords” uses?

Thanks for any help you can give.

Hi @alan5 ,

My experience has been that “contains keyword(s)” returns:

  • whole words only
  • words in any order
  • case insensitive words

“Contains” requires:

  • partial words
  • words need be in precise order
  • case sensitive words

Hope this helps :+1:t2:

1 Like

Thanks for the reply.
This is getting even more odd. I did the original partial word match tests on a multiline text field. That shouldn’t make any difference but I tried them on a ordinary text field and got only whole word match. Then I tried it again on a different multiline text field and got only whole word match. So, I reran the tests on the original multiline field and still got a strange, sort-of partial word match. I checked the field definitions and the search constraints but they look the same. I noted this in my personal log rather than spending more time on this. It’s probably some kind of strange “corner” case I’ve accidentally stumbled on.

I’ll proceed as if “contains keywords” is case-insensitive and does only whole word searches.

I reported this behavior as a bug to Bubble. If it’s not just some flakiness in my app, it sufficiently obscure that it would involve a lot of hair-pulling before others understood the problem.

We must, indeed, all hang together or, most assuredly, we shall all hang separately.
- Benjamin Franklin

Here are some tests I’ve run:

“test” has the following text “test desc note sum”
“test2” has the following text “tests description notes summary”

When I enter the following input to a constraint with Contains Keyword(s):
“test” matches test and test2
“tests” matches test and test2

“desc” matches test
“descr” matches nothing
“desciption” matches test2

“note” matches test and test2
“notes” matches test and test2

“sum” matches test
“summ” matches nothing
“summary” matches test2