pixie icon indicating copy to clipboard operation
pixie copied to clipboard

Custom search operators

Open hastom opened this issue 8 years ago • 2 comments

Hi,

I want to add some custom operators to where method (like more flexible between that adapts if there is only one value in array) and support for literal operators like 'ge' (>), 'le'(<) and others. So I extended QueryBuilderHandler class and overrided "where" and "orWhere" methods. Everything worked fine until I tried to use my custom operators inside nested criteria. I figured out that it happens because NestedCriteria class extends QueryBuilderHandler and not my custom class. I cannot extend it too because its injected inside BaseAdapter and I dont want to extend everithing..

May be im doing something wrong? Any ideas?

hastom avatar Oct 10 '17 17:10 hastom

You're not doing wrong, that's a limitation of the lib. Can you please come up with a list of operators you would like have added?

usmanhalalit avatar Nov 18 '17 11:11 usmanhalalit

And a simple example can be helpful

eL-Prova avatar Feb 05 '18 07:02 eL-Prova