Currently, if you type something like "check pay" in the "contains" filter in the translation interface, the results only show strings like "*check pay*". Far more useful would be to treat each (space separated) word as a single search term, and match any string like "*check*pay*" or "*pay*check*".

Also, it would be great to be able to use boolean filters like this: (Sorry, I'm trying to translate ubercart...) "check -checkout", to match any string which doesn't include "checkout", but which does include "check".

Lastly, it would be good to *optionally* be able to search for phrases, by surrounding them with quotes, so that the old behaviour can be emulated.

Comments

naught101’s picture

it would also be to be able to search for words like "the" without finding words like "weather". If the phrase option came in, it would be possible to search for " the " (with spaces), but that doesn't work when the word is surrounded by punctuation.

I wonder if it might be possible to have a basic regexp formatting? \b for word boundary would fix this particular problem.

gábor hojtsy’s picture

To implement this, we'd actually need something like an actual text search backend, where all this information can be indexed. Applying rules of certain languages (like word splitting for Chinese) are interesting subtasks there as well.

gábor hojtsy’s picture

Title: multiple terms, phrases and boolean operators in "contains" filter » Add multiple terms, phrases and boolean operator support in "contains" filter

Given the complexity of this one, I think it looks unlikely that this will be implemented soon.

gábor hojtsy’s picture

Added #1118430: Set up the filtering/display setting UI for future growth to set us up for filter extensions like this.