Gossamer Forum
Quote Reply
Stop words
"Stop words" seem only to work with the indexed search. How do I get stop words to work for the non-indexed search?

Thanks,

Didi

Quote Reply
Re: Stop words In reply to
can anyone answer this one please?

Quote Reply
Re: Stop words In reply to
This may be something Alex has to address. I have not looked or worked with the search-ni script at all. It would seem to me that all you would have to do is prepare the search term, and compare it to the stop-words list. I wonder why this isn't being done already, -- and it might supposed to be.

Alex/GT has been roughing it for awhile, hopefully things will start to get back to normal for them. I know I had over 2 months of rough goings, and it's just starting to settle down for me.

Sometimes, life gets into the way of being on-line, and it's hard for the on-line portion of the world to know that.


PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: Stop words In reply to
Hi,

You would need to modify search.cgi around line 285:

my $term = $terms->[$i];
($term eq '-') and ($term = '-' . $terms->[++$i]);
($term eq '+') and ($term = '+' . $terms->[++$i]);

add:

next TERM if $STOPWORDS{$term};

and define your list of stopwords in the file. I'll look at centralizing this for future versions.

Cheers,

Alex

--
Gossamer Threads Inc.