Skip to main content.
home | support | download

Back to List Archive

Re: StoreDescription / swishdescription field

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Tue Dec 17 2002 - 01:16:20 GMT
At 04:59 PM 12/16/02 -0800, Tref Gare wrote:
>Hi all and thanks again for any assistance anyone may be able to give.
>
>I'm indexing a bunch of html files (alongside some pdfs and jsp) and am
>having trouble getting the StoreDescription to work quite as I'd expect.

I can't reproduce.  Can you generate an example like this that shows the problem?  

(if you can turn off wrapping in your mail program it makes it easier to cut-n-paste - thanks.)

$ cat 1.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head><META NAME="GENERATOR" CONTENT="PageID 531 - generated by RedDot 4.5 (SP3) - 4.5.3.14 - 2-K5b" />
 <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
 <meta http-equiv="imagetoolbar" content="no">
 <meta http-equiv="MSThemeCompatible" content="no">
 <meta name="MSSmartTagsPreventParsing" content="true">
 <!-- metadata -->
 <title>Run Lola Run</title>
 <meta name="DC.Title" lang="en" content="Run Lola Run">
 <meta name="DC.Subject" scheme="to be advised before development" content="Run Lola Run">
 <meta name="keywords" content="Run Lola Run">
 <meta name="DC.Description" lang="en" content="Run Lola Run">
 <meta name="Description" content="Run Lola Run">
 <meta name="DC.Creator" lang="en" content="corporateName=Australian Centre for the Moving Image; address=Federation Square, Melbourne, VIC; contact=+61 3 8663 2200">
 <meta name="DC.Publisher" lang="en" content="corporateName=Australia Centre for the Moving Image">
 <meta name="DC.Date.modified" scheme="ISO8601" content="2002-11-21">
</head>
<body>
  Body text
</body>
</html>


$ cat c
parserwarnlevel 9
IndexContents HTML2 .htm .html .jsp 
StoreDescription HTML2 <body> 120


$ ./swish-e -c c -i 1.html -T properties -v0
          swishdocpath: 6 (  6) S: "1.html"
            swishtitle: 7 ( 12) S: "Run Lola Run"
          swishdocsize: 8 (  4) N: "1184"
     swishlastmodified: 9 (  4) D: "2002-12-16 17:07:50"
      swishdescription:10 (  9) S: "Body text"

$ ./swish-e -w not dkdk -x '%d\n' -H0
Body text

$ ./swish-e -w not dkdk -x '<swishdescription>\n' -H0   
Body text
-- 
Bill Moseley
mailto:moseley@hank.org
Received on Tue Dec 17 01:17:29 2002