Page 1 of 1

Finding engineering units

Posted: Mon Apr 01, 2002 9:55 am
by kzinda
I am try to loacate engineering units such as "s/cm". Texis finds hits such as grams/cm with the highlighted hit as the s/cm part of the word. How do I force it to only hit on s/cm without it being part of another word?

Finding engineering units

Posted: Mon Apr 01, 2002 10:32 am
by Kai
You could change the Metamorph index expression to include slash and re-index:

drop index xxx;
set addexp='>>\alnum=[\alnum/]{1,99}';
create metamorph inverted index xxx ...;

then search for `s/cm'. Or, without changing the index expression, you could use a REX expression; search for `/\space=s/cm'. Note that this is much slower, and should only be used in conjunction with another "anchor" term (all alphanumerics so the index can find it).