No results?
Posted: Thu Jan 16, 2003 4:16 pm
Hello,
I have a query that returns results using TSQL directly against the database but doesn't in the query script. Odd. I'm hoping you can point out why this is happening.
The query is:
select Title,Sitedirname,Description,Link,Display_Type from corpus where Title\Keywords\Description\Content\Sitedirname likep 'middle age';
The settings at the top of the script are:
<apicp keepeqvs no>
<apicp alpostproc yes>
<apicp alwithin yes>
<apicp qminwordlen 1>
<SQL NOVARS "set hyphenphrase=0"></SQL>
<rex \x22 $terms>
<if $ret eq ''>
<apicp minwordlen 6>
<SQL NOVARS "set likepallmatch=1"></SQL>
<else>
<apicp exactphrase on>
</if>
<SQL NOVARS "set likeporder=1000"></SQL>
<SQL NOVARS "set likepproximity=1000"></SQL>
<SQL NOVARS "set likepdocfreq=200"></SQL>
<SQL NOVARS "set likeptblfreq=200"></SQL>
The index is created using:
set indexmem=40;
set delexp=0;
set addexp='[\alnum&\-\x80-\xff]{1,99}';
set addexp='[\alnum&\-\x80-\xff\x27]{1,99}';
create metamorph inverted index xcorpus2 on corpus(Title\Keywords\Description\Content\Sitedirname,Adult);
But if it was the index, the query against the database wouldn't work either, right?
I know there's matching content since if you search for "middle age" in quotes you get quite a few results.
Thanks,
Z.
I have a query that returns results using TSQL directly against the database but doesn't in the query script. Odd. I'm hoping you can point out why this is happening.
The query is:
select Title,Sitedirname,Description,Link,Display_Type from corpus where Title\Keywords\Description\Content\Sitedirname likep 'middle age';
The settings at the top of the script are:
<apicp keepeqvs no>
<apicp alpostproc yes>
<apicp alwithin yes>
<apicp qminwordlen 1>
<SQL NOVARS "set hyphenphrase=0"></SQL>
<rex \x22 $terms>
<if $ret eq ''>
<apicp minwordlen 6>
<SQL NOVARS "set likepallmatch=1"></SQL>
<else>
<apicp exactphrase on>
</if>
<SQL NOVARS "set likeporder=1000"></SQL>
<SQL NOVARS "set likepproximity=1000"></SQL>
<SQL NOVARS "set likepdocfreq=200"></SQL>
<SQL NOVARS "set likeptblfreq=200"></SQL>
The index is created using:
set indexmem=40;
set delexp=0;
set addexp='[\alnum&\-\x80-\xff]{1,99}';
set addexp='[\alnum&\-\x80-\xff\x27]{1,99}';
create metamorph inverted index xcorpus2 on corpus(Title\Keywords\Description\Content\Sitedirname,Adult);
But if it was the index, the query against the database wouldn't work either, right?
I know there's matching content since if you search for "middle age" in quotes you get quite a few results.
Thanks,
Z.