1 |
#!/usr/local/perl5.005_56.Mar06/bin/perl -w |
#!perl -w |
2 |
######################### -*- Mode: Cperl -*- ######################### |
# -*- Mode: Perl -*- |
3 |
## |
# $Basename: sman $ |
4 |
## $Basename: sman $ |
# $Revision: 1.14 $ |
5 |
## $Revision: 1.8 $ |
# Author : Ulrich Pfeifer |
6 |
## |
# Created On : Fri Aug 30 15:52:25 1996 |
7 |
## Author : Ulrich Pfeifer |
# Last Modified By: Ulrich Pfeifer |
8 |
## Created On : Fri Aug 30 15:52:25 1996 |
# Last Modified On: Mon May 8 11:03:46 2000 |
9 |
## |
# Language : CPerl |
10 |
## Last Modified By : Ulrich Pfeifer |
# |
11 |
## Last Modified On : Sun May 30 17:48:53 1999 |
# (C) Copyright 1996-2000, Ulrich Pfeifer |
12 |
## |
# |
|
## Copyright (c) 1996-1997, Ulrich Pfeifer |
|
|
## |
|
|
## |
|
|
###################################################################### |
|
13 |
|
|
14 |
use strict; |
use strict; |
15 |
|
|
117 |
if ($@ ne '') { |
if ($@ ne '') { |
118 |
print $OUT "$_ => $query\n\$\@='$@'\n"; |
print $OUT "$_ => $query\n\$\@='$@'\n"; |
119 |
} elsif (ref($query)) { |
} elsif (ref($query)) { |
120 |
%hits = $query->execute(); |
%hits = $query->execute(top => $OPT{max}, picky => 1); |
121 |
# the hash %hits has as keys document numbers and as values |
# the hash %hits has as keys document numbers and as values |
122 |
# quality figures. The doc numbers are not what we have as docid |
# quality figures. The doc numbers are not what we have as docid |
123 |
# to find the item in the access class, they are WAIT's private |
# to find the item in the access class, they are WAIT's private |
153 |
} |
} |
154 |
|
|
155 |
} continue { |
} continue { |
156 |
# we don't do this since ANdreas Koenig does not think of it as feature |
# we don't do this since Andreas Koenig does not think of it as feature |
157 |
# $term->SetHistory(grep length($_)>4, $term->GetHistory) |
# $term->SetHistory(grep length($_)>4, $term->GetHistory) |
158 |
} |
} |
159 |
|
warn "Thank you for using sman\n"; |
160 |
|
|
161 |
|
$tb->close; |
162 |
|
$db->close; |
163 |
|
|
164 |
sub myreadline { |
sub myreadline { |
165 |
if (@ARGV) { |
if (@ARGV) { |