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 have a webpart, which displays a list with information (title, creation date) about publishing pages under the current web site.

Above this list there should be a search form (filter) to search this pages for the given search string.

What is the best way (performance etc.) to search? A simple CAML-Query with "Contains"-Keyword or using the sharepoint enterprise/fast search?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

First of all, there is difference between Filter and Search.

Using CAML, you query the list. It can be performance intensive if your list is too large.Also, you should be aware of throttle limits(5000 items).

Using Search, you query already indexed information which is better performance wise.

Newly added pages will be available in search results only after crawling Whereas you can find them using CAML as soon as they are published.

share|improve this answer
    
Thanks for that enlightment –  HutzelGutzel Nov 28 '11 at 13:40

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.