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.   // - // $Id: Query.pmod,v 1.27 2004/08/19 13:08:48 noring Exp $ + // $Id: Query.pmod,v 1.28 2004/08/19 13:13:24 noring 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);    };
pike.git/lib/modules/Search.pmod/Query.pmod:226:    _WhiteFish.DateSet restriction;    switch(q->operator[1])    {    case "=":    restriction =    global_dateset->between(t_low-1, t_high+1)->finalize();    break;    case "<>":    case "!=":    restriction = -  global_dateset->not_between(t_low-1, t_high+1)->finalize(); +  global_dateset->not_between(t_low, t_high)->finalize();    break;    case "<=":    restriction = global_dateset->before(t_high+1)->finalize();    break;    case ">=":    restriction = global_dateset->after(t_low-1)->finalize();    break;    case "<":    restriction = global_dateset->before(t_low)->finalize();    break;