4 ms·
could you give an example of a complex search? I've never bothered using advanced Google search patterns
by dajohnson89 7y ago
could you give an example of a complex search? I've never bothered using advanced Google search patterns
- anaphor 7y ago`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..
- ma2rten 7y agoI personally just use "site", "inurl" and the minus sign. Example: site:news.ycombinator.com -inurl:item google operators
- harrisonjackson 7y agoDid not know about inurl - very cool! Thanks
- safeplanet-fesa 7y agoI use "inurl:ycombinator", saves even more time when typing manually.
- collinmanderson 7y agoyou could also do: site:news.ycombinator.com -site:news.ycombinator.com/item
- harrisonjackson 7y agoIt 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
- davidjnelson 7y agoVerbatim word match: “word” Verbatim phrase match: “some phrase” Verbatim word negation: -“word” Verbatim phrase negation: -“some phrase”