searching static files located on local hard drives
3029searching static files located on local hard driveshttp://www.infinetsoftware.com/content/indexserver.aspWith Windows NT 4, you had to manually add the directories to index, then restart the service to begin indexing the data. With Windows 2000, once you have turned on Index Server (use the "Services" app under "Administrative Tools" to start it and then select "Automatic" as the startup type), your directories on the local hard drive are already setup.
Index Server on Windows 2000 comes with two preconfigured catalogs. One is "System" and the other is "Web." From these names I am sure you can guess what each is for. The "System" catalog indexes the directories "C:" and "C:Documents and Settings," and excludes the local user temp and cache folders. The "Web" folder indexes the web root, the IIS help files, the IIS admin files, the sample files, and the database and printer folders.
I was thinking one day, wouldn't it be nice if any given web site knew what I was specifically looking for when I arrived? I think it would be very helpful.
Then I started thinking about it a little more, and decided it was time to do something about it. At first, I sat down and wrote a letter to my congressman, but then decided he probably would have no idea what I was talking about, so I would have to resort to getting down and dirty with the code myself.
My Father-in-law runs a small e-commerce site that I designed. Which was a perfect platform to test out my new idea once completed. I sat down, wrote the code, uploaded it to the server and tested it out. Much to my chagrin, it worked perfectly, and proved to be a very good idea.
Most web trend articles say that, if a user does not find what they are looking for in 3 clicks or less, the majority of them will move on to greener pastures. This code will bring them to exactly where they want to go in 1 click
We will begin with creating a set of ASP pages to index the site content and then insert into the database. Here you will learn how easy it practically is to deal with databases in ASP. All statements of SQL select, insert, update and delete will come into play.
With Windows NT 4, you had to manually add the directories to index, then restart the service to begin indexing the data. With Windows 2000, once you have turned on Index Server (use the "Services" app under "Administrative Tools" to start it and then select "Automatic" as the startup type), your directories on the local hard drive are already setup.
Index Server on Windows 2000 comes with two preconfigured catalogs. One is "System" and the other is "Web." From these names I am sure you can guess what each is for. The "System" catalog indexes the directories "C:" and "C:Documents and Settings," and excludes the local user temp and cache folders. The "Web" folder indexes the web root, the IIS help files, the IIS admin files, the sample files, and the database and printer folders.
This article, by Jerry Wood, shows a nifty little script, which, with just one ASP page, allows you to dynamically search a column in a table using a string comparison. This one script can be used over and over due to its dynamic nature! Hopefully this script will save you valuable time by cutting down on the often repetitive task of creating small, searching scripts!
So, you may be wondering how to use this script! Well, trust me, it isn't difficult. Let's say
There are many ways to implement a search on your site - I asked you to pick from three of them in the search survey I did recently.
The method that most people picked entailed me reading every page on the site and hand-picking keywords. These keywords were entered into a new table, ArticlePages. You can get the source code for the entire site, including the database
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.