Skip to main content.
home | support | download

Back to List Archive

Ordering Swish.cgi Search Results by swishdocpath

From: Jon Sorensen <jon(at)not-real.starkmedia.com>
Date: Mon Oct 31 2005 - 14:48:17 GMT
I am indexing a number of sites into a single index (spider conf below).
I need to have one of these servers, 'meriter.staywellsolutionsonline.com',
to show up last in the results for swish.cgi except when sorted by
swishdocpath
from the search form. Would separating this out into antother index solve
this problem?
I _cannot_ have checkboxes, radio buttons or a popup on the form. It just
needs to
automatically move the results to the end. I'm not very good with Perl so
any help (code)
is appreciated. thanks

my %serverA = (
        base_url    => 'http://www.meriter.com/',
        #same_hosts  => [ qw/meriter.com/],
        email       => 'nobody@nowhere.com',
  keep_alive  => 0,
     test_url    => sub {
         my $uri = shift;
            return 0 if $uri->path =~ /login\.asp/;
            return 1;
         },
  use_md5  => 1,
);
my %serverB = (
        base_url    => 'https://secure2.meriter.com/meriter/don_form.htm',
        email       => 'nobody@nowhere.com',
  keep_alive  => 1
);
my %serverC = (
        base_url    => 'http://meriter.staywellsolutionsonline.com',
        same_hosts  => [ qw/meriter.staywellsolutionsonline.com/ ],
        email       => 'nobody@nowhere.com',
  keep_alive  => 1,
     test_url    => sub {
         my $uri = shift;
            return 0 if $uri->path =~ /EmailForm\.pg/;
            return 0 if $uri->path =~ /PrinterFriendly\=true/;
            return 0 if $uri->path =~ /RelatedItems/;
            return 1;
         },
  use_md5  => 1,
);
my %serverD = (
        base_url    => 'https://secure.meriter.com/classreg/',
        email       => 'nobody@nowhere.com',
  keep_alive  => 1,
     test_url    => sub {
         my $uri = shift;
            return 0 if $uri->path =~ /ReviewClasses\.cfm/;
            return 0 if $uri->path =~ /(RegID=([^\-]|$))/;
            return 1;
         },
  use_md5  => 1,
);
my %serverE = (
        base_url    => [qw! http://sh.webhire.com/Public/708/
http://sh.webhire.com/servlet/av/search?ResultTemplate=AVResult.html&ACCT_ID=708&SiteName=Internet&SortField=JOB_TITLE&SortOrder=ASCEND&SearchFields=ACCT_ID,NAME15,EMPLOYMENT_TYPE_NAME&NAME15=&EMPLOYMENT_TYPE_NAME=&Keyword=&ResultStart=1
http://sh.webhire.com/servlet/av/search?ResultTemplate=AVResult.html&ACCT_ID=708&SiteName=Internet&SortField=JOB_TITLE&SortOrder=ASCEND&SearchFields=ACCT_ID,NAME15,EMPLOYMENT_TYPE_NAME&NAME15=&EMPLOYMENT_TYPE_NAME=&Keyword=&ResultStart=11
http://sh.webhire.com/servlet/av/search?ResultTemplate=AVResult.html&ACCT_ID=708&SiteName=Internet&SortField=JOB_TITLE&SortOrder=ASCEND&SearchFields=ACCT_ID,NAME15,EMPLOYMENT_TYPE_NAME&NAME15=&EMPLOYMENT_TYPE_NAME=&Keyword=&ResultStart=21
http://sh.webhire.com/servlet/av/search?ResultTemplate=AVResult.html&ACCT_ID=708&SiteName=Internet&SortField=JOB_TITLE&SortOrder=ASCEND&SearchFields=ACCT_ID,NAME15,EMPLOYMENT_TYPE_NAME&NAME15=&EMPLOYMENT_TYPE_NAME=&Keyword=&ResultStart=31
http://sh.webhire.com/servlet/av/search?ResultTemplate=AVResult.html&ACCT_ID=708&SiteName=Internet&SortField=JOB_TITLE&SortOrder=ASCEND&SearchFields=ACCT_ID,NAME15,EMPLOYMENT_TYPE_NAME&NAME15=&EMPLOYMENT_TYPE_NAME=&Keyword=&ResultStart=41
http://sh.webhire.com/servlet/av/search?ResultTemplate=AVResult.html&ACCT_ID=708&SiteName=Internet&SortField=JOB_TITLE&SortOrder=ASCEND&SearchFields=ACCT_ID,NAME15,EMPLOYMENT_TYPE_NAME&NAME15=&EMPLOYMENT_TYPE_NAME=&Keyword=&ResultStart=51
http://sh.webhire.com/servlet/av/search?ResultTemplate=AVResult.html&ACCT_ID=708&SiteName=Internet&SortField=JOB_TITLE&SortOrder=ASCEND&SearchFields=ACCT_ID,NAME15,EMPLOYMENT_TYPE_NAME&NAME15=&EMPLOYMENT_TYPE_NAME=&Keyword=&ResultStart=61
http://sh.webhire.com/servlet/av/search?ResultTemplate=AVResult.html&ACCT_ID=708&SiteName=Internet&SortField=JOB_TITLE&SortOrder=ASCEND&SearchFields=ACCT_ID,NAME15,EMPLOYMENT_TYPE_NAME&NAME15=&EMPLOYMENT_TYPE_NAME=&Keyword=&ResultStart=71
http://sh.webhire.com/servlet/av/search?ResultTemplate=AVResult.html&ACCT_ID=708&SiteName=Internet&SortField=JOB_TITLE&SortOrder=ASCEND&SearchFields=ACC
T_ID,NAME15,EMPLOYMENT_TYPE_NAME&NAME15=&EMPLOYMENT_TYPE_NAME=&Keyword=&Resu
ltStart=81
http://sh.webhire.com/servlet/av/search?ResultTemplate=AVResult.html&ACCT_ID=708&SiteName=Internet&SortField=JOB_TITLE&SortOrder=ASCEND&SearchFields=ACCT_ID,NAME15,EMPLOYMENT_TYPE_NAME&NAME15=&EMPLOYMENT_TYPE_NAME=&Keyword=&ResultStart=91
!],
        email       => 'nobody@nowhere.com',
  keep_alive  => 1,
  use_md5  => 1,
);
my %serverF = (
        base_url    => 'https://secure.meriter.com/apps/dr4u/dr4u.htm',
        email       => 'nobody@nowhere.com',
  keep_alive  => 1
);
my %serverG = (
        base_url    =>
'http://www.wpg.cc/stl/CDA/homepage/1,1006,613,00.html',
        email       => 'nobody@nowhere.com',
  keep_alive  => 1,
  use_md5  => 1,
);
my %serverH = (
        base_url    => 'https://secure2.meriter.com/meriter/eventreg.htm',
        email       => 'nobody@nowhere.com',
  keep_alive  => 1
);
my %serverI = (
        base_url    => 'https://secure2.meriter.com/meriter/threads.htm',
        email       => 'nobody@nowhere.com',
  keep_alive  => 1
);
my %serverJ = (
        base_url    => 'http://app.meriter.com/fn/cafemenu',
        email       => 'nobody@nowhere.com',
  keep_alive  => 1,
  #max_files   => 1
  max_indexed => 1
);
my %serverK = (
        base_url    => 'https://secure2.meriter.com/billpay.htm',
        email       => 'nobody@nowhere.com',
  keep_alive  => 1
);

@servers = ( \%serverA, \%serverB, \%serverC, \%serverD, \%serverE,
\%serverF, \%serverG, \%serverH, \%serverI, \%serverJ, \%serverK);

Jon Sorensen
Received on Mon Oct 31 06:48:17 2005