Sat Dec 25 10:04:32 1999 Zoran Constantinescu * htlib/Database.h: Class Database is inherited from X_db too. * htlib/X_db.h: Generic functions for SQL. Added to class Database to make as small changes to the code as possible. * htlib/Database.cc: Choose database type from config file! Changed getDatabaseInstance to use config["db_type"]. * htlib/SQL_db.cc,h: Added code for generic SQL databases. * htlib/MySQL_db.cc,h: Added code for MySQL databases. * htlib/HashWord.h: Experimental code for buffering the words from database in memory (for database speed-ul). Need to be completed. * htcommon/DocumentRef.h: Added new ReferenceStates and the server where the document is (docServerID) and its type (docServerType). * htcommon/DocumentDB.cc,h: Added the external 'config' variable. The Add() function is changed to call SQL_db::AddDocInfo(). Added operator[](int) to get documents from database by ID. Modified code for SQL in CreateSearchDB() and URLs() (do nothing if SQL!?). * htcommon/defaults.cc: added default values for config parameters: db_type - database type: (DB2), GDBM, MySQL (! any SQL type database should contain the "SQL" letters!), SQL_debug - debug level for logging SQL messages (default 0), SQL_log_file - log file for SQL messages, SQL_dbase - connection information for SQL servs "user:pswd@host:dbase" * htcommon/WordList.cc: Flush() changed to write link informations to the SQL database (if SQL). * htfuzzy/Fuzzy.h: Added new getWords(...+wordIDs) function which returns also a list of the wordsIDs (if we are SQL, we use IDs much more). * htfuzzy/Synonym.cc,h: Added code for the new getWords() function. * htfuzzy/Endings.cc,h: Added code for the new getWords() function. * htfuzzy/EndingsDB.cc: Changed code to use SQL databases if necessary. The createRoot() function uses SQL. * htlib/Makefile.in: Added SQL_db.o MySQL_db.o to the list of objects. * htdig/htdig.cc: If SQL, no need to add the list to retriever. Added options '-x start_url' and '-z limit_urls_to'. * htdig/Document.cc,h: Added server_type (what kind of web server). * htdig/Retriever.cc,h: Added SQL support for links. Each link found in documents will be added to the database. * htsearch/htsearch.cc: Added SQL support. And add the search to the database. * htsearch/WeightWord.h: Added word_id; * htsearch/ResultMatch.h: Added id and functions setDocID(), getDocID(). * htsearch/Display.cc: Added SQL support. To be checked!