Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] Returning document title rather than file name in search results?

From: Peter Karman <peter(at)>
Date: Fri Apr 03 2009 - 01:29:22 GMT
Greg Keith wrote on 4/2/09 3:52 PM:
> I'm returning to a thread I started (which Peter kindly replied to) a
> few weeks back - I was wondering why some of my HTML documents were
> not having their titles found by swish-e.
> As suggested, I created a test, and noticed that, sure enough, the
> titles of the HTML documents I was indexing were mostly not being
> found - that is because while many of the documents are straight HTML,
> many use SSI variables for the title, so they look like this:
> <!--#set var="title" value="Intranet: Directories" -->
> Is there any way to get swish-e to use "Intranet Directories" as the
> document title found, extracted from this SSI variable?

there's no way to tell the swish-e command to treat a comment as anything else,

Jordan's suggestion (to use the with -S prog) is the cleanest.
Otherwise, you'd need to write a fs filter with -S prog.

Peter Karman  .  .  peter(at)
Users mailing list
Received on Thu Apr 2 21:29:37 2009