best bets

User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

best bets

Post by John »

It is not currently possible to enable suffix processing with LIKEIN.

I tried with tsql to create a table, index it, and query it.

create table test(x varchar(20));
insert into test values('chair');
insert into test values('e-statement');
create metamorph counter index ix2 on test(x);
set minwordlen=5;
select * from test where x likein 'chair';
select * from test where x likein 'chairs';
select * from test where x likein 'e-statement';
drop table test;
John Turnbull
Thunderstone Software
KMandalia
Posts: 301
Joined: Fri Jul 09, 2004 3:50 pm

best bets

Post by KMandalia »

That's ok.

Is minwordlen has anything to do with why e-statement=estatement in your example but didn't work for me?

BTW, do you guys consider this as limitation of LIKEIN and would address this issue or this is something of an unique requirement that I have and I have to figure out a work-around?

Thanks, John for making sure I get an answer.
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

best bets

Post by John »

No, minwordlen was to try suffix processing, otherwise there would be no suffix processing. The lack of suffix processing with an indexed LIKEIN is something we'll need to look at and see if it was designed that way, or can be fixed.
John Turnbull
Thunderstone Software
Post Reply