Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

could you give an example of a complex search? I've never bothered using advanced Google search patterns


I personally just use "site", "inurl" and the minus sign.

Example: site:news.ycombinator.com -inurl:item google operators


Did not know about inurl - very cool! Thanks


I use "inurl:ycombinator", saves even more time when typing manually.


you could also do:

site:news.ycombinator.com -site:news.ycombinator.com/item


It is pretty dependent on what the search results look like after the first search.

In the above example, I would probably filter out results having to do with other react hooks so adding `-useState` would help accomplish that. If I am googling specific syntax or an error log, then wrapping it in quotes will do a phrase match and filter out results that don't contain the phrase.

I don't use the `site:` search pattern because just adding `github` does a good enough job and

Another pattern I use is `filetype:pdf`

:thinking: and lastly I nearly always use the tools to filter by results within the past year. That does an okay job filtering out older documentation, tutorials, articles etc


`site:stackoverflow.com ruby hash dig` would be an example

Edit: also `site:stackoverflow.com ruby "Hash#dig"` if you wanted an exact match, etc..


Verbatim word match:

“word”

Verbatim phrase match:

“some phrase”

Verbatim word negation:

-“word”

Verbatim phrase negation:

-“some phrase”




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: