I builded a very simple userequiv-file with the following content (userequiv.lst) :
noword;u,inferno
with gets compiled to userequiv with backref.
We are using a api prog to equery the db. Before running the search I did :
APICP* cp;
int ret;
ret = n_setueqprefix(se, "");
char szUserEquivFileName[512];
strcpy (szUserEquivFileName, szDatabase);
strcat (szUserEquivFileName, "/userequiv");
ret = n_seteqprefix(se, szUserEquivFileName);
cp = openapicp();
// invert ~ -> so use equiv on all words
cp->keepeqvs = (byte)0;
cp->alequivs = (byte)1;
closeapicp(cp);
and the runs a search like :
select ... from html where Title\\Description\\Keywords\\Body likep XXX
Doing a search on 'inferno' returns the results. Search on '~noword' gets the matches, but 'noword' does not !
The documentation says cp->keepeqvs "Invert normal meaning of ~", so shouldn't that mean to expand all word and
the marked with ~ not ? Or have I to close the APICP after the search ?
But anything is going wrong here, do I miss something here ?
noword;u,inferno
with gets compiled to userequiv with backref.
We are using a api prog to equery the db. Before running the search I did :
APICP* cp;
int ret;
ret = n_setueqprefix(se, "");
char szUserEquivFileName[512];
strcpy (szUserEquivFileName, szDatabase);
strcat (szUserEquivFileName, "/userequiv");
ret = n_seteqprefix(se, szUserEquivFileName);
cp = openapicp();
// invert ~ -> so use equiv on all words
cp->keepeqvs = (byte)0;
cp->alequivs = (byte)1;
closeapicp(cp);
and the runs a search like :
select ... from html where Title\\Description\\Keywords\\Body likep XXX
Doing a search on 'inferno' returns the results. Search on '~noword' gets the matches, but 'noword' does not !
The documentation says cp->keepeqvs "Invert normal meaning of ~", so shouldn't that mean to expand all word and
the marked with ~ not ? Or have I to close the APICP after the search ?
But anything is going wrong here, do I miss something here ?