{"id":718,"date":"2005-05-19T09:30:54","date_gmt":"2005-05-19T16:30:54","guid":{"rendered":"http:\/\/www.faganfinder.com\/wp\/2005\/05\/19\/718\/"},"modified":"2009-12-30T19:15:47","modified_gmt":"2009-12-31T02:15:47","slug":"yahoo-site-searching-syntax","status":"publish","type":"post","link":"https:\/\/faganm.com\/blog\/2005\/05\/19\/718\/","title":{"rendered":"yahoo site searching syntax"},"content":{"rendered":"\n<p>Here&#8217;s a summary of what I&#8217;ve learned when restricting <a href=\"http:\/\/search.yahoo.com\/\">Yahoo! search<\/a> to specific websites.<\/p>\n<ul>\n<li>\n<h4>always use brackets<\/h4>\n<p>prevents errors, especially with boolean.  not really necessary in this example, but nevertheless: <kbd>(search terms) (site:example.com)<\/kbd><\/p>\n<\/li>\n<li>\n<h4>use capitals for boolean<\/h4>\n<p><kbd>site:example.com OR site:example2.com<\/kbd><\/p>\n<\/li>\n<li>\n<h4>specify field names always<\/h4>\n<p>Use <kbd>site:example.com OR site:example2.com<\/kbd> not <strike><kbd>site:(example.com OR example2.com)<\/kbd><\/strike><\/p>\n<\/li>\n<li>\n<h4>how to specify paths<\/h4>\n<p>to specify a website that isn&#8217;t a (sub)domain use <kbd>site:example.com inurl:folder\/folder2<\/kbd> for the website example.com\/folder\/folder2\/<\/p>\n<p>One problem is that if you are specifying a domain name and a website with a path, results for the latter will be ranked higher, because they match <em>both<\/em> <kbd>site:<\/kbd> and <kbd>inurl:<\/kbd>. To compensate for that, you could use a different method: <kbd>inurl:example_com\/folder\/folder2<\/kbd>. Note the use of the underscore instead of a dot for the last (and only the last) dot in the domain name. Also, in rare circumstances, this will find pages that are not in example.com, but have those terms in the URL somewhere.<\/p>\n<\/li>\n<li>\n<h4>specifying multiple folders in a site<\/h4>\n<p><kbd>site:example.com (inurl:folder OR inurl:folder2)<\/kbd><br \/>\nor<br \/>\n<kbd>inurl:example_com\/folder OR inurl:example_com\/folder2<\/kbd><\/p>\n<\/li>\n<li>\n<h4>specifying multiple sites with paths<\/h4>\n<p>this can be derived from previous points, but here goes: <kbd>site:example.com OR (site:example2.com inurl:folder)<\/kbd> or more advanced: <kbd>site:example.com OR site:example2.com OR (site:example3.com (inurl:folder OR inurl:folder2 OR inurl:folder3))<\/kbd><\/p>\n<\/li>\n<li>\n<h4>Use OR for multiple exclusion<\/h4>\n<p><kbd>NOT (site:example.com OR site:example2.com)<\/kbd><\/p>\n<\/li>\n<li>\n<h4>putting it all together<\/h4>\n<p><kbd>(search terms) (site:example.com OR (site:example2.com inurl:folder)) NOT (site:sub.example.com OR (site:example.com inurl:somefolder))<\/kbd> not that this is restricting to two websites (one with a path) but excluding sites from that first website in a specific subdomain or folder<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a summary of what I&#8217;ve learned when restricting Yahoo! search to specific websites. always use brackets prevents errors, especially with boolean. not really necessary in this example, but nevertheless: (search terms) (site:example.com) use capitals for boolean site:example.com OR site:example2.com &hellip; <a href=\"https:\/\/faganm.com\/blog\/2005\/05\/19\/718\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[111,112,113],"class_list":["post-718","post","type-post","status-publish","format-standard","hentry","tag-search","tag-syntax","tag-yahoo"],"_links":{"self":[{"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/posts\/718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/comments?post=718"}],"version-history":[{"count":0,"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/posts\/718\/revisions"}],"wp:attachment":[{"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/media?parent=718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/categories?post=718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/faganm.com\/blog\/wp-json\/wp\/v2\/tags?post=718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}