search numerics

Post Reply
sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

search numerics

Post by sourceuno »

I want to be able to search numerics, such as "3.8", in my database. I read in a previous post to use the following statements:

<sql "set addexp='\alnum{1,99}'"></sql>
<sql "set addexp='\digit+:=\digit+'"></sql>

Do I need recreate the metamorph indexes that already exist on my table?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

search numerics

Post by mark »

I assume you're referring to
http://thunderstone.master.com/texis/ma ... 3aa7027f10

The first thing that does is drop the existing index. It also uses "delexp" which is important.
Yes, you have to rebuild the index to change index expressions.

And you'll want "\." instead of ":" in the second expression you mention.
sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

search numerics

Post by sourceuno »

After I create my indexes this way, do I need to do the same each time that I need to recreate the indexes?
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

search numerics

Post by Kai »

If you're truly re-creating the indexes -- dropping them first and then re-making -- yes. If you're just updating -- re-issuing the create statement without dropping -- then no, the delexp/addexp expressions from the original Metamorph index create are remembered and do not need to be re-issued.
Post Reply