Perlfect Solutions
 

[Perlfect-search] url wrong in search result.

Koen Zeilstra koen.zeilstra@novaxess.net
Fri, 20 Jul 2001 14:16:48 +0200
This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C11126.9DF40910
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

Forgot the attachment. Here it is.

-----Original Message-----
From: perlfect-search-admin@perlfect.com
[mailto:perlfect-search-admin@perlfect.com]On Behalf Of Daniel Naber
Sent: vrijdag 20 juli 2001 13:04
To: perlfect-search@perlfect.com
Cc: Koen Zeilstra
Subject: Re: [Perlfect-search] url wrong in search result.


On Friday 20 July 2001 12:56, you wrote:

>  I am trying to run the search engine for
> multiple virtual domains, as you will see.

Well, that's simply not possible. It will only work for one domain.

Regards
 Daniel

--
Daniel Naber, Paul-Gerhardt-Str. 2, 33332 Guetersloh, Germany
Tel. 05241-59371, Mobil 0170-4819674
_______________________________________________
perlfect-search mailing list
perlfect-search@perlfect.com
To unsubscribe, set other personal options or view the list archives please
visit:



------=_NextPart_000_0005_01C11126.9DF40910
Content-Type: text/plain;
        name="conf.pl.txt"
Content-Disposition: attachment;
        filename="conf.pl.txt"
Content-Transfer-Encoding: quoted-printable

# Perlfect Search Configuration file

use File::Basename;

# NOTE: Whenever you change one of the options that's marked with =
[re-index] you
# need to run indexer.pl again to make the change take effect.

if (basename($0) eq "search.pl") {
  $DOCUMENT_ROOT =3D $ENV{'DOCUMENT_ROOT'};
  $BASE_URL =3D "http://" . $ENV{'SERVER_NAME'};
  $CGIBIN =3D $BASE_URL . "/cgi-bin/";
  $INSTALL_DIR =3D $ENV{'DOCUMENT_ROOT'} . "/search/";
} else {
  $DOCUMENT_ROOT =3D "/nfs/web/usr/local/htdocs/$ARGV[0]/htdocs";
  $BASE_URL =3D "http://$ARGV[0]";
  $CGIBIN =3D $BASE_URL."/cgi-bin/";
  $INSTALL_DIR =3D "/nfs/web/usr/local/htdocs/$ARGV[0]/search/";
}

print STDERR "conf.pl: ", basename($0),"\n";
print STDERR "conf.pl: DOCUMENT_ROOT: $DOCUMENT_ROOT\n";
print STDERR "conf.pl: CGIBIN: $CGIBIN\n";
print STDERR "conf.pl: BASE_URL: $BASE_URL\n";
print STDERR "conf.pl: INSTALL_DIR: $INSTALL_DIR\n\n";

# Only files with these extensions should be indexed. [re-index]
@EXT =3D ("html", "htm", "shtml");

# How many results should be shown per page.
$RESULTS_PER_PAGE =3D 5;

# Do you want to index numbers? If so set $INDEX_NUMBERS to 1. =
[re-index]
$INDEX_NUMBERS =3D 0;

# How many words should be used from the <BODY> of an html document as a =
description
# for the document in case there is no <META description> tag available. =
[re-index]
$DESC_WORDS =3D 25;

# The minimum length of a word. Any word of smaller size is not indexed. =
[re-index]
$MINLENGTH =3D 3;

# If you have umlauts or accents etc. in your text, enable this.
# With this option accented characters will be indexed as the
# characters they are based on (e.g. \350 -> e, \374 -> u), without
# this option they will be filtered out completely (you don't want =
that). [re-index]
$SPECIAL_CHARACTERS =3D 1;

# The largest acceptable word size. Reducing this saves space but =
decreases result
# accuracy. Setting the variable to 0 ignores stemming alltogether and =
also makes
# the indexer a bit faster. [re-index]
$STEMCHARS =3D 0;

# How much more important are words found in the meta values (author,
# description, keywords) compared to normal text in the body? This
# influences the ranking of the results
# Use any integer (0 =3D ignore meta information completely) [re-index]
$META_WEIGHT =3D 3;

# Add URLs to the index, so one can search for them? Note that special
# characters will be ignored, just as in normal text. [re-index]
$INDEX_URLS =3D 0;

# Directory with templates (normally you don't have to modify this).
$TEMPLATE_DIR =3D $INSTALL_DIR.'templates/';

# What's the default language. This is the language that's used if no =
lang
# parameter is passed to the script or if the parameter is invalid.
$DEFAULT_LANG =3D 'en';

# The result template for several languages.
$SEARCH_TEMPLATE{'en'} =3D $TEMPLATE_DIR.'search.html';
$SEARCH_TEMPLATE{'de'} =3D $TEMPLATE_DIR.'search_de.html';
$SEARCH_TEMPLATE{'nl'} =3D $TEMPLATE_DIR.'search_nl.html';

# The text for the "Next Page" link in several languages.
$NEXT_PAGE{'en'} =3D 'Next';
$NEXT_PAGE{'de'} =3D 'n&auml;chste Seite';
$NEXT_PAGE{'nl'} =3D 'Volgende pagina';

# The text for the "Previous Page" link in several languages.
$PREV_PAGE{'en'} =3D 'Previous';
$PREV_PAGE{'de'} =3D 'vorige Seite';
$PREV_PAGE{'nl'} =3D 'Vorige pagina';

# You shouldn't have to edit anything below this line.
$DATA_DIR =3D $INSTALL_DIR.'data/';
$INV_INDEX_DB_FILE =3D $DATA_DIR.'inv_index';
$DOCS_DB_FILE      =3D $DATA_DIR.'docs';
$TERMS_DB_FILE     =3D $DATA_DIR.'terms';
$DF_DB_FILE        =3D $DATA_DIR.'df';
$TF_DB_FILE        =3D $DATA_DIR.'tf';
$DESC_DB_FILE      =3D $DATA_DIR.'desc';
$TITLES_DB_FILE    =3D $DATA_DIR.'titles';

$INV_INDEX_TMP_DB_FILE =3D $DATA_DIR.'inv_index_tmp';
$DOCS_TMP_DB_FILE      =3D $DATA_DIR.'docs_tmp';
$TERMS_TMP_DB_FILE     =3D $DATA_DIR.'terms_tmp';
$DESC_TMP_DB_FILE      =3D $DATA_DIR.'desc_tmp';
$TITLES_TMP_DB_FILE    =3D $DATA_DIR.'titles_tmp';

$CONF_DIR =3D $INSTALL_DIR."conf/";
$STOPWORDS_FILE =3D $CONF_DIR.'stopwords.txt';
$NO_INDEX_FILE =3D $CONF_DIR.'no_index.txt';

$SEARCH =3D 'search.pl';
$SEARCH_URL =3D $CGIBIN.$SEARCH;

$VERSION =3D "3.10";
1;
------=_NextPart_000_0005_01C11126.9DF40910--