home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / Programming / Source / WAIS / ir / sigindex.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-02  |  1.3 KB  |  59 lines

  1. /* WIDE AREA INFORMATION SERVER SOFTWARE
  2.    No guarantees or restrictions.  See the readme file for the full standard
  3.    disclaimer.    
  4. */
  5.  
  6.  
  7. /* implements the build part of irext.h 
  8.    (add_word and finished_add_word)
  9.    Stub for tracy shen.
  10.  */
  11.  
  12. #include "cdialect.h"
  13. #include "irfiles.h"
  14. #include "irsearch.h"
  15. #include "irext.h"
  16. #include <string.h>
  17.  
  18.  
  19. long sig_finished_add_word(db)
  20. database *db;
  21. {
  22.   return(0); /* successful */
  23. }
  24.  
  25. long sig_init_add_word(db, hashtable_size, flush_after_n_words)
  26.      database *db;
  27.      long hashtable_size;
  28.      long flush_after_n_words;
  29. {
  30.   return(0);
  31. }
  32.  
  33.  
  34. long sig_add_word(word, char_pos, line_pos,
  35.           weight, doc_id, date, db)
  36.      char *word;    /* the word to be indexed, this could be a
  37.                word pair. If NULL there are no more words
  38.                to be indexed */
  39.      long char_pos;    /* the position of the start of the
  40.                word */
  41.      long line_pos;    /* this is passed for the best
  42.                section calculation */
  43.      long weight;    /* how important the word looks
  44.                syntactically (such as is it bold)
  45.                NOT used by signature system */
  46.      long doc_id;     /* current document, this will never be 0 */
  47.      time_t date; /* display day of this document, 0 if not known */
  48.      database* db; /* database to insert the document */
  49. {
  50.  /*  printf("Index '%s'\n", word); */
  51.   return(0);
  52. }
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.