Guess I'm using "not a common" way for creating my web-site.
I create a templete which is in .asp format, and all the content is in .inc format (except some in .asp).
I use FSO to maniplulate the content.
When the user activate the link for the navigator, the name of the file will be passed to the function:
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objText = objFSO.OpenTextFile(Server.MapPath(fileInclude))
getContent = objText.ReadAll
Set objText = Nothing
Set objFSO = Nothing
nameFile = Request.QueryString("nf") "http://www.sitename.com/default.asp?action=feature&cid=0
If nameFile <> "" and codeID = "0" Then 'the code ID is to indicate the condition of the file
fileName = nameFile & ".inc"
strPage = getContent(fileName)
1.)I really don't know what approach should i take for creating my search engine.
After a long searching, I'm thinking of adopting one of these way:
Way1: using the index server 3 (http://asp-help.com/articles/2000_indexserver3.asp). I feel it is easy to understand and implement. But I still have problem on specifying the URL of the pages. May be I need to manually create the link. What I mean to manually create the link is I use the split function (or may be FSO object) to split the URL return by Vpath : for instances:
"http://www.website.com/" & Foldername & "action=" & FileName & "cid=" & id &
Way2: use FSO method(http://www.4guysfromrolla.com/webtech/102499-1.shtml )but I 'm facing problem on get the decription of the file since the File object don't have this property.
Way3 : Create a database with 3 fields -> Doc_ title, Doc_ decription, and Doc_URL and use SQL statement as below:
where memofield like '*Word1*'
or memofield like '*Word2*'
to search for the match.
I don't know whether they are applicable or not.
2.) I'm wondering how do most of the web-sites implement their search engine, for example: asp101.com.
Their content is in database -driven format as well as static content which is wtitten in .asp and html format.
3.) I don't know whether what i'm thinking is the correct way, is the asp101.com search engine is implemented in such as way where by it searchs the page through the database which has fields such as
Please advice!!! I 'm lost......