Branch: Tag:

2001-05-31

2001-05-31 01:08:50 by Johan Schön <js@opera.com>

Now uses the abstract Database class. Also some other cleanupwork

Rev: lib/modules/Search.pmod/Indexer.pmod:1.5
Rev: lib/modules/Search.pmod/Query.pmod:1.5
Rev: lib/modules/Search.pmod/RankingProfile.pike:1.4

1: - array(Standards.URI) index_document(Search.Database.MySQL db, + array(Standards.URI) index_document(Search.Database.Base db,    string|Standards.URI uri,    string|Stdio.File data,    string content_type,
58:    return filteroutput->links;   }    - array(Standards.URI) extract_links(Search.Database.MySQL db, + array(Standards.URI) extract_links(Search.Database.Base db,    string|Standards.URI uri,    string|Stdio.File data,    string content_type)
71:    return filteroutput->links;   }    - void remove_document(Search.Database.MySQL db, + void remove_document(Search.Database.Base db,    string|Standards.URI|string uri,    void|string language)   {    db->remove_document(uri, language);   }    - array(Standards.URI) test_index(Search.Database.MySQL db, string uri) + array(Standards.URI) test_index(Search.Database.Base db, string uri)   {    object request=Protocols.HTTP.get_url(uri);       return index_document(db, uri, request->data(),    request->headers["content-type"]);   }