[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
YAFR: article.php3
Yet another feature request!
To be able to do drill down searches, I need to be able to determine the
category by the URL for each article. There are two ways I can think of
to do this:
1) Pass the category path string to article.php3 (only so that it is in
the URL) like:
/articles/article.php3?id=110&c=1.2.5.7
2) Have the mod_perl search wrapper do a DB query against every result
for every search that htsearch turns up to determine what categories each
result (article) is in.
I don't think I need to say which option I prefer. :-)
Also I'd like to get a little feedback about the drill down and how it
will work in terms of limiting searches.
Basically since each category can have multiple roots and multiple
branches the following is equivalent in terms of restrictions:
c=1.2.5.7.9
and
c=1.3.8.9
In otherwords, only the last category ID is significant. And since:
/articles/article.php3?id=110&c=1.2.5.7.9
/articles/article.php3?id=110&c=1.3.8.9
are different URL's, only limiting searches by the last significant
category (the 9) would provide multiple hits for the same article. Hence
restrictions on searches should contain the entire category path string.
If I'm missing something, let me know.
-Aaron