close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to exclude certain paths from search

Thread began 9/05/2010 8:17 am by Dennis | Last modified 9/09/2010 4:06 pm by Jason Byrnes | 9659 views | 9 replies |

Dennis

How to exclude certain paths from search

Hi,

I have 2-3 directories/folders I would like to exclude from ALL searches. I have read elsewhere that "-inurl:domain/path" should work to do this. But I don't know where to put this code.

I tried adding it in line 2 of the Yahoo/BOSS_include.php file as such

$url = 'http://boss.yahooapis.com/ysearch/web/v1/-inurl:domain/path'.urlencode($term).'?appid='.$appID.'&view=keyterms&sites='.urlencode($sites).'&abstract=long&count='.$count.'&format=xml&start='.$start;

but this apears to break the search (No Results Found) without my modifications the search works great.

This is the web site whee I am trying to get this to work www.oeshealth.org

I would appreciate any help.

Thanks,
Dennis

Sign in to reply to this post

Jason ByrnesWebAssist

I'm not finding any reference to an inurl parameter that can be passed, where did you read about this?


As far as I'm aware, you would need to prevent the pages from being indexed by the yahoo indexing service to prevent them from being returned by the Search for Boss search engine.

you can add the following meta tag to pages that should not be returned:
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">


you will need to wait for the site to be re indexed for this to take effect though.

Sign in to reply to this post

Dennis

Hi Jason,

Thanks for the reply.

Well, actally I read about the -inurl (and similiarly -site) in the Yahoo Boss forum 549.

Not knowing better (not a programmer) I was hoping I could plug it in somewhere.

Dennis

Sign in to reply to this post

Jason ByrnesWebAssist

OK, i see, what did line 2 of the Yahoo/BOSS_include.php file look like before you made your change?

Sign in to reply to this post

Dennis

Jason,

$url = 'http://boss.yahooapis.com/ysearch/web/v1/'.urlencode($term).'?appid='.$appID.'&view=keyterms&sites='.urlencode($sites).'&abstract=long&count='.$count.'&format=xml&start='.$start;



I also used this thread on this forum as a reference showthread.php?t=13558 but again, not being a programmer, I undoubtedly misuse some reference material.


Dennis

Sign in to reply to this post

Jason ByrnesWebAssist

try adding the -inurl filer like this:

php:
$url = 'http://boss.yahooapis.com/ysearch/web/v1/'.urlencode($term).'?appid='.$appID.'&view=keyterms&sites='.urlencode($sites).'&abstract=long&count='.$count.'&format=xml&start='.$start.'&-inurl=domain/path';




remember to change domain/path to your domain, and the path you wish to exclude.

Sign in to reply to this post

Dennis

Jason,

That didn't seem to do anything? The search still returns hits with the path I'm trying to exclude. here is the line as I tried it

php:
$url = 'http://boss.yahooapis.com/ysearch/web/v1/'.urlencode($term).'?appid='.$appID.'&view=keyterms&sites='.urlencode($sites).'&abstract=long&count='.$count.'&format=xml&start='.$start.'&-inurl=oeshealth.org/oeshealth-orig';


I also tried...
-inurl=www.oeshealth.org/oeshealth-orig
-inurl=oeshealth-orig

It's almost like it isn't getting passed on, I misspelled inurl and everything worked the same with no errors.

the paths I'm trying to exclude are
oescahealthregistry
oeshealth-orig (I'm just using this one for this test).

FYI, the website is www.oeshealth.org using the bottom search box, i've been searching on pra which should return only about 9 hits.

Sign in to reply to this post

Jason ByrnesWebAssist

really the -inurl parameter is not supported by the search for boss tool, I can't say why it is not working.

The best way to prevent certain pages from being included in the search is to tell the spiders to not index or follow using the meta tags I suggested originally.

Sign in to reply to this post

Dennis

OK, will do Jason.

Thanks for giving it a try.

Dennis

Sign in to reply to this post

Jason ByrnesWebAssist

Sure, sorry I couldn't get it to work.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...