PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 03-31-2004, 09:33 PM   #1
kh44na
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
kh44na is offline   Reply With Quote
Old 04-01-2004, 12:50 AM   #2
synnalagma
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)
synnalagma is offline   Reply With Quote
Old 04-01-2004, 05:36 AM   #3
kh44na
Green Mole
 
Join Date: Mar 2004
Posts: 5
Quote:
Originally posted by synnalagma
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
[/b]
I understand that id=1 means /texts and id=2 is equal to example. But where do I find these IDs again? Sorry?

Also, do I have to make any coding updates to "certain pages" in order to tell phpdig to search only certain directories?
kh44na is offline   Reply With Quote
Old 04-01-2004, 05:52 AM   #4
Charter
Head Mole
 
Charter's Avatar
 
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.
Charter is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT -8. The time now is 03:18 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.