|
03-31-2004, 09:33 PM | #1 |
Green Mole
Join Date: Mar 2004
Posts: 5
|
Specific Directory Search
Hello There,
I have been reading things regarding this issue throughout the forum, and people have instructed how you can make phpdig search "one directory only" and exclude all other directories. HOWEVER, what if i have a bit site with say 5 sections. I want phpdig to be able to search ALL these directories (but at the command of the visitor only). Lets say we have visitor 1 who wants to search section 3 ONLY, can I implement an option that allows him to do so? And les say visitor 2 wants to search section 5 only, and visitor 3 wants to search section 1 only. Can I implement something like this on my website? I was thinking of giving users the option to "select from a pull down menu" which section they want to search? Is this possible? I'm not an experienced programmer (I'm a designer), but I would really like to do something of this nature. Your help would be GREAT, and I would like to thank you in advance. I look forward to hearing your expertise Best Regards |
04-01-2004, 12:50 AM | #2 |
Green Mole
Join Date: Mar 2004
Posts: 22
|
There's an option to limit the search to specific path. You must set a field name 'site' wich has to match an id of PHPdig site indexing.
Say you have indexed www.mysite.com/texts/ id==1 www.mysite.com/exemple/ id==2 etc. If you only want to search in texts define site=1 Check your database to see id's. Another solution is to write a php script wich look throught the results array and keep only valid entries. Note that can have best results with less than 100 rank. Hope that was clear (I don't have very fluent english) |
04-01-2004, 05:36 AM | #3 | |
Green Mole
Join Date: Mar 2004
Posts: 5
|
Quote:
Also, do I have to make any coding updates to "certain pages" in order to tell phpdig to search only certain directories? |
|
04-01-2004, 05:52 AM | #4 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. Check out this thread.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to limit indexing to a specific directory? | Beans | How-to Forum | 1 | 08-15-2005 11:03 AM |
Search in specific directory | laurentxav | How-to Forum | 7 | 01-04-2005 09:34 AM |
Search in specific directory | tams | Troubleshooting | 1 | 03-15-2004 03:08 AM |
exclude specific directory from searching | rasputin | How-to Forum | 1 | 01-29-2004 08:02 PM |
Search in specific directory ONLY? | mrfuches | How-to Forum | 6 | 01-23-2004 12:06 AM |