indexing numbers

User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

indexing numbers

Post by Thunderstone »





REX docs are at http://www.thunderstone.com/doc/rex.html.

What exactly does "neither seems to work" mean? eg. does the gw -index
command fail, or do subsequent searches not find what you want? Either
expression you gave will match 2 or more digit numbers (as well as
text).

-Kai

User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

indexing numbers

Post by Thunderstone »



One of the things that we're trying to do on our site is index a series
of class course numbers. We would like students to be able to enter the
number 850 and have it bring up the course whose number corresponds to
that. In the documentation it states that you can construct a REX
statement which will specify a pattern to use for a "word", but I can't
find any documentation on REX. I tried indexing with -k">>\alnum{2,50}"
and -k"\alnum{2,50}" but neither one seems to work. Does anyone have any
suggestions on 1) finding REX documentation and 2) constructing the
correct regexp?

Cheers,
Alex

--
Alexander Garrett : agarrett@onlineuw.org ONline@UW Electronic Publishing
:
Save the Adverb! : "If I have not seen as far as others, it is because
www.adverb.org : giants were standing on my shoulders." -- Hal Ableson

User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

indexing numbers

Post by Thunderstone »



On Fri, 7 Feb 1997, Kai Getrost wrote:


Here's what I did:

bin/gw -djschool -k"\alnum{2,50}" \
http://www.onlineuw.org/jschool/undergr ... rgrad.html

bin/gw -index -djschool

Then, to access it, I put the following line in the search form:
<input type=hidden name=db value="jschool">

It does the creation and indexing without any problems and when I search
the site, I get pages that are on it, I even get pages that have the
course numbers. I just can't retrieve them by searching for a number. I'm
assuming that the directory is in the correct place (it's parallel to db
under webinator) and that the perms are set correctly (everything belongs
to the owner of the web server). I tried searching with all the different
proximity options and none of them returned anything. I am completely
baffled. I would appreciate any advice.

Cheers,
Alex

--
Alexander Garrett : agarrett@onlineuw.org ONline@UW Electronic Publishing
:
Save the Adverb! : "If I have not seen as far as others, it is because
www.adverb.org : giants were standing on my shoulders." -- Hal Ableson

User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

indexing numbers

Post by Thunderstone »



Alexander Garrett said:

You need to specify the -k option when you index, not when you walk. If
you issue

bin/gw -unindex -djschool
bin/gw -index -k"\alnum{2,50}" -djschool

you should have the correct index.

Thunderstone Technical Support