Click here to Skip to main content
15,889,034 members
Home / Discussions / Web Development
   

Web Development

 
QuestionPC Info Pin
Illegal Operation13-Mar-06 17:38
Illegal Operation13-Mar-06 17:38 
AnswerRe: PC Info Pin
Vasudevan Deepak Kumar13-Mar-06 18:36
Vasudevan Deepak Kumar13-Mar-06 18:36 
GeneralRe: PC Info Pin
h9n2hk16-Mar-06 9:19
h9n2hk16-Mar-06 9:19 
Questionjavascript help Pin
SVTcobra0413-Mar-06 11:50
SVTcobra0413-Mar-06 11:50 
GeneralRe: javascript help Pin
Guffa13-Mar-06 13:49
Guffa13-Mar-06 13:49 
AnswerRe: javascript help Pin
alex.barylski14-Mar-06 15:35
alex.barylski14-Mar-06 15:35 
QuestionCSS Horizontal Align help Pin
eggie513-Mar-06 11:39
eggie513-Mar-06 11:39 
QuestionIndex Server not finding shtml files Pin
jenn213-Mar-06 5:39
jenn213-Mar-06 5:39 
Hi
I have set up a search with asp to connect to an index server catalog. But it is only finding asp, ppt, doc, and pdf files. I am getting no results for html and shtml. Is there something I am missing, or something that needs to be done at the server level.

Any help is appreciated.

this is my code:
<%
Dim strQuery ' The text of our query
Dim objQuery ' The index server query object
Dim rstResults ' A recordset of results returned from I.S.
Dim objField ' Field object for loop

' Retreive the query from the querystring
strQuery = Request.QueryString("query")

' If the query isn't blank them proceed
If strQuery <> "" Then
' Create our index server object
Set objQuery = Server.CreateObject("IXSSO.Query")

' Set it's properties
With objQuery
.Catalog = "d:\users\emondh\IndexServer" ' Catalog to query
.MaxRecords = 100 ' Max # of records to return
.SortBy = "rank [d]"
.Columns = "filename, path, vpath, " _
& "characterization, DocTitle, " _
& " rank, hitcount"

' Build our Query: Hide admin page and FPSE pages
strQuery = "(" & strQuery & ")" _
& " AND NOT #filename = *admin*" _
& " AND NOT #path *\_vti_*"

' Uncomment to only look for files modified last 5 days
'strQuery = strQuery & " AND @write > -5d"

.Query = strQuery ' Query text
End With

' To set more complex scopes we use the utility object.
' You can call AddScopeToQuery as many times as you need to.
' Shallow includes just files in that folder. Deep includes
' subfolders as well.
'
'Dim objUtility
'Set objUtility = Server.CreateObject("IXSSO.Util")
'objUtility.AddScopeToQuery objQuery, "d:\users\emondh\indexserver", "deep"
'objUtility.AddScopeToQuery objQuery, "d:\users\emondh\indexserver\content", "deep"
'Set objUtility = Nothing

' Get a recordset of our results back from Index Server
Set rstResults = objQuery.CreateRecordset("nonsequential")

' Get rid of our Query object
Set objQuery = Nothing

' Check for no records
If rstResults.EOF Then
Response.Write "Sorry. No results found."
Else
' Print out # of results
Response.Write "

"
Response.Write rstResults.RecordCount
Response.Write "
results found:

"

' Loop through results
Do While Not rstResults.EOF
' Loop through Fields
' Pretty is as pretty does... good enough:
%>


<% If rstResults.Fields("doctitle") = "" Then %>
"><%= PathToVpath(rstResults.Fields("path")) %>

<% Else %>
"><%= rstResults.Fields("doctitle") %>

<% End If %>
    <%= rstResults.Fields("characterization") %>




<%

' Move to next result
rstResults.MoveNext
Loop

rstResults.MoveFirst
Response.Write "
"
		'Response.Write rstResults.GetString()
		Response.Write "
"
End If

' Kill our recordset object
Set rstResults = Nothing
End If
%>

<%
Function PathToVpath(strPath)
Const strWebRoot = "d:\users\emondh\html\"

Dim strTemp

strTemp = strPath

strTemp = Replace(strTemp, strWebRoot, "\")
strTemp = Replace(strTemp, "\", "/")

PathToVpath = strTemp
End Function
%>
AnswerRe: Index Server not finding shtml files Pin
Vasudevan Deepak Kumar14-Mar-06 4:25
Vasudevan Deepak Kumar14-Mar-06 4:25 
Questiongoogle earth Pin
ali kanju12-Mar-06 22:11
ali kanju12-Mar-06 22:11 
AnswerRe: google earth Pin
Colin Angus Mackay15-Mar-06 3:40
Colin Angus Mackay15-Mar-06 3:40 
GeneralRe: google earth Pin
ali kanju15-Mar-06 16:47
ali kanju15-Mar-06 16:47 
GeneralRe: google earth Pin
Colin Angus Mackay15-Mar-06 20:30
Colin Angus Mackay15-Mar-06 20:30 
QuestionDesign Pattern Pin
hasan_shan12-Mar-06 6:29
hasan_shan12-Mar-06 6:29 
AnswerRe: Design Pattern Pin
Vasudevan Deepak Kumar14-Mar-06 4:12
Vasudevan Deepak Kumar14-Mar-06 4:12 
AnswerRe: Design Pattern Pin
Aftar Khan14-Mar-06 20:59
Aftar Khan14-Mar-06 20:59 
GeneralRe: Design Pattern Pin
Johann Gerell21-Mar-06 1:02
Johann Gerell21-Mar-06 1:02 
QuestionAutomatic Letter generation Pin
Krish_Learner11-Mar-06 21:26
Krish_Learner11-Mar-06 21:26 
AnswerRe: Automatic Letter generation Pin
sgatto15911-Mar-06 21:44
sgatto15911-Mar-06 21:44 
GeneralRe: Automatic Letter generation Pin
Krish_Learner15-Mar-06 1:50
Krish_Learner15-Mar-06 1:50 
Questionsubstitute keycode Pin
omkar joshi11-Mar-06 0:31
omkar joshi11-Mar-06 0:31 
AnswerRe: substitute keycode Pin
Shog911-Mar-06 7:08
sitebuilderShog911-Mar-06 7:08 
GeneralRe: substitute keycode Pin
omkar joshi11-Mar-06 22:39
omkar joshi11-Mar-06 22:39 
GeneralRe: substitute keycode Pin
Shog912-Mar-06 5:33
sitebuilderShog912-Mar-06 5:33 
QuestionJScript Pin
militiaware10-Mar-06 22:44
militiaware10-Mar-06 22:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.