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

version» Context lines:

pike.git/lib/modules/Search.pmod/Query.pmod:1: -  -  +    // This file is part of Roxen Search - // Copyright © 2001 Roxen IS. All rights reserved. + // Copyright © 2001 - 2009, Roxen IS. All rights reserved.   // - // $Id: Query.pmod,v 1.35 2008/03/28 12:53:28 liin Exp $ + // $Id: Query.pmod,v 1.36 2009/05/25 12:41:22 mast Exp $      static function(string,int:string) blobfeeder(Search.Database.Base db,    array words)   {    mapping state = mkmapping(words,allocate(sizeof(words)));    mapping(string:mapping(int:string)) blobcache = ([ ]);    return lambda( string word, int foo )    {    return db->get_blob(word, state[word]++, blobcache);    };