jirutka/rsql-parser

Is it possible to add a complete example for a custom operator?

AhmadAbdelghany opened this issue · 3 comments

For the sake of completeness, would it be possible to give a complete example of a custom operator in the documentation?
I understand that semantics of the operator is not a concern of the parser, so my request should really be directed to rsql-jpa. I just could not find a way to open an issue on their project.

It is already here...

So I have created custom operator "=all=" or "=subString=" so it is parsable. How do I define the what happens when the operator is executed? How to map it a predicate?

Small suggestion for jirutka - or some trying out custom operators in rsql: After adding an operator to the default set, be sure to call the parser constructor with the modified set as an operand.

Great parser by the way.