[EOL] Support full-text search in string attributes
Migrated from Bugzilla:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=560844
Suggested by Gwendal.
We already use Lucene internally in our backends to support search over integer ranges and boolean values. We have an overloaded version of the .select operation which automatically replaces comparisons with queries to the indexes. However, we do not have anything for full-text search.
Ideally, we'd want to support replacing queries like this with a Lucene search:
Type.all.select(t|t.strAttribute.contains("foo"))
Of course, this could easily get a bit hairy if we wanted something more complicated, e.g. Boolean expressions combining these or fuzzy matching, but this basic case could help as a building block.
We'd need to check how to support this type of full-text search in our backend APIs as well: the query above could be replaced with a .query("foo") call to the node index, but we'd need to test how it performs.