pike.git / src / modules / _WhiteFish / whitefish.c

version» Context lines:

pike.git/src/modules/_WhiteFish/whitefish.c:1:   #include <math.h>      #include "global.h"   #include "stralloc.h"   #include "global.h" - RCSID("$Id: whitefish.c,v 1.22 2001/05/28 20:46:59 js Exp $"); + RCSID("$Id: whitefish.c,v 1.23 2001/05/29 11:20:57 js Exp $");   #include "pike_macros.h"   #include "interpret.h"   #include "program.h"   #include "program_id.h"   #include "object.h"   #include "operators.h"   #include "array.h"   #include "module_support.h"      #include "config.h"
pike.git/src/modules/_WhiteFish/whitefish.c:529:    field_coefficients[i] = (double)_field->item[i].u.integer;       res = low_do_query_and(blobs,numblobs,    field_coefficients,    proximity_coefficients,    cutoff );    pop_n_elems( args );    push_object( res );   }    - static void f_do_query_merge( INT32 args ) - /*! @decl ResultSet do_query_merge( array(int) words, @ -  *! array(int) field_coefficients, @ -  *! array(int) proximity_coefficients, @ -  *! function(int:string) blobfeeder) + static void f_do_query_or( INT32 args ) + /*! @decl ResultSet do_query_or( array(int) words, @ +  *! array(int) field_coefficients, @ +  *! array(int) proximity_coefficients, @ +  *! function(int:string) blobfeeder)    *! @[words]    *!    *! Arrays of word ids. Note that the order is significant    *! for the ranking.    *!    *! @[field_coefficients]    *!    *! An array of ranking coefficients for the different fields.    *! In the range of [0x0000-0xffff]. The array (always) has 66    *! elements:
pike.git/src/modules/_WhiteFish/whitefish.c:630:   }         void pike_module_init(void)   {    init_resultset_program();    init_blob_program();    init_blobs_program();    init_linkfarm_program();    -  add_function( "do_query_merge", f_do_query_merge, +  add_function( "do_query_or", f_do_query_or,    "function(array(int),array(int),array(int),int"    ",function(int:string):object)",    0 );       add_function( "do_query_and", f_do_query_and,    "function(array(int),array(int),array(int),int"    ",function(int:string):object)",    0 );       add_function( "do_query_phrase", f_do_query_phrase,