Arun Paul
Arun Paul

Reputation: 167

Exact match in google search

I am trying to make an application which find all the copied code in a project. But basically my question is purely related to google search. I made a search for the keyword "public void bubbleSort(int[] arr){" and this was the result.

In the first page of search results, only the last url makes a perfect match with my keyword. Can i tell google with some search keywords so that it will give more importance to pages with an exact match of my search keyword?

Upvotes: 2

Views: 3966

Answers (2)

DotDotJames
DotDotJames

Reputation: 372

although the plus sign, +, is no longer an available Google search filter, you can use quotes, or after running the query selecting Search Tools and then verbatim under the All Results drop down.

You can also search the Google code archives, https://code.google.com/ or try some of the other code search engines around the Internet.

Upvotes: 2

John Faulkner
John Faulkner

Reputation: 1010

+"public void bubbleSort(int[] arr){"

the plus sign means to include this term no matter what. the quotes turn the loosely coupled words into a single term.

for a full list of Google syntax operators:

[web]: https://support.google.com/websearch/answer/136861?hl=en

Upvotes: 1

Related Questions