Note: This documentation is for an old version of Webinator. The latest documentaion is here.

Set word expression (-k)

Syntax: -k"expr"

Sets the word matching expression for -index to EXPR. EXPR is a REX expression defining what is considered a word during the index process. The default expression is "\alnum{2,30}", which means from 2 thru 30 alphanumeric characters. You may specify -k multiple times to define multiple expressions if you can't define your idea of a word in one expression. When using -k the default expression is not used so you will have to specify it if you want it in addition to whatever you are adding.

To change the expression on an already indexed database, you will have to use -unindex followed by a -index' and the desired \verb-k` option(s).

e.g.: ``gw -k">>\alpha=\alnum{1,20}"'' will index ``words'' beginning with an alphabetic character followed by 1 to 20 alphabetic or numeric characters.


Copyright © Thunderstone Software     Last updated: Tue Nov 6 10:58:47 EST 2007
Copyright © 2024 Thunderstone Software LLC. All rights reserved.