Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Special Search engine is needed
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Special Search engine is needed

 Post Reply Post Reply
Author
charon View Drop Down
Newbie
Newbie


Joined: 13 February 2003
Location: Malaysia
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote charon Quote  Post ReplyReply Direct Link To This Post Topic: Special Search engine is needed
    Posted: 13 February 2003 at 11:25pm

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 have a lot of include files, the whole site share the same "Meta Decsription" and "Title"


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:

For instance:

Function getContent(fileInclude)
Dim objFSO
Dim objText
Dim strPage

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

Set objText = objFSO.OpenTextFile(Server.MapPath(fileInclude))

getContent = objText.ReadAll

objText.Close
Set objText = Nothing
Set objFSO = Nothing

End Function

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)
ElseIf nameFile <> "" and codeID = "1" Then

.................................

ElseIf..... 
End If

1.)I really don't know what approach should i take for creating my search engine.
After a long searching, I'm thinking of creating 
a database with 3 fields -> Doc_ title, Doc_ decription, and Doc_URL and use SQL statement as below:
select Doc_decription
from yourtable
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

Doc Title
Doc Decription
Doc URL
Doc Id

Please advice!!! I 'm lost......

Back to Top
faubo View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 May 2002
Location: Brazil
Status: Offline
Points: 560
Post Options Post Options   Thanks (0) Thanks(0)   Quote faubo Quote  Post ReplyReply Direct Link To This Post Posted: 14 February 2003 at 12:41am

Well...

can't you put your content in a DB?

Then you can search the DB, have different tags, use some html on-line editor to edit your content, count visitors, hits... there are a lot of things you can do still using your template.

Back to Top
charon View Drop Down
Newbie
Newbie


Joined: 13 February 2003
Location: Malaysia
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote charon Quote  Post ReplyReply Direct Link To This Post Posted: 14 February 2003 at 1:37am

hi, faubo,

Thanks for your reply.....

U mean the if using the hTML editor, we can retrieve the content in the database if we save the content in database.

Does it mean the content in the database will inclide all the HTML tags??

I have another suggestion on creating the Search Engine use for my site. That is Using the FSO and Database. The FSO is use for searching the content, if the files match the "Seach String" then get the files name. Then compare the filename in the database. if the database contain the file's name, the it will be displayed.

My Database will has three columns:

FileName

File Description

File URL

 

Would it be OK???

Please advice!

Back to Top
charon View Drop Down
Newbie
Newbie


Joined: 13 February 2003
Location: Malaysia
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote charon Quote  Post ReplyReply Direct Link To This Post Posted: 19 February 2003 at 2:34am
why no reply for the above question, i'm implementing the search engine using FSO as I can't revamp my site to become database-driven site in short period.
Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 20 February 2003 at 10:30pm

Probably because of: "I'm using "not a common" way for creating my web-site"

FSO is slow and cumbersome => very few people use the method you have described.


 

There have been many, many posts made throughout the world...
This was one of them.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.