Geeks With Blogs

News These postings are provided "AS IS" with no warranties, and confers no rights.
Locations of visitors to this page virtusa corp sharepoint virtusa.com shehan peruma

Shehan Peruma

Had a requirement where search results should be limited to only items of a list. Naturally, I created a new Search Scope and set a rule of type Web Address to include the particular site holding the lists.

Well...it did work, but not to my expectations. What was happening was that in addition to displaying the list items, the list views were also being displayed and so were other pages in the site....DOH!

Doing a search on the net led me to this site. It was very informative, but it didn't  provided the contentclass value I should use for a list created using the Custom List template....

Took me a while, but eventually tracked down the contentclass value - "STS_ListItem_GenericList"

So, long story short; here are the two rules I used for the scope:

Rule1:
Scope Rule Type: Web Address
Folder: <the site I need to search>
Behavior: Include

Rule 2:
Scope Rule Type: Property Query
Property Query: contentclass = STS_ListItem_GenericList
Behavior: Require

Technorati Tags: ,,
Posted on Wednesday, July 9, 2008 12:27 PM MOSS , Search , Administration & Configuration | Back to top


Comments on this post: Search only items of a custom list

# re: Search only items of a custom list
Requesting Gravatar...
Thanks! That is a good and simple explenation
Left by jmb on Jan 20, 2009 2:48 PM

# re: Search only items of a custom list
Requesting Gravatar...
Thanks for another informative blog. Where else could you obtain this information is written so perfect? I have a project that I am now working, and I realized that information.
office 2007
Left by Office 2007 on Dec 04, 2010 8:46 AM

# re: Search only items of a custom list
Requesting Gravatar...
People change, things go wrong. Just remember life goes on.Inspiring vid! This should be a once a month thing so it can gain momentum. We are all coming together in peace around the world and that's exciting.
Goodbye is a word of sorrow and a word wich can hurt you from the inside, however “see you” is word of happiness knowing that they will come back into your arms.
Left by WOW Gold Cheap on Dec 08, 2011 12:50 PM

Your comment:
 (will show your gravatar)


Copyright © shehan | Powered by: GeeksWithBlogs.net