🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by DancesWithWords Wed, 28 Oct 1998 00:00
filters??? for Gravity 2.1
#44112
Author: DancesWithWords
Date: Wed, 28 Oct 1998 00:00
19 lines
923 bytes
Hi,

I would like to create a filter, but I'm good at this so maybe one of you 
could help.

This is what I would like.

I want to exclude the words X, Y, Z etc. and include the words A, B, C 
etc.

I know this is probably simple, but I can't figure it out.

Thanks,

-- 
Ciao
DancesWithWords

Re: filters??? for Gravity 2.1
#44122
Author: Tom B.
Date: Thu, 29 Oct 1998 00:00
41 lines
1689 bytes
DancesWithWords posted ...

> Hi,
> 
> I would like to create a filter, but I'm good at this so maybe one of you 
> could help.
> 
> This is what I would like.
> 
> I want to exclude the words X, Y, Z etc. and include the words A, B, C 
> etc.
> 
> I know this is probably simple, but I can't figure it out.
> 

If I understand right you are setting up a display filter that 
only shows A,B,C in the subject.

There is no need to exclude X,Y,Z because they and everything not 
containing A,B,C are excluded if you use the following filter.

Under "newsgroup" - "define display filter"- "new"
go to advanced conditions.

1. select subject contains and enter A
2. click Add Condition
3. click OR

Repeat these steps for B and C but leave off OR after C.

Conversely, if you are trying to exclude certain words use 
"subject does not contain x" from the drop down list and use OR 
between expressions. If you need to use case-sensitive words then 
you must use regular expressions.

-- 

     Tom B.   NAPLES, FL
     nfn03862@naples.net

Re: filters??? for Gravity 2.1
#44151
Author: DancesWithWords
Date: Fri, 30 Oct 1998 00:00
79 lines
2843 bytes
[This followup was posted to news.software.readers and a copy was sent to 
the cited author.]

In article <MPG.10a1992446d8e0bc98980e@news.naplesfl.net>, 
nfn03862@naples.net says...
> DancesWithWords posted ...
> 
> > Hi,
> > 
> > I would like to create a filter, but I'm good at this so maybe one of you 
> > could help.
> > 
> > This is what I would like.
> > 
> > I want to exclude the words X, Y, Z etc. and include the words A, B, C 
> > etc.
> > 
> > I know this is probably simple, but I can't figure it out.
> > 
> 
> If I understand right you are setting up a display filter that 
> only shows A,B,C in the subject.
> 
> There is no need to exclude X,Y,Z because they and everything not 
> containing A,B,C are excluded if you use the following filter.
> 
> Under "newsgroup" - "define display filter"- "new"
> go to advanced conditions.
> 
> 1. select subject contains and enter A
> 2. click Add Condition
> 3. click OR
> 
> Repeat these steps for B and C but leave off OR after C.
> 
> Conversely, if you are trying to exclude certain words use 
> "subject does not contain x" from the drop down list and use OR 
> between expressions. If you need to use case-sensitive words then 
> you must use regular expressions.
> 
> 
Well this was a filter I tried to create in the above note.  My aim was 
to exclude Variations of US, engineer, Senior etc while on the other hand 
include the words Ottawa, web, web designer etc.

As you can see I'm trying to build a filter for a job search.  Maybe I'm 
approaching this from the wrong point of view.  As I said I'm not so good 
at this.

I was trying to use "not" to mean I don't want it to show up in my 
results at these do show if I just use the "contains" Ottawa, Web, Web 
Designer etc....


Not
   (
   Subject contains "US"
   Or
   Subject contains "U.S."
   Or
   Subject contains "u.s."
   Or
   Subject contains "us"
   Or
   Subject contains "engineer"
   Or
   Subject contains "senior"
   )
Or
Subject contains "ottawa"
Or
Subject contains "web"
Or

-- 
Ciao
DancesWithWords

Re: filters??? for Gravity 2.1
#44154
Author: Tom B.
Date: Fri, 30 Oct 1998 00:00
71 lines
2422 bytes
DancesWithWords posted ...

 [ snip ] 
> Well this was a filter I tried to create in the above note.  My aim was 
> to exclude Variations of US, engineer, Senior etc while on the other hand 
> include the words Ottawa, web, web designer etc.
> 
> As you can see I'm trying to build a filter for a job search.  Maybe I'm 
> approaching this from the wrong point of view.  As I said I'm not so good 
> at this.
> 
> I was trying to use "not" to mean I don't want it to show up in my 
> results at these do show if I just use the "contains" Ottawa, Web, Web 
> Designer etc....
> 
> 
> Not
>    (
>    Subject contains "US"
>    Or
>    Subject contains "U.S."
>    Or
>    Subject contains "u.s."
>    Or
>    Subject contains "us"
>    Or
>    Subject contains "engineer"
>    Or
>    Subject contains "senior"
>    )
> Or
> Subject contains "ottawa"
> Or
> Subject contains "web"
> Or
> 

This looks like you are barking up the right tree.
First, case doesn't matter so, 'us' will find 'us' or 'US'.

I would leave off the ending "OR" (there is no following 
condition) and change the operator between the "does contain " and 
"does not contain" to AND. Finally, I would list the positives 
first enclosed in parentheses like this (ok I'm being picky but it 
makes it easier to understand):

(
   Subject contains "ottawa"
   Or
   Subject contains "web"
)

And
Not
   (
   Subject contains "us"
   Or
   Subject contains "u.s."
   Or
   Subject contains "senior"
   )
 

This should do it. By the way, if you are familiar with Gravity's 
scoring system, it is great for this type of thing.
-- 

     Tom B.   NAPLES, FL
     nfn03862@naples.net

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads