posts - 27, comments - 20, trackbacks - 0

My Links

News

These postings are provided "AS IS" with no warranties, and confers no rights.
Locations of visitors to this page

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: ,,

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
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: