Page 1 of 1

astrophe in search

Posted: Mon Jan 16, 2006 10:27 am
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.

astrophe in search

Posted: Mon Jan 16, 2006 10:53 am
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}

astrophe in search

Posted: Mon Jan 16, 2006 10:56 am
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 (\#).

astrophe in search

Posted: Mon Jan 16, 2006 11:15 am
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?

astrophe in search

Posted: Mon Jan 16, 2006 11:20 am
by edev
Sorry I just saw the word definition settings in "all walk settings" in the dowalk admin screen. Thanks!