Closed syphax-bouazzouni closed 2 years ago
see https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-regex
One of the use case, is for doing a simple terms search with out using the solr indexing
Using the Students test data
f = Goo::Filter.new(:name).regex("n") # will find all students that contains "n" in there name st = Student.where.filter(f).all # return "John" , "Daniel" and "Susan"
What is the SPARQl REGEX filter
see https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#func-regex
Why
One of the use case, is for doing a simple terms search with out using the solr indexing
How to use it
Using the Students test data