none
Content Class Identifier - STSList RRS feed

  • Question

  • Hi

    I don't really know where this question should go. Just just want to know why i can set up a search scope like contentclass = STS_List_Links and that works find out of the box and i get data. but i want to use contentclass = STS_ListItem and target a specific list name. I don't get any data back then, so i tried just using STS_List to get all the lists and that one does not return any resutls either. Then i tried a couple of others i.e STS_Web and STS_List_Announcements and they work perfectly... so why is it that the list one does not work? Do i need to add mappings or something. I'm lost ;-) any help would be great. We are running MOSS 2007 enterprise.


    or is there a way to make the fixed keyword query look at just one specific annoucement list.?
    • Moved by Mike Walsh FIN Thursday, October 29, 2009 4:48 AM "ust want to know why i can set up a search scope like" (From:SharePoint - General Question and Answers and Discussion)
    Wednesday, October 28, 2009 11:18 PM

Answers

  • Hi drnibbles,

     

    If I understand your requirement correctly, you need to add a new Scope Rule to restrict your search to a list type or list item type.

     

    Based on the reference: http://msdn.microsoft.com/en-gb/library/dd584327(office.11).aspx, it seems that the STS_ListItem and STS_List are two types and you need to use a specific list type and list item type.

     

    Such as:

    "STS_Web": // Site

    "STS_List_850": // Page Library

    "STS_ListItem_850": // Page

    "STS_List_DocumentLibrary": // Document Library

    "STS_ListItem_DocumentLibrary": // Document Library Items

    "STS_List_GenericList": // Custom List

    "STS_ListItem_GenericList": // Custom List Item

    "STS_List_Links": // Links List

    "STS_ListItem_Links": // Links List Item

    "STS_List_Tasks": // Tasks List

    "STS_ListItem_Tasks": // Tasks List Item

    "STS_List_Events": // Events List

    "STS_ListItem_Events": // Events List Item

    "STS_List_Announcements": // Announcements List

    "STS_ListItem_Announcements": // Announcements List Item

    "STS_List_Contacts": // Contacts List

    "STS_ListItem_Contacts": // Contacts List Item

    "STS_List_DiscussionBoard": // Discussion List

    "STS_ListItem_DiscussionBoard": // Discussion List Item

    "STS_List_IssueTracking": // Issue Tracking List

    "STS_ListItem_IssueTracking": // Issue Tracking List Item

    "STS_List_GanttTasks": // Project Tasks List

    "STS_ListItem_GanttTasks": // Project Tasks List Item

    "STS_List_Survey": // Survey List

    "STS_ListItem_Survey": // Survey List Item

    "STS_List_PictureLibrary": // Picture Library

    "STS_ListItem_PictureLibrary": // Picture Library Item

    "STS_List_WebPageLibrary": // Web Page Library

    "STS_ListItem_WebPageLibrary": // Web Page Library Item

    "STS_List_XMLForm": // Form Library

    "STS_ListItem_XMLForm": // Form Library Item

     

    Hope the information can be helpful.

     

    Lambert Qin

    TechNet Subscriber Support in forum

    If you have any feedback on our support, please contact mtngfb@microsoft.com  


    Sincerely,
    Lambert Qin
    Posting is provided "AS IS" with no warranties, and confers no rights.
    Thursday, October 29, 2009 6:22 AM
  • If it's a custom list template you can specify the type in a similar manner.  For example, for template type 10001 you could do STS_ListItem_1001.
    Corey Roth blog: www.dotnetmafia.com twitter: twitter.com/coreyroth
    Thursday, October 29, 2009 5:39 PM

