astrophe in search

Post Reply
edev
Posts: 127
Joined: Wed Sep 14, 2005 5:10 pm

astrophe in search

Post by edev »

Hi,

is there a way to include astrophe ('), &, #, and period (.) in search?

I tried enabling "post processing" but it did not work.

I read some older posts that mentioned "addexp" in gw, does that still exist in the new version of dowalk?

Thank you in advance for any help you could provide.
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

astrophe in search

Post by Kai »

The equivalent of addexp in version 4+ is the Word Definition setting in All Walk Settings. Each line is a REX expression defining a word, the equivalent of an addexp SQL call.

The standard version 4+ definitions include period, ampersand and apostrophe (see the second definition). You could add the pound sign where appropriate, eg.:

\alnum\x80-\xff.]{1,70}>>[.&'#]=[\alnum\x80-\xff.]{1,70}
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

astrophe in search

Post by mark »

"addexp" is the underlying texis option for setting index word expressions. In gw -k was used to set it. In newer webinators the "word definition" setting controls it. You'll see that the default expressions include one for having . or & or ' embedded in the middle of terms.

There's nothing special about & and . except at the very end of the query where . will always be stripped as a sentence ender.

# is only special at the beginning of a term. To escape it's special meaning there preceed it with backslash (\#).
edev
Posts: 127
Joined: Wed Sep 14, 2005 5:10 pm

astrophe in search

Post by edev »

Where should this definition "\alnum\x80-\xff.]{1,70}>>[.&'#]=[\alnum\x80-\xff.]{1,70}" be added? is it a part of word and langc? should it be included in the search or dowalk script?
edev
Posts: 127
Joined: Wed Sep 14, 2005 5:10 pm

astrophe in search

Post by edev »

Sorry I just saw the word definition settings in "all walk settings" in the dowalk admin screen. Thanks!
Post Reply