Changeset 1977

Show
Ignore:
Timestamp:
12/05/07 21:57:46 (7 months ago)
Author:
karpet
Message:

update changes and mark rank debugging stuff

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • swish-e/trunk/pod/CHANGES.pod

    r1949 r1977  
    1010 
    1111=over 4 
     12 
     13=item SWISH_DEBUG_RANK env var now enables rank debugging 
     14 
     15Set SWISH_DEBUG_RANK to a true value to enable lots of rank debugging 
     16on stderr. 
     17 
     18=item Perl Makefile.PL patched to fix MakeMaker issue 
     19 
     20Recent versions of ExtUtils::MakeMaker revealed a bug in Makefile.PL. 
     21Patch from mschwern via RT report by mpeters. 
     22 
     23=item LARGEFILE support detected automatically in configure 
     24 
     25jrobinson852@yahoo.com suggest LARGEFILE support be auto-detected since 
     26it is needed so often on Linux systems. 
    1227 
    1328=item New Snowball stemmers 
  • swish-e/trunk/src/result_sort.c

    r1971 r1977  
    5151// #define DEBUGSORT 1 
    5252 
    53  
     53extern int DEBUG_RANK; 
    5454 
    5555 
     
    469469    if (results->bigrank) 
    470470    { 
    471         //fprintf(stderr, "bigrank found: %d\n", results->bigrank ); 
     471        if ( DEBUG_RANK ) { 
     472            fprintf(stderr, "bigrank found: %d\n", results->bigrank ); 
     473        } 
    472474        results->rank_scale_factor = 10000000 / results->bigrank; 
    473475    } 
  • swish-e/trunk/src/search.c

    r1972 r1977  
    23352335    RESULT_LIST *new_results_list = NULL; 
    23362336    RESULTS_OBJECT *results = db_results->results; 
    2337     //unsigned int max_rank_size = 256 ^ sizeof(int); 
    2338  
     2337    /* TODO use to detect rank size overflow  
     2338    unsigned int max_rank_size = 256 ^ sizeof(int); 
     2339    */ 
    23392340 
    23402341    /* If either list is empty, just return the other */