Changeset 1977
- Timestamp:
- 12/05/07 21:57:46 (7 months ago)
- Files:
-
- swish-e/trunk/pod/CHANGES.pod (modified) (1 diff)
- swish-e/trunk/src/result_sort.c (modified) (2 diffs)
- swish-e/trunk/src/search.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
swish-e/trunk/pod/CHANGES.pod
r1949 r1977 10 10 11 11 =over 4 12 13 =item SWISH_DEBUG_RANK env var now enables rank debugging 14 15 Set SWISH_DEBUG_RANK to a true value to enable lots of rank debugging 16 on stderr. 17 18 =item Perl Makefile.PL patched to fix MakeMaker issue 19 20 Recent versions of ExtUtils::MakeMaker revealed a bug in Makefile.PL. 21 Patch from mschwern via RT report by mpeters. 22 23 =item LARGEFILE support detected automatically in configure 24 25 jrobinson852@yahoo.com suggest LARGEFILE support be auto-detected since 26 it is needed so often on Linux systems. 12 27 13 28 =item New Snowball stemmers swish-e/trunk/src/result_sort.c
r1971 r1977 51 51 // #define DEBUGSORT 1 52 52 53 53 extern int DEBUG_RANK; 54 54 55 55 … … 469 469 if (results->bigrank) 470 470 { 471 //fprintf(stderr, "bigrank found: %d\n", results->bigrank ); 471 if ( DEBUG_RANK ) { 472 fprintf(stderr, "bigrank found: %d\n", results->bigrank ); 473 } 472 474 results->rank_scale_factor = 10000000 / results->bigrank; 473 475 } swish-e/trunk/src/search.c
r1972 r1977 2335 2335 RESULT_LIST *new_results_list = NULL; 2336 2336 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 */ 2339 2340 2340 2341 /* If either list is empty, just return the other */
