Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm currently assigned with creating a custom search page from scratch. Thus, I need a query that will go through all of our site and find me pages that contain key words on these pages. Does sharepoint have a method I can call to retrieve such result?

share|improve this question
    
How is that different than what the out-of-the-box search does? –  Dave Wise Jul 16 '12 at 20:43

1 Answer 1

Are they publishing pages and when you say keywords are they going to be fields on pages from layout pages? You need to explain your architecture and requirements a bit more.

There are two ways to get your pages.

1 - you may write a webpart to directly get all the pages using the object model with a caml query. 2 - you can use the enterprise or fast search to crawl your pages and use the search service to return results which will require some settings on the search service like scopes and metadata properties. In this case you can either use the search object model or search web service to get results.

if you give some more details whether you have made any decisions on these or you have requiremeents to use one of these approaaches I can provide more detail on objects and methods with examples.

share|improve this answer
    
All the pages on the site are customly made using "web.RootFolder.Files.Add()". And by keyword I mean any where on the page. –  Caesar Jul 16 '12 at 20:45
    
Do you simply have pages with content and you want to type a word and search for all pages that have that word in the content. –  Ismail Durgut PhD Jul 16 '12 at 20:59

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.