|
Wsearch by selecting the Tools menu item
Wsearch (Fig.17) or (only for UNIX version of PION) from the command prompt with
wsearch located in the PION bin-directory. Tools menu.
Wsearch is started from the Tools
menu (Fig.17), then its configuration should be in Pion.conf. Let
us take a look at an example of Pion.conf with Wsearch
configuration.
#NUMBER_OF_INDICES is updated
#Tue Aug 28 21:15:21 MST 2001
WsearchURL_7=http\://www.ask.com/main/askjeeves.asp?ask\=$*&x\=19&y\=14
WsearchURL_6=http\://www.goto.com/d/search/p/go/?Keywords\=$*
WIDTH=400
WsearchURL_5=http\://www.webcrawler.com/cgi-bin/WebQuery?searchText\=$*
WsearchURL_4=http\://search.excite.com/search.gw?search\=$*
PION_BIN=/home/sergey/new_devel/Pion/build/bin
WsearchURL_3=http\://www.lycos.com/srch/?query\=$*
WsearchURL_2=http\://www.google.com/search?q\=$*
HIGHT=300
WsearchURL_1=http\://www.altavista.com/cgi-bin/query?q\=$*
WsearchURL_0=http\://ink.yahoo.com/bin/query?p\=$*
NUMBER_OF_INDICES=6
BROWSER=cmd /c start iexplore
WsearchWIDTH=400
WsearchHIGHT=300
WsearchSearchEngine_7=AskJeeves
PION_AUTHORIZATION_KEY=free
WsearchSearchEngine_6=GOTO
WsearchSearchEngine_5=WebCrawler
WsearchSearchEngine_4=Excite
WsearchBROWSER=cmd /c start iexplore
WsearchSearchEngine_3=Lycos
WsearchSearchEngine_2=Google
WsearchSearchEngine_1=Alta Vista
WsearchSearchEngine_0=Yahoo
As is seen from this example, Wsearch configuration consists of
pairs of lines like
WsearchURL_i=http://ink.yahoo.com/bin/query?p=$*
WsearchSearchEngine_i=Yahoo
where the integer i enumerates all search engines used by
Wsearch. WsearchSearchEngine_i contains the titles of
the particular search engine and WsearchURL_i is the query line for
this engine. The symbol $* is for the word(s) to be searched. More
precisely, when Search button is pushed $* is replaced
with the word(s) typed in the text-field depicted in Fig.18.
The line
WsearchBROWSER=/usr/bin/netscape
defines the html-browser used by Wsearch. If
WsearchBROWSER is not specified, then Wsearch uses
the default browser defined by BROWSER.
Wsearch. PION one can create many different Wsearch configuration files (for different topics). For example, if one wants to start Wsearch with the configuration file finance (containing, e.g., finance oriented search engines), then
]$wsearch finance
will do the job (]$ denotes the shell prompt).
To make search with Wsearch one needs to select
search engines by clicking on the corresponding lines, type the word(s) in the
text-field and then push Search button. After that,
Wsearch will produce search results. To see the output of the
particular search engine double-click on the corresponding line in search
results.