posts - 41, comments - 200, trackbacks - 0

My Links

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

Tag Cloud

Archives

Post Categories

Search only items of a custom list

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: ,,
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Wednesday, July 09, 2008 12:27 PM | Filed Under [ MOSS Search Administration & Configuration ]

Feedback

Gravatar

# re: Search only items of a custom list

Thanks! That is a good and simple explenation
1/20/2009 2:48 PM | jmb
Gravatar

# re: Search only items of a custom list

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
12/4/2010 8:46 AM | Office 2007
Gravatar

# re: Search only items of a custom list

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.
12/8/2011 12:50 PM | WOW Gold Cheap
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: