Lines Matching defs:term
54 #define TERMMAX 512 /* term max size */
67 int showzipf; /* show postings per term distribution */
152 supint++; /* leave first term open for a count */
153 /* initialize using an empty term */
208 /* have a new term */
325 --totterm; /* don't count null term */
328 "max term length = %d\n", numlogblk, totpost, totterm, maxtermlen);
349 /* add a term to the data base */
458 (void) printf("backup %d at term=%s to term=%s\n",
482 /* add new term to superindex */
762 /* invforward moves forward one term in the inverted file */
777 /* invterm gets the present term from the present logical block */
779 invterm(INVCONTROL *invcntl, char *term)
784 (void) strncpy(term, entryptr->offset + invcntl->logblk,
786 *(term + entryptr->size) = '\0';
829 /* now find the term in this block. tricky this */
856 /* note if this happens the term could be in extended block */
867 /* invdump dumps the block the term parameter is in */
869 invdump(INVCONTROL *invcntl, char *term)
875 /* dump superindex if term is "-" */
876 if (*term == '-') {
877 j = atoi(term + 1);
889 } else if (*term == '#') {
890 j = atoi(term + 1);
894 i = abs((int)invfind(invcntl, term));
897 (void) printf("Entry term to invdump=%s, postings=%ld, "
898 "forward ptr=%ld, back ptr=%ld\n", term, i, *(longptr),