
03/07/2002, 10:22
|
| | Fecha de Ingreso: enero-2002 Ubicación: Callao - Perú
Mensajes: 1.127
Antigüedad: 23 años, 4 meses Puntos: 0 | |
Re: Index Server! <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Index Server </title>
</head>
<body>
<%
Dim sSearchString
Dim oQuery
sSearchString = Request.Form("query")
Const SEARCH_CATALOG = "asp" 'tienes que cambiar esta linea con el nombre del catalogo
%>
<%
Set oQuery = Server.CreateObject("IXSSO.Query") 'este componente se puede usar solo tienes instalado el Index Server
oQuery.Catalog = SEARCH_CATALOG
oQuery.Query = "@all " & sSearchString & " AND NOT #path *_* AND NOT #path *downloads* AND NOT #path *images* AND NOT #filename *.class AND NOT #filename *.asa AND NOT #filename *.css AND NOT #filename *postinfo.html"
oQuery.MaxRecords = 200
oQuery.SortBy = "rank[d]"
oQuery.SetQueryFromURL(Request.ServerVariables(&qu ot;QUERY_STRING"))
oQuery.Columns = "DocAuthor, vpath, doctitle, FileName, Path, Write, Size, Rank, Create, Characterization, DocCategory"
Set oRS = oQuery.CreateRecordSet("nonsequential")
%>
<%
If oRS.EOF Then
Response.Write "No se encontrarón páginas para la búsqueda de <i>" & sSearchString & "</i>"
Else
Do While Not oRS.EOF
Response.write "<b>vp:</b> " & oRS("vpath") & "<br>"
Response.write "<b>wr:</b> " & oRS("Write") & "<br>"
Response.write "<b>ran:</b> " & oRS("Rank") & "<br>"
Response.write "<b>ran:</b> " & oRS("DocCategory") & "<br>"
Response.write "<b>FileName:</b> " & oRS("FileName") & "<br>"
Response.write "<b>path:</b> " & oRS("path") & "<br>"
Response.write "<b>doctitle:</b> " & oRS("doctitle") & "<br>"
Response.write "<b>Size:</b> " & oRS("Size") & "<br>"
Response.write "<b>Create:</b> " & oRS("Create") & "<br>"
Response.write "<b>Write:</b> " & oRS("Write") & "<br>"
response.write("URL : http://" &Request("server_name")&oRS(&quo t;vpath")&"<br>")
Response.write "<b>Characterization:</b> " & oRS("Characterization") & "<hr>"
oRS.MoveNext
Loop
End If
%>
<%
Set oRS = nothing
Set oQuery = nothing
%>
</body>
</html>
SaLuDoS dE:
PePeLuChO dEl PeRú PaRa El MuNdO ;) |