9

I want to search for results from a specific site but only from a specific section of the site, I want to exclude results that have url segments, for example:

What I want to search for:

http://domain.com/productx

What I want to exclude

http://domain.com/productx/details/further

What query would I use in Google search to get the first results only above.

Kara
  • 6,115
  • 16
  • 50
  • 57
condo1234
  • 3,285
  • 6
  • 25
  • 34
  • This question appears to be off-topic because it is about using a web service. You may be able to get help on [Web Applications](http://webapps.stackexchange.com/). – unor Nov 02 '13 at 02:55

2 Answers2

16
site:domain.com/productx -domain.com/productx/details/further

Eg. search all stack overflow but not unanswered directory:

site:stackoverflow.com -stackoverflow.com/unanswered
Devnook
  • 1,103
  • 7
  • 9
  • Have you tried this recently? It is my impression that this (or similar ways to exclude paths) used to work but does not anymore. (The site: still works of course, but excluding the paths does not). – Sybille Peters Jul 10 '23 at 08:01
2

Using Google advanced search page and directing it to search on one site only with terms appearing only in the text of the page would not search linked pages.

zeiddiez
  • 62
  • 9
  • is there a specific query using search operators? – condo1234 Oct 22 '13 at 15:10
  • 1
    I believe intext is the operator for searching only on page text. – zeiddiez Oct 22 '13 at 15:17
  • I know there is inurl also, but how would I use this to exclude certain text or uri segments, i.e. I only want mydomain.com/products and not mydomain.com/products/s.. – condo1234 Oct 22 '13 at 15:39
  • 1
    The following should provide the functionality to search only on the specific page given and not any domains linked from said page -- allintext: term site:http://www.website.com/index.html (pardon the formatting as I'm on my phone) – zeiddiez Oct 22 '13 at 15:56