Add sanity check of query

This commit is contained in:
Teodor Sigaev 2005-10-31 13:47:09 +00:00
parent 90456d1303
commit 1dd6bd19fa
1 changed files with 2 additions and 1 deletions

View File

@ -303,7 +303,8 @@ calc_rank_or(float *w, tsvector * t, QUERYTYPE * q)
*/
res = res + ( wjm + resj - wjm/((jm+1)*(jm+1)))/1.64493406685;
}
res = res /size;
if ( size > 0 )
res = res /size;
pfree(item);
return res;
}