indexing "["

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

indexing "["

Post by Thunderstone »



I would like to be able to find terms like
"grades [scholastic]" in my database.
"grades *scholastic" works.

Will -k"[]" work to include the "[" (and "]") in the indexing?

If I replaced the "[" with a "(" would that work too?

---------------------------------------------------------------
Larry Rudner rudner@cua.edu
ERIC Clearinghouse on 800 464-3742 (800 Go4-ERIC)
Assessment and Evaluation 202 673-3811
Catholic University of America FAX: 202 319-6692
Washington, DC 20064 http://www.cua.edu/www/eric_ae

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

indexing "["

Post by Thunderstone »



Not exactly, but you're on the right track.

[] are special characters to the regular expressions used by the
lexical index part of Texis.

I'm sure you are not really trying just to index [], but are trying
to index [] in conjunction with strings.

-k"[\alnum\[\]]{2,20}"

is probably more in line with what you would use as an index expression.

You might also consider reading the Webinator user manual section on searching
for patterns. ( http://www.thunderstone.com/webinator/help.html )
It describes how you can search for weird things like "[bob]" without
the need to alter the index expression.



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

indexing "["

Post by Thunderstone »




Yes, I want to be able to search for "[bob]". I went to help and rex.html
and rexlong.html, but nothing seemed to work. I tried using ".bob.", "\[bob\]"
and \L[bob]\L. and they didn't work. What should I be using?

---------------------------------------------------------------
Larry Rudner rudner@cua.edu
ERIC Clearinghouse on 800 464-3742 (800 Go4-ERIC)
Assessment and Evaluation 202 673-3811
Catholic University of America FAX: 202 319-6692
Washington, DC 20064 http://www.cua.edu/www/eric_ae

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

indexing "["

Post by Thunderstone »




Searching for just plain "bob" will find "[bob]".

If you really want to do the rex search, rex requires a leading /
as in: /\[bob]