X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Franksimilarity.c;h=c740de2dc2da3a94c75db02519bccf4d091bf9aa;hb=cdcde0c689ec4b66f1884dbd455284b7a35fb425;hp=c45007863b6d188b2e641a6709aa443b56dc3f0c;hpb=b51ecd6583f18202c633b256a861d94bd485ec2e;p=idzebra-moved-to-github.git diff --git a/index/ranksimilarity.c b/index/ranksimilarity.c index c450078..c740de2 100644 --- a/index/ranksimilarity.c +++ b/index/ranksimilarity.c @@ -1,4 +1,4 @@ -/* $Id: ranksimilarity.c,v 1.5 2006-05-08 14:03:16 marc Exp $ +/* $Id: ranksimilarity.c,v 1.7 2006-05-10 08:13:22 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -52,13 +52,14 @@ struct ranksimilarity_term_info { /** number of docs within result set */ zint no_docs_resset; - /** number of terms in this field */ + /** number of terms in this field */ zint no_terms_field; /** number of docs with this field in database */ zint no_docs_field; - /** size of all docs with this field in database (in bytes ir terms ??) */ + /** sum of size of all docs with this field in database + (in bytes or terms ??) */ zint size_docs_field; /** rank flag is one if term is to be included in ranking */ @@ -86,7 +87,9 @@ struct ranksimilarity_set_info { /** number of documents in entire collection */ zint no_docs_database; - /** size of all documents in entire collection (in bytes or terms ??)*/ + /** sum of size of all documents in entire collection + (in bytes or terms ?? best implemented as sum of size of + all indexes/fields in db ??)*/ zint size_docs_database; /** array of size no_terms_query with statistics gathered per term */ @@ -290,8 +293,8 @@ static void add (void *set_handle, int seqno, TERMID term) assert(ti); si->last_pos = seqno; ti->freq_term_docfield++; - /* yaz_log(log_level, "add() seqno=%d term=%s freq_term_docfield=%d", - seqno, term->name, ti->freq_term_docfield); */ + /*yaz_log(log_level, "add() seqno=%d term=%s freq_term_docfield=%d", + seqno, term->name, ti->freq_term_docfield); */ } /* @@ -400,3 +403,11 @@ static struct rank_control rank_control = { }; struct rank_control *rank_similarity_class = &rank_control; +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +