Skip to main content.
home | support | download

Back to List Archive

<swishdecription> returning blank?

From: Tim Hartley <tim.hartley(at)not-real.planetpdf.com>
Date: Thu Oct 28 2004 - 02:08:49 GMT
Hi Bill, all.

I'm using the File Access method to index a folder of .asp files (as it can do it waaaaaaaay quicker than spidering them)
Anyway, I'm having problems in that it doesn't seem to be getting any values in the <swishdescription>, so my results are coming back with the <swishrank><swishtitle><swishdocpath><swishlastmodified>, but NOT <swishdescription>. All my other indexes return it. Mind you they use either the dirtree.pl or swishspider.pl to create the indexes. Anyway, details follow:

---CONFIG FILE---
IndexFile c:\swish-e\ForumVirtualIndex.index
IndexDir C:/Inetpub/VirtualRoot/planetpdfforumarchive
IndexOnly .asp
StoreDescription HTML2 <swishdescription> 2000
FileRules filename is forum6\.asp
FileRules filename is forum52\.asp
FileRules filename is forum2\.asp
FileRules filename is forum3\.asp
FileRules filename is forum5\.asp
FileRules filename is forum34\.asp
FileRules filename is forum9\.asp
FileRules filename is forum68\.asp
FileRules filename is forum18\.asp
FileRules filename is forum73\.asp
FileRules filename is forum4\.asp
FileRules filename is forum7\.asp
FileRules filename is forum12\.asp
FileRules filename is attachlist\.asp
IndexReport 3
ReplaceRules Replace "C:/Inetpub/VirtualRoot/planetpdfforumarchive" "http://www.planetpdf.com/forumarchive"


---SEARCH COMMAND---
swish-e -S fs -c virtualRoot.conf

--SEARCH COMMAND SUMMARY---
Removing very common words...
no words removed.
Writing main index...
Sorting words ...
Sorting 168,888 words alphabetically
Writing header ...
Writing index entries ...
  Writing word text: Complete
  Writing word hash: Complete
  Writing word data: Complete
168,888 unique words indexed.
5 properties sorted.
85,388 files indexed.  715,623,219 total bytes.  18,538,922 total words.
Elapsed time: 00:10:09 CPU time: 00:10:09


---DISPLAY COMMAND IN THE 'search_results.asp' FILE ---

strParam = "-w """ & strSearchWords & """ -b " & intStart & " -m " & intPage & " -x ""\<BR\><swishrank>|<swishtitle>|<swishdocpath>|<swishlastmodified>|<swishdescription>"" -f ""c:\swish-e\ForumVirtualIndex.index"""
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "C:\SWISH-E\swish-e"
Executor.Parameters = strParam
Executor.ShowWindow = True
strResult = Executor.ExecuteDosApp 'runs the search and returns the results as text

---EXAMPLE OF OUTPUT OF 'strResult'---
(Following the format of <swishrank>|<swishtitle>|<swishdocpath>|<swishlastmodified>|<swishdescription>)

# SWISH format: 2.4.2 # Search words: document # Removed stopwords: # Number of hits: 15409 # Search time: 0.078 seconds # Run time: 0.094 seconds
1000|Planet PDF Forum Archive - RE: Delphi Developer searching for PDF solution|http://www.planetpdf.com/forumarchive/93832.asp|2004-09-03 13:00:26 AUS Eastern Standard Time|
955|Planet PDF Forum Archive - Transferring icons from document to document|http://www.planetpdf.com/forumarchive/86133.asp|2004-09-03 13:15:40 AUS Eastern Standard Time|

So, as you can see there's nothing being returned where <swishdescription> is being called. I've tried using PropertyNames and PropertyNameAlias in the config file to try and get a description of various sections of the .ASP files, like <body>, etc, but always with the same result of a blank <swishdescription>. So, I'm kinda stuck, and am hoping that I'm overlooking something really obvious...

Regards,

Tim Hartley
Received on Wed Oct 27 19:08:53 2004