All replies

  • Hi drnibbles,

     

    If I understand your requirement correctly, you need to add a new Scope Rule to restrict your search to a list type or list item type.

     

    Based on the reference: http://msdn.microsoft.com/en-gb/library/dd584327(office.11).aspx, it seems that the STS_ListItem and STS_List are two types and you need to use a specific list type and list item type.

     

    Such as:

    "STS_Web": // Site

    "STS_List_850": // Page Library

    "STS_ListItem_850": // Page

    "STS_List_DocumentLibrary": // Document Library

    "STS_ListItem_DocumentLibrary": // Document Library Items

    "STS_List_GenericList": // Custom List

    "STS_ListItem_GenericList": // Custom List Item

    "STS_List_Links": // Links List

    "STS_ListItem_Links": // Links List Item

    "STS_List_Tasks": // Tasks List

    "STS_ListItem_Tasks": // Tasks List Item

    "STS_List_Events": // Events List

    "STS_ListItem_Events": // Events List Item

    "STS_List_Announcements": // Announcements List

    "STS_ListItem_Announcements": // Announcements List Item

    "STS_List_Contacts": // Contacts List

    "STS_ListItem_Contacts": // Contacts List Item

    "STS_List_DiscussionBoard": // Discussion List

    "STS_ListItem_DiscussionBoard": // Discussion List Item

    "STS_List_IssueTracking": // Issue Tracking List

    "STS_ListItem_IssueTracking": // Issue Tracking List Item

    "STS_List_GanttTasks": // Project Tasks List

    "STS_ListItem_GanttTasks": // Project Tasks List Item

    "STS_List_Survey": // Survey List

    "STS_ListItem_Survey": // Survey List Item

    "STS_List_PictureLibrary": // Picture Library

    "STS_ListItem_PictureLibrary": // Picture Library Item

    "STS_List_WebPageLibrary": // Web Page Library

    "STS_ListItem_WebPageLibrary": // Web Page Library Item

    "STS_List_XMLForm": // Form Library

    "STS_ListItem_XMLForm": // Form Library Item

     

    Hope the information can be helpful.

     

    Lambert Qin

    TechNet Subscriber Support in forum

    If you have any feedback on our support, please contact mtngfb@microsoft.com  


    Sincerely,
    Lambert Qin
    Posting is provided "AS IS" with no warranties, and confers no rights.
    Thursday, October 29, 2009 6:22 AM
  • If it's a custom list template you can specify the type in a similar manner.  For example, for template type 10001 you could do STS_ListItem_1001.
    Corey Roth blog: www.dotnetmafia.com twitter: twitter.com/coreyroth
    Thursday, October 29, 2009 5:39 PM
  • Hi drnibbles,

     

    Would you please let me know if Corey’s and my suggestions are helpful for your issue?

    If you need further information, please feel free let me know.

     

    Have a nice day!

     

    Lambert Qin

    TechNet Subscriber Support in forum

    If you have any feedback on our support, please contact mtngfb@microsoft.com  


    Sincerely,
    Lambert Qin
    Posting is provided "AS IS" with no warranties, and confers no rights.
    Tuesday, November 3, 2009 3:07 AM
  • Yes Corey's and your suggestion helped me a long and now i'm a very happy guy...
    Thursday, November 5, 2009 9:03 PM
  • HI

    I want to search a particular list not whole site.Please do needful.

    Tuesday, May 13, 2014 10:44 AM
  • HI mani

    try this as search result query text

    {searchTerms} (contentclass:STS_List_Announcements ) path:http://xyz:port/  ListId:44ce49dc-4971-47dc-b0d7-9a1a36b3a0e8

    "ListId" is ur guid of list guid

    Monday, June 2, 2014 12:54 PM
  • Mr Qin,

    Is there a complete list of all contentclass types (like your very helpful list above, which seems to be missing some, like STS_Site) that you can point me towards?  The link provided as reference seems less complete than what you posted above.  This seems like it should exist somewhere, but I can find it and I've been googling all morning. Any help you could provide, thank you, 

    Nicholas

    Thursday, March 26, 2015 5:10 PM
    • Edited by AH Jamali Monday, April 15, 2019 11:39 AM
    Monday, April 15, 2019 11:39 AM