|
|
Russell Jurney 2010-09-26, 17:50
How do you filter a relation by a field NOT matching a regex?
You would think this would work, but it does not: B = FILTER A BY field_foo NOT matches 'test'
Russ
Thejas M Nair 2010-09-27, 12:19
On 9/26/10 10:50 AM, "Russell Jurney" <[EMAIL PROTECTED]> wrote:
> How do you filter a relation by a field NOT matching a regex?
B = FILTER A BY NOT(field_foo matches 'test');
> > You would think this would work, but it does not: B = FILTER A BY field_foo > NOT matches 'test'
Yes, I think it would make sense to support this sytnax as well. It is more readable. It already supports 'is not null', so this will be consistent.
> > Russ >
Russell Jurney 2010-09-27, 18:16
Thanks! Yes, supporting both ways would be cool.
On Mon, Sep 27, 2010 at 5:19 AM, Thejas M Nair <[EMAIL PROTECTED]> wrote:
> > > > On 9/26/10 10:50 AM, "Russell Jurney" <[EMAIL PROTECTED]> wrote: > > > How do you filter a relation by a field NOT matching a regex? > > B = FILTER A BY NOT(field_foo matches 'test'); > > > > > You would think this would work, but it does not: B = FILTER A BY > field_foo > > NOT matches 'test' > > Yes, I think it would make sense to support this sytnax as well. It is more > readable. It already supports 'is not null', so this will be consistent. > > > > > Russ > > > > >
Brian Adams 2010-11-11, 21:43
Doing a NOT matches of a pattern?
Can you just do a FILTER A BY NOT (matches 'pattern');
Or NOT matches 'pattern';
I have a list of bad words I DO NOT want to match and I am unsure how to do this with the few hundred words I have.
|
|
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by
Sematext