S_Shrum has asked for the wisdom of the Perl Monks concerning the following question:
I have written a fairly sweet little site robot script that I wanted to use to build a site content index. This way I could do searches on my own file and set it up anyway I wanted without having to pay a search engine company to do it for me and without having to put up stupid little banners. Additionally, I have the time to do it ;-)
Anyways, the script works ok but I want to expand upon it. It's been awhile since I wrote it and I'm a bit fuzzy with my Perl.
I want to allow the user to specify what tags within the document they want to search and store to the content index db. I'm looking for a way to do 2 things: search and retrieve the text between the open and close tag of any user specified type (this includes XML tags) and a nice little loop to go through all the user specified ones.
I figured I would let the user set the fields and order in the following order:
...indexer.pl?tag1=title&tag2=author&tag3=bodytag0 is *always* the complete URL to the page.
This way anybody could create their own content index to run searches on. Let me know if somebody else has made one and I'll stop now otherwise let me know if I've got all my marbles in one bag. Seems to me like somebody must have built one before as this seems like a good idea to me.
TIA
======================
Sean Shrum
http://www.shrum.net
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help need with code loop
by Kanji (Parson) on Jul 23, 2002 at 07:50 UTC | |
|
Re: Help need with code loop
by S_Shrum (Pilgrim) on Jul 23, 2002 at 06:28 UTC | |
|
•Re: Help need with code loop
by merlyn (Sage) on Jul 23, 2002 at 12:53 UTC |