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

version» Context lines:

pike.git/lib/modules/Search.pmod/Indexer.pmod:48:    // Tokenize any anchor fields    h = gethrtime();    int source_hash=hash((string)uri)&0xf;    foreach(indices(filteroutput->uri_anchors || ({ })), string link_uri)    {    array(string) words=    Search.Utils.tokenize(Search.Utils.normalize    (filteroutput->uri_anchors[link_uri]));    db->insert_words(link_uri, 0, "anchor", words, source_hash);    } +  mapping md = (["title":1, +  "keywords": 1, +  "description": 1, +  "body": 1 ]) & filteroutput->fields; +  db->set_metadata(uri, language, md);    return filteroutput->links;   }      array(Standards.URI) extract_links(Search.Database.Base db,    string|Standards.URI uri,    string|Stdio.File data,    string content_type)   {    Search.Filter.Base filter=Search.get_filter(content_type);    if(!filter)