Hi, we are implementing a custom XSL for our search appliance. Is there a list somewhere of the possible parameters/variables we might include in the individual search result template?
We want to include Date and Author but can't figure out how to do so. It would help to know what fields the appliance captures and what they're called.
The "default" or sample XSL sheets provided don't appear to match the "canned" versions available or we'd just look at one that includes the Modification Date to see what it is called. Also is there any way to format the date?
> We want to include Date and Author but can't figure out
> how to do so. It would help to know what fields the
> appliance captures and what they're called.
Do you have any custom fields defined in your crawl? (i.e. are they shown in list/edit URLs for your pages?)
Parametric Fields (if you have a Parametric Appliance) or Additional Fields (if you have a non-Parametric Appliance) need to be defined first with the crawl before they can be output with the search.
I figured we would add Additional Fields eventually, but initially wanted to know what default fields the appliance is already capturing and how to call them.
thanks - I read elsewhere on this site about that and couldn't get it to work until you reminded me that I had to have both "XSL stylesheet" AND allow XML set.
following up for anyone who might come upon this thread later, there actually *IS* a list of the default fields Thunderstone uses. It's in a very helpful section of the manual (search.foo.org/applianceman )
Field Description
id Unique record id
Hash Document hash for duplicate content detection
Size Size of retrieved html document
Visited The date the page was modified (or fetched if modified not set)
Dlsecs The number of seconds to fetch the page
Depth The number of URLs traversed to reach the page
Url The URL of the real HTML page
Title The Title of the page
Body The textual content of the page, in UTF-8
Keywords The keywords meta data from the page
Description The description meta data from the page
Meta Other meta data from the page, separated by newlines
Catno List of categories to which the URL belongs
Modified The date the page was modified
NextCheck The date the page should next be refreshed
Views The number of times this URL has been viewed (shown in results)
Clicks The number of times this URL has been clicked (in results)
CTR Click-through ratio
Pop Popularity (number of pages linking to this page)
MimeType MIME type of original page (future use)
Charset Character set of original page (future use)
If I look at the "List URLs" area I see a list of info displayed. One of which is "Description" that is pulled from the meta tags I'm using on my html pages. Is there a way to read this in instead of the "Abstract" parameter when it's not listed as "-none"?
That helps, but is there a way to show either both Description AND abstract, or to check to see for Description first, and if it's empty to show abstract? The Description is empty for .pdf files, etc. but is helpful for html pages...
TIA