Search for contractions and expansions together - can't & cannot etc

Does anyone have any suggestions on how I can set search up to find both the contractions and expansions of words.
For eg.
Searching for can’t should return both can’t and cannot
Similarly, searching for cannot should return both results
Have tried wordforms to map can’t > cannot but had no luck. For some reason I do not get both results. Wonder if it is because of the apostrophe.

Any suggestions?
Thanks

Yes it’s probably the apos, wordforms is applied after tokenizing so has probably been taken as a separator as per charset_table.

You might be able to add the apos to charset_table, but beware of side effects.

Possibly exceptions would be worth looking at, similar to wordforms, but applied before tokenizing so can include chars otherwise treated as seperators

1 Like