i dunno if this is the right forum to post this , but i couldn't find any other alternative
so here it goes
i'm using MS index server on a winXP machine to deliver a small search engine for an intranet(with ASP of course),nothing fancy.
Now everything worked just fine . My problem is with the hit highlighting feature:
the index server allows you to display a summary or a full hit-highlighted version of the document where the search keyword is encountered,but it does it in a very terrible way because the page it displays is not formatted according to the document's format,it is done with a unique format for all types of documents.So suppose the keyword was found in a pdf file, when you display the full hits in the document, the document does not open as a pdf instead i get a bunch of lines with pdf related formatting instructions...(see screenshot)
now this is done using webhits.dll with a page(template) that you define :
hits.dwt(template)
Expand|Select|Wrap|Line Numbers
- <%@LANGUAGE="VBSCRIPT" CODEPAGE="1256"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
- <!-- TemplateBeginEditable name="doctitle" -->
- <title>Untitled Document</title>
- <!-- TemplateEndEditable -->
- <!-- TemplateBeginEditable name="head" -->
- <!-- TemplateEndEditable -->
- </head>
- <%BeginDetail%>
- <%EndDetail%>
- </html>
is there any way to set the mime type for the summary/full hits display page
if anyone knows the how-to lemme know
thanks