pike.git / lib / modules / Search.pmod / Indexer.pmod

version» Context lines:

pike.git/lib/modules/Search.pmod/Indexer.pmod:1:   // This file is part of Roxen Search   // Copyright © 2001 Roxen IS. All rights reserved.   // - // $Id: Indexer.pmod,v 1.15 2001/08/21 14:21:28 js Exp $ + // $Id: Indexer.pmod,v 1.16 2001/09/25 22:02:37 js Exp $      //!   void index_document(Search.Database.Base db,    string|Standards.URI uri,    void|string language, -  mapping fields, -  mapping uri_anchors) +  mapping fields)   {    db->remove_document( uri, language );       foreach(indices(fields), string field)    {    string f;    if( strlen(f = fields[field] ) )    {    array words=Search.Utils.tokenize_and_normalize( f );    db->insert_words(uri, language, field, words );
pike.git/lib/modules/Search.pmod/Indexer.pmod:42:    mapping headers,    string default_charset )   {    Search.Filter.Base filter=Search.get_filter(content_type);    if(!filter)    throw("No indexer for content type "+content_type);       Search.Filter.Base.Output filteroutput=    filter->filter(uri, data, content_type,    headers, default_charset); -  index_document(db, uri, language, filteroutput->fields, filteroutput->uri_anchors); +  index_document(db, uri, language, filteroutput->fields);    return filteroutput->links;   }      //!   void remove_document(Search.Database.Base db,    string|Standards.URI uri,    void|string language)   {    db->remove_document(uri, language);   }