One of the possible use cases is for doing the search of a simple term without using the Solr indexing and instead directly using the SPARQL regex filter.
f = Goo::Filter.new(:name).regex("n") # will find all students that contain "n" in their name
st = Student.where.filter(f).all # return "John", "Daniel" and "Susan"
Changes
Add the regex filter helper
Update query_filter_sparql to handle the REGEX filter
What is the SPARQL REGEX filter
see https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-regex
Why
One of the possible use cases is for doing the search of a simple term without using the Solr indexing and instead directly using the SPARQL regex filter.
How to use it
Using the Students test data
Changes