partial numeric match?

Post Reply
kevin12
Posts: 19
Joined: Mon Mar 12, 2001 11:55 am

partial numeric match?

Post by kevin12 »

Why would a column full of numbers return hits for matches of parts of the numbers?

TSQL > select groups from article2 where groups like '(50)' ;

groups
------------+
50164 7651
10329 61350 61560 45980 90344
...etc.

The index was created without any addexp's in effect.
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

partial numeric match?

Post by Kai »

Was the Metamorph index created on just the groups field? Is it up to date?
kevin12
Posts: 19
Joined: Mon Mar 12, 2001 11:55 am

partial numeric match?

Post by kevin12 »

Yes the index was just on the groups field, no it wasn't up to date. The problem went away when I brought the index up to date. What's up with that, do you know?
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

partial numeric match?

Post by John »

The default langc settings do not include digits, so a substring search is done searching linearly. You could do the following to bring the linear search behaviour in line with the index behaviour:

set langc='[\alnum\'']';
set wordc='[\alnum\''\-]';
John Turnbull
Thunderstone Software
Post Reply