Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

If I search for e.g. "Something Awesome," I'd like the results to only include pages with "something" and "awesome" in the actual page title itself (they may also be in the page content, but must be in the title)

The site in question is a password-protected private Site on a Google Apps account, so none of the pages are included in the general Google index (and therefore a CSE wouldn't work).

share|improve this question

migrated from superuser.com Jul 25 '11 at 13:33

This question came from our site for computer enthusiasts and power users.

1 Answer 1

Try intitle: operator.

The query intitle:term restricts results to documents containing term in the title. For instance, [ flu shot intitle:help ] will return documents that mention the word “help” in their titles, and mention the words “flu” and “shot” anywhere in the document (title or not).

Note: There must be no space between the intitle: and the following word.

Putting intitle: in front of every word in your query is equivalent to putting allintitle: at the front of your query, e.g., [ intitle:google intitle:search ] is the same as [ allintitle: google search ].

In your case, you can use the following query:

[ intitle:something intitle:awesome -something -awesome ]

This makes sure your terms appear in the title but not in the page itself.

share|improve this answer
    
This works with general google search (at google.com) but isn't returning any results with Googles Sites search built into Google Sites. –  Benj Jul 25 '11 at 20:06
    
If your site is not indexed by Google, I don't think it is quite possible. –  Mehper C. Palavuzlar Jul 25 '11 at 20:12
    
I'm afraid that's the case, then. It needs to be a private site, so it can't be in the Google index. Oh well... –  Benj Jul 25 '11 at 20:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.