I apologize if it's a FAQ, but I can't figure out how to make swish-e
show the excerpts containing the search term, if it's possible at all.
When I use swish.cgi, I get results like:
6 Chapter:7 Protocol:10 Mapping RNA with Nuclease S1 -- rank: 912
Last Modified Date:
Document Size: 43875
So the title 'Chapter:7 Protocol:10 Mapping RNA with Nuclease S1' shows
up, but not the body, which actually contains the search term.
I'm using swish-e 2.4.3 that indexes a bunch of static web pages fetched
by the spider script (not visible from the Internet).
The spider was run like this:
/lib/swish-e/spider.pl spider.config > spider.output.txt
then the contents was indexed like this:
/bin/swish-e -c mc.swish.config -S prog -i stdin < spider.output.txt
(and the output file contains the bodies).
If I try the command line search:
/bin/swish-e -w purchase -f index.swish-e
I only get document titles without an option to show bodies - is that
Here's the config file:
# Want to index main index file, so we index the root instead of "content".
# Skip these folders:
#FileRules dirname contains /generateditems/
#FileRules dirname contains /images/
#FileRules dirname contains /misc/
#FileRules dirname contains /old/
#FileRules dirname contains .noindex
#FileRules dirname contains .no
IndexContents HTML* .jsp
# Must be here to be indexed as a searchable "field".
# (except for swishdefault, which indexes everything).
#MetaNames html title
# This is so that the search field will show up as "title".
#MetaNameAlias title swishtitle
Simon (Vsevolod ILyushchenko) firstname.lastname@example.org
"Think like a man of action, act like a man of thought."
Received on Mon Feb 27 08:01:25 2006