Finding engineering units

Post Reply
kzinda
Posts: 62
Joined: Fri Nov 30, 2001 6:18 am

Finding engineering units

Post 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?
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

Finding engineering units

Post 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).
Post Reply