addexp, lstexp

Post Reply
johnny_job
Posts: 6
Joined: Wed Oct 13, 2004 2:58 am

addexp, lstexp

Post by johnny_job »

Hello all. I'm trying to play with texis word-breaking algorithm. I use this code:
SET delexp=0;
SET addexp='\alnum{7,99}';
CREATE METAMORPH INVERTED INDEX PlainTextIndex on Documents(PlainText);

Then I call lstexp from another script:
SET lstexp=100;

and it write to me that the only expression is default:
\alnum{2,99}

When I call lstexp from the first script, it writes proper value: \alnum{7,99}. What I do wrong?
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

addexp, lstexp

Post by John »

That is correct. The setting applies to the open connection to the database so you can create an index. The default setting will be in force in other processes or connections to the database. If you update an index it will use the expressions that were in force when initially created.
John Turnbull
Thunderstone Software
johnny_job
Posts: 6
Joined: Wed Oct 13, 2004 2:58 am

addexp, lstexp

Post by johnny_job »

Thank you.
Post Reply