Archive for the 'SharePoint Search' Category

19
Jan
11

“Your search cannot be completed because this site is not assigned to an indexer” on SharePoint 2010 Foundation

SharePoint 2010 Foundation problems encountered when doing a quick spin-up of a test instance.

  • Search service wouldn’t start
  • Performing a search returned the error “Your search cannot be completed because this site is not assigned to an indexer”

To allow the search service to start the credentials assigned to the service were changed from Local Service to Local System.

To fix the “not assigned to indexer” error use Central Administration.

Navigate to “Manage content databases.”

image

Make sure you have the correct web application selected and click on the content database.

image

Scroll down and find the Search Server section and select the search server from the drop-down.

image

03
Nov
10

Limiting the Search Scope using contentclass in a Property Query Scope Rule

If you find yourself needing to limit the scope of a search to only the items in a list (i.e. you don’t want to return any of the view forms and other aspx pages in the search results) you can use the contentclass as part of the search scope definition.  This is a great way to limit the search results to only the content in a list or library.  Use the STS_ListItem_DocumentLibrary string to implement this rule.

There’s a good article on Jose Barreto’s blog that has a list of the contentclass filter strings.  Niels Loup also has good info on this topic.

Basically you are creating a scope rule using a property query and specifying the property restriction of "contentclass" and making it "required."  This scope rule can be combined with others to define what the scope returns.

image

Keywords:

contentclass

Property Query

Scope Rule

SharePoint MOSS 2007 Search

STS_ListItem_DocumentLibrary




Asif Rehmani’s SharePoint Videos

SharePoint-Videos

Click to access a wealth of SharePoint videos

SharePoint Rx

SharePoint Rx Home

Categories

Posts by Date

December 2019
M T W T F S S
« Jun    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
Support Wikipedia