[comp.soft-sys.andrew] Index problems

rdh@THUMPER.BELLCORE.COM (Ralph Hill) (06/20/91)

If you are indexing from a file (may occur in otther cases, I have not
checked), and one index term is a sub-expression of another, your index
will be (in my opinion) wrong.  The nature of the error depends on the
order the index terms in the file.

Examples:

1

Index file:

mvar
create-mvar

index:  create-mvar never appears!


2

Index file:

create-mvar
mvar

index:  mvar appears, and create- appears.  create-mvar does not!


3

Index file:

create-mvar
mvar       <- with a space after it.  All occurances have a space after.

index:  looks ok.


ralph hill
Bellcore