Can I look at Metamorph Index Entries ?

Post Reply
bill.marel
Posts: 24
Joined: Fri Aug 30, 2002 12:49 pm

Can I look at Metamorph Index Entries ?

Post by bill.marel »

I am trying to debug some changes to our "set addexp=..." rex expressions for our metamorph indexes. I have coded a small Rex tester Vortex script and web page to test that the revised addexp's do in fact match samples of the text we are trying to index. We want to ensure that small hyphenated words such as M-16 and F-14 get indexed. Here are the addexp's:

<sql "set addexp='\alnum+[\x27.&\^\-]=\alnum+'"><\sql>
<sql "set addexp='\P\space=[\alpha]+:=[^\n]+'"><\sql>

Note that we are adding these to the default \alnum{2,99} and that the \- in the 1st addexp above is supposed to match M-16 and F-14 and it works in the test web page and script but searches on these strings are still very slow using the indexes recreated with the above addexp's.

Is there any utility I can use to verify that a particular string has been indexed in a metmorph index file ?
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Can I look at Metamorph Index Entries ?

Post by John »

Yes, you can use the wordlist function, or you can use "set indexaccess=1" to gain access to the index as a table. You should make sure that you have done a "set hyphenphrase=0" before querying, otherwise it will treat M-16 as the phrase "M 16" instead of a single term.
John Turnbull
Thunderstone Software
bill.marel
Posts: 24
Joined: Fri Aug 30, 2002 12:49 pm

Can I look at Metamorph Index Entries ?

Post by bill.marel »

John, I changed our Vortex script used for queries to include:

<apicp hyphenphrase 0>

When I run a F-14 query, it times out and I get:

15: Unknown <apicp> setting `hyphenphrase'

Was the hyphenphrase option recently added to Texis ?

we are using:

Texis Version 4.02.1033632267 of Oct 3, 2002 (i686-unknown-linux2.4.2-64)
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Can I look at Metamorph Index Entries ?

Post by John »

It has been in there for a while, and is issued as:

<SQL "set hyphenphrase = 0"></SQL>
John Turnbull
Thunderstone Software
bill.marel
Posts: 24
Joined: Fri Aug 30, 2002 12:49 pm

Can I look at Metamorph Index Entries ?

Post by bill.marel »

Thanks John, it's working great now.
Post Reply