Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the REGEX filter #115

Closed
wants to merge 0 commits into from
Closed

Conversation

syphax-bouazzouni
Copy link

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

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant