Select the platform to run under:
Windows 9x/Me/NT/2000/2003/XP
Linux/Solaris/AIX/HP-UX/Unix
Use the following instructions to run the Search Servlet on Windows 9x/Me/NT/2000/2003/XP.
- Open an MS-DOS Prompt and enter:
md iws_dir\search
copy pos_dir\samples\search\*.tf iws_dir\search
iws_dir - the path to IWS, normally c:\iws.
path - the path to POS, normally c:\pos.
- From the Administrator define the following Servlet:
Alias: SearchServlet
Class File: SearchServlet
Parameters: interval=60
Parameters: exclude=a
Parameters: exclude=an
Parameters: exclude=as
Parameters: exclude=and
Parameters: exclude=or
Parameters: exclude=the
Parameters: parser=.txt:TextParser
Parameters: parser=.xml:MLParser
Parameters: parser=.htm:MLParser
Parameters: parser=.html:MLParser
Parameters: path=/
Parameters: document_count=1000
Parameters: word_count=1000
Preload: Yes
Parameters:
interval - the number of minutes to wait before the Indexer updates the
search persistent object store and indexes. Normally 60 minutes.
exclude - any throwaway words. Normally a, an,
and, or and the.
parser - the content parsers in the form
extension:classname.
path - the relative document paths to index. Normally /.
document_count - the estimated total number of documents to index.
Normally 1000.
word_count - the estimated total number of word to index.
Normally 1000.
- From the Administrator define the following Alias:
Alias: /search.html
Type: Servlet
Resource: SearchServlet
- Restart Servertec Internet Server.
- Open a Web Browser and enter:
http://localhost:8080/search.html
Notes:
The MLParser assumes that < and > are not embedded in the
content.
Both the TextParser and the MLParser assume that words are
composed of entirely alpha numeric characters.
top of page
Use the following instructions to run the Search Servlet on Linux/Solaris/AIX/HP-UX/Unix.
- Open a command shell and enter:
mkdir iws_dir/search
cp pos_dir/samples/search/*.tf iws_dir/search
iws_dir - the path to IWS, normally c:/iws.
path - the path to POS, normally c:/pos.
- From the Administrator define the following Servlet:
Alias: SearchServlet
Class File: SearchServlet
Parameters: Interval=60
Parameters: exclude=a
Parameters: exclude=an
Parameters: exclude=as
Parameters: exclude=and
Parameters: exclude=or
Parameters: exclude=the
Parameters: parser=.txt:TextParser
Parameters: parser=.xml:MLParser
Parameters: parser=.htm:MLParser
Parameters: parser=.html:MLParser
Parameters: path=/
Parameters: document_count=1000
Parameters: word_count=1000
Preload: No
Parameters:
interval - the number of minutes to wait before the Indexer updates the
search persistent object store and indexes. Normally 60 minutes.
exclude - any throwaway words. Normally a, an,
and, or and the.
parser - the content parsers in the form
extension:classname.
path - the relative document paths to index. Normally /.
document_count - the estimated total number of documents to index.
Normally 1000.
word_count - the estimated total number of word to index.
Normally 1000.
- From the Administrator define the following Alias:
Alias: /search.html
Type: Servlet
Resource: SearchServlet
- Restart Servertec Internet Server.
- Open a Web Browser and enter:
http://localhost:8080/search.html
Notes:
The MLParser assumes that < and > are not embedded in the
content.
Both the TextParser and the MLParser assume that words are
composed of entirely alpha numeric characters.
|