Skip to main content.
home | support | download

Back to List Archive

MaxHits modification...

From: David Norris <kg9ae(at)not-real.geocities.com>
Date: Sun Aug 29 1999 - 20:27:09 GMT
I modified search.c to return maxhits for each individual index specified
instead of maxhits spanning all indices.  I placed my modified copy of the
search.c on my web server:
http://www.webaugur.com/wares/files/search.c.gz

If someone wants to add it to the official dist, then that is fine with me.

Assuming: swish-e -f index1 index2 -m 3 -w test

The original code would output:
# Index1 Comments
Index1 result 1
Index1 result 2
Index1 result 3
# Index2 Comments
.err no results

My modification outputs:
# Index1 Comments
Index1 result 1
Index1 result 2
Index1 result 3
# Index2 Comments
Index2 result 1
Index2 result 2
Index2 result 3

,David Norris

World Wide Web - http://www.webaugur.com/dave
Page via mail - 412039@pager.mirabilis.com
ICQ Universal Internet Number - 412039
E-Mail - dave@webaugur.com
Received on Sun Aug 29 13:22:13 1999