in reply to Perfect Indexer & Search Engine

Perfection is elusive :-)

If I understand your question, you want to know how to construct paths from db entries chosen from a cgi query. That is just a matter of building up a string. Select the db rows that match your query, according to your rules, and build the paths from the results.

From your example data, it looks like the path is built from a db record as "$course/$week/$id.$ext". Is the Type associated to the particular url?

If the url is significant to the search, consider making a directory for each, and putting a DirectoryIndex /cgi-bin/searchscript.pl line in each directory's .htaccess file. the searchscript.pl file can grab the url it was called under.

I'd like to see your whole design, what you show here seems slightly clunky.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: Perfect Indexer & Search Engine
by YAFZ (Pilgrim) on Jun 17, 2003 at 14:00 UTC
    Solution without headaches (after it's implemented, of course) is perfect (until it causes new headaches, of course, well that's what `scalability´ is for, isn't it ;-).

    Yes, the Type is associated with some specific URL. The system knows which template (read script, special actions, etc.) to use on the content according to this Type information.

    I'm sorry for a clunky description of my design :) I tried to be as clear as possible but that was the best I could compose at the time of writing.

    As you got it correctly my problem can be described as `knowing how to construct paths from db entries chosen from a search engine query´. And after considering the words of monks (including yours) I think I'll evaluate HTdig and see what I can do.