I’m attempting to filter out of ditto results a portion of docs in the middle of the result set. The tv I’m working with is ’courseid’. The results go from 100 level courses to 999. Then there are letter courseids that show up at the end like MIF, PP, etc. So without a filter the results are like this
100
200
300...
...999
AAA
BBB
CCC
etc.
I want the following removed from the ditto results
courseid <= 999 && courseid >= 600
As far as I can tell there is no way to perform an AND using the ditto filter. What am I missing?
Thanks
Currently, there is no support for native AND filtering. Please file a ticket in the bugtracker (use the link in my signature).
If you need it ASAP, you could write it as a quick custom filter. See the example extender for more information.
Mark,
I submitted to the bug tracker.
Can you help me with writing a custom filter? Is there any wiki info on that?
Thanks,
-bryan
Take a look at the example extender. It has an example custom filter that should get you started.
Mark
I did start looking over the example extender. Looking at the code, I think there’s a steep learning curve in understanding extenders. That’s why I was asking if there is any tutorials or wiki pages to help make the leap a bit smaller.
Is there any additional help you can offer?
Thanks
Hi,
that’s weird that you cannot achieve this result with the existing filters
your request is => documents where 600 <= courseid <= 999
&filter=`courseid,600,5|courseid,999,6`
Perhaps I’m missing the point but I guess this should do the trick
:-)
I will give this a try because I have this kind of features in tvExplorer where you can define RANGE to search values beetwen two values.
In your case courseid between [600-999].
I will let you know if I get a solution.
:-)
heliotrope
Wondering if you were able to come up with anything yet?
Thanks