|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
IIS Indexing PDF's
Hi everyone, I'm hving a bit of trouble with IIS6 on win2k3...
I've made a site, and I want part or the site be able to search through the contents of a directory. The dir will just have pdfs in it, and I want to be able to go through them all looking for particular strings... I've got Index Servic running, and it has indexed the correct directory, and I've instelled the Adobe Ifilter, to allow indexing of pdf files... All seems to be fine so far, and it even works when I click on hte "Query the catalogue" link in the snap in! So it is going through the pdfs fine... My problem [query] is this... I found a link to [ http://www.planet-source-code.com/v...&txtCodeId=6209 ] somewhere in devarticles, and in this document, the author says Quote:
The whole point was to edit the files, to make them fit your site... I have no such directory, and even searching my computer for files of *.htx" extentions yields no results... So, basically, am I just wasting my time trying to get the catalogue search thingy to be part of my site, or is it actually possible? Thanks for reading! ![]() <edit>Sorry for rambling, but it's all quite tricky to explian! I hope you understood, and can help!!</edit>
__________________
Support requests via PM will be ignored! |
|
#2
|
||||
|
||||
|
No-one?!
|
|
#3
|
|||
|
|||
|
I don't know, sorry.
__________________
====== Doug G ====== "Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton |
|
#4
|
||||
|
||||
|
Just in case anyone's interested, this is the ASP script I came up with to access the Indexed catalogue from my site...
Feel free to butcher away... ![]() Code:
<%@ Language="VBScript" %>
<% Option Explicit %>
<html>
<body>
...
Suchen nach...<br>
<form action="searchpdfs.asp" method="get" style="display:inline;">
<input type="text" name="query" size="40" />
<input type="submit" value="Search" />
</form>
</center>
<%
Dim strQuery
Dim objQuery
Dim rstResults
Dim objField
strQuery = Request.QueryString("query")
If strQuery <> "" Then
Set objQuery = Server.CreateObject("ixsso.Query")
With objQuery
.Catalog = "datasheets"
.Query = "%"&strQuery&"%"
.MaxRecords = 100
.SortBy = "rank [d]"
.Columns = "filename, path, size, write, " _
& "characterization, " _
& "rank, hitcount"
End With
Set rstResults = objQuery.CreateRecordset("nonsequential")
Set objQuery = Nothing
If rstResults.EOF Then
Response.Write "Sorry. No results found."
Else
Response.Write "<p><strong>"
Response.Write rstResults.RecordCount
Response.Write "</strong> Ergebnisse:</p>"
Do While Not rstResults.EOF
%>
<div style="font-family:tahoma; font-size:12px; color:black; text-align:left; border:1px solid #808080; background:#bcc6ca; padding:4px;" onMouseOver="this.style.background='#c2d9e4';" onMouseOut="this.style.background='#bcc6ca';">
<div style="font-size:14px; font-weight:bold;"><%=rstResults.Fields("rank")%> ~ <%=rstResults.Fields("filename")%></div>
<div style="font-size:14px;"><%=rstResults.Fields("characterization")%></div>
<div style="font-size:14px;"><%=CurrentURL%>/<%=strTempPath%></div>
<div style="font-size:14px; font-weight:bold;"><%=rstResults.Fields("size")%> | <%=rstResults.Fields("hitcount")%> | <%=rstResults.Fields("write")%></div>
</div><br />
<%
rstResults.MoveNext
Loop
End If
Set rstResults = Nothing
End If
%>
</body>
</html>
Last edited by ChiefWigs1982 : May 3rd, 2004 at 02:09 AM. |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > IIS Indexing PDF's |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|