limit results to a directory

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

limit results to a directory

Post by Thunderstone »




Hi - we're indexing a directory structure that looks like:

top
|
-- xxx
|
-- yyy
|
-- zzz

..and so on. I'd like to make a search form which calls the search on
this index which allows limiting results to those from a particular
subdirectory. I.e., a search string input field, with a drop down box
with 'all', 'xxx', 'yyy', and 'zzz' as options, which would cause
webinator to return results from either all, or the just corresponding
directory under top.

Can anyone provide some pointers for this?

Al

P.S. currently using the free webinator package...



User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

limit results to a directory

Post by Thunderstone »




See http://www.thunderstone.com/texis/webin ... /full.html
for an example of two ways to do this.

Basically, you can either index the directories into separate
databases and change the db for each, which is faster for large
indexes. Or you can modify the search script and add " and Url matches
$path", where $path is "www.mysite.com/xxx/%", to restrict the search
to that directory. This is slower but takes less disk space and is
easier to maintain (only one database).

-Kai


anders.rask
Posts: 11
Joined: Thu Sep 06, 2001 4:38 am

limit results to a directory

Post by anders.rask »

The link above doesnt seem to work (i realize its an old message, but i have a similar request and would like to see the two examples).

Could you post a new link to the examples please?

regards Anders
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

limit results to a directory

Post by John »

John Turnbull
Thunderstone Software
Post Reply