Thursday, January 7, 2010

Searching by Columns in Microsoft Office SharePoint Server (MOSS) 2007

How can we search by columns in MOSS? This is a very common question from users. When we want to search by a column in announcements, document library, tasks or any kind of sharepoint lists, we need to create a managed property to map wih the column first and then we will be able to search for that column in the Advanced Search page. We will explain the steps of creating managed properties below. For starting crawls, creating managed properties and mapping crawled properties, you use our Search Manager command-line tool to complete the tasks quickly. To get the tool, please go to the MOSS Search Manager page.

Create a custom column and start a incremental crawl
After you create a new column, e.g. "Status", in a SharePoint list, you need to kick off a crawl. In order to have the crawler find the new column quickly, simply add an new entry to the list with some value in the new column temporarily and then start an incremental crawl. This will make the crawler to find and only crawl the new column you created very quickly.
After the crawl is completed, go to the "Search Settings" page of your Shared Service Provider (SSP) Admin page
Click on "Metadata property mapping

Create a Managed Property and map it to a Crawled Property
Click on "New Managed Property" in the toolbar
In the new form, please enter a name for the managed property, e.g. "PropjectStatus"
Select the correct data type, e.g. "Text"
Click on "Add Mapping" to open up a "Crawled Property selection" WebPage dialog
Type the name of your column in the "Crawled property name" field and click "Find" button, e.g. type "Status"
You will see the column name showing in the "Select a crawled property" list.
For new column, you should select the column name without "ows_" prefix.
But for existing/built-in SharePoint column, you can select the column name with "ows_" prefix. Every built-in SharePoint colum has a crawled property and has the "ows_" prefix.
Press OK to complete the form.
Start another full crawl. This crawl will map column value/data to the managed property for faster searching

Modify the Advanced Search page
In order to search for the column from the UI, you need to add an new entity into the property dropdown in the Advanced Search page.
Go to the Search Center page of your portal
Click on "Advanced Search"
Click on "Site Action" and select "Edit Page"
Click on "Edit" in the Advanced Search box and select "Modify Shared Web Part"
On the right pane, find the XML text box under Properties section.
Copy and paste the XML text into notepad to edit the XML.
Make the following modification:
In the node, please add , e.g. , where DisplayName attribute is to specify the name showed in the property dropdown.
In one of the nodes, please add , e.g.
Copy and paste the XML text from notepad back into the XML text box
Click OK.
Check if the dropdown menu has the new property added.

Test the Managed Property
Go to the "Advanced Search" page
Select the Result Type you added the property
In the "Pick Property" dropdown, select the managed property you newly added.
Type some value, e.g the value you temporarily entered in the very first step
Click Search.

Wednesday, January 6, 2010

Announcements - Summary view webpart

Did you face difficulty to edit "Announcements" - summary view webpart?
I was not able to edit some items in summary view.
Solutions: I have used SharePoint designer 2007 to make it happend.
- Open sharepoint designer 2007.
- Open default.aspx and try to look for spit view.
- select perticular webpart and try to look for respective code.
- you can easily edit the code. and save it.

Friday, November 13, 2009

ASPX page found in search result?

If you turn off feature of aspx page from search results( Never index any ASPX pages on this site ) still you find .aspx page in your search results?

I work a lot regarding this issue. Finally, i compleated this task by created custom search scope.

- From SSP.
- Metadata properties - look for FileExtensions - EDIT
- Check on the "Allow this property to be used in scopes".

Now goahead and create scope.
- Add rule
- select "Property Query"
- Include, FileExtensions = pdf, FileExtensions =doc,FileExtensions =ppt, FileExtensions = mht etc.,
- Excude, FileExtensions =aspx.

then update the scope and re- full crawl.

Done.......you will get only documents in your search results.

Thanks,

Search Alerts are not working in MOSS 2007?

I have tried lot with Search alert in subsites and site collection level.
I checked all this point which is given in this blogs.
http://blogs.technet.com/victorbutuza/archive/2009/02/24/search-based-alerts.aspx
But still no alert E-mail.

Then, I found that we have to create search alerts on the root site collection: http://servername
What I did,
- created search center underneath rootsite collection. http://servername/searchcenter
- redirect the search result page on new searchcenter page (/searchcenter)

Then i tried to test alert on my account.
Done. Finally i got search alert E-mail regarding item change, created as a daily or weekly report.

Thanks,

Thursday, November 5, 2009

SharePoint 2010

Love MOSS? Yes...
SharePoint 2010 is really awesome product.

Here is the some links for SharePoint 2010.
- http://blogs.msdn.com/sharepoint/
- http://dotnetguts.blogspot.com/2009/10/sharepoint-2010-video-tutorial.html

Njoy..

Wednesday, September 30, 2009

Search Scope

SharePoint Search Scopes don’t appear in drop-down list

The “All Sites” and “People” search make use of the Search Center capabilities in MOSS. It appears that you do not have a Search Center created, or the URL for the Search Center is not correct.
a) Create a Search Center Site b) Associate the Site Collection Search settings with that Search CenterYou can get to this by clicking on Search Settings under the Site Collection Administration section. When you select Custom Scope, you need to provide a URL to the search center.
Once you have the site create you will just select People Search Webpart
Edit -> Modify Shared WebPart and in the Miscellaneous section change theTarget search results page URL to /sites/SearchCenter/results.aspx.If you use People search in the dropdownlist. You will need to change the scope by SharedSerivce Provider (SharedServices1 > Search Settings > Scopes > Scope Properties and Rules )
Possibly related posts: (automatically generated)
Add new search scope into display group
Go to Site Setting on your intranet, under Site Collection Administration, click Search Scope.
Select Search Dropdown and tick the search scope
Display a Search Scope in the Search Box and Advanced Search Web Parts

To add the Products search scope to the scopes drop-down list for the Search Box Web Part
In your browser, navigate to your site’s home page.
Click the Site Actions link, and then in Site Settings, click Modify All Site Settings.
In Site Collection Administration, click Search scopes.
Click Search Dropdown to open the Edit Display Group page.
In the Scopes section, for Products, select Display.
Click OK to save your changes.
To add the Products search scope to the displayed scopes for the Advanced Search Web Part
In your browser, navigate to your site’s home page.
Click the Site Actions link, and then in Site Settings, click Modify All Site Settings.
In Site Collection Administration, click Search scopes.
Click Advanced Search to open the Edit Display Group page.
In the Scopes section, select Display for Products.
Click OK to save your changes.
Removing contextual: This sites cope from simple search box

Microsoft Office SharePoint Server 2007 provides two categories of search scopes: Custom and Contextual.
*Custom scopes:o“All Sites”o“People”oThe custom search scopes created via the search or site admin pages*Contextual scopes:o“This Site”o“This List”Mark has posted a blog explain these 2 types.
If you want to remove the “This site” contextual scope all together, then this cannot be done using standard user interface. You need to create a new feature based on one of the existing ones. The sample below replaces the collaboration portal search box with a delegate without the “This site” contextual scopes.
1.Make a copy the existing feature OSearchEnhancedFeature (MOSS Enterprise ed.)2.Change the sequence number to fit below 25, e.g.
3. Add the DropDownMode property
ShowDD_NoContextual
All you need to do now is to package the feature in solution and deploy it. You can do it manually, or use something like the WSPBuilder
How to enable advanced search in a new site collection
http://blog.gavin-adams.com/2007/07/23/how-to-enable-advanced-search-in-a-new-site-collection/

Friday, July 31, 2009

Configure single sign-on (Office SharePoint Server)

Single sign-on (SSO) is a Microsoft Office SharePoint Server feature that provides storage and mapping of credentials such as account names and passwords. Using SSO, portal site–based applications can retrieve information from third-party applications and back-end systems such as Enterprise Resource Planning (ERP) and Customer Relations Management (CRM) systems.
The use of single sign-on functionality enables users to authenticate only once when they access portal site–based applications that need to obtain information from other business applications and systems.
Configuring single sign-on consists of five tasks:
Configure and start the Microsoft Single Sign-On service
Configure Single Sign-On for Office SharePoint Server 2007
Manage the encryption key
Manage enterprise application definitions
Manage account information for an enterprise application definition
Note that you must be logged into the SharePoint Central Administration Web site on a farm server to configure single sign-on (SSO) for Office SharePoint Server 2007. If you attempt to configure SSO on a workstation or any computer that is not a farm server, you will see an error message that reads "Single sign-on cannot be configured from this server. To configure single sign-on, go to the computer running the single sign-on service and specify these settings locally."
Follow the procedures in the sections that follow to configure SSO for your Office SharePoint Server 2007 environment.
Configure and start the Microsoft Single Sign-On service
To use single sign-on, the Microsoft Single Sign-On service (SSOSrv) must be installed on all Microsoft Windows front-end Web servers in the farm. SSOSrv must also be installed on all servers running Excel Services. If the Business Data Catalog search is used, SSOSrv must also be installed on the index server.
SSOSrv is configured by using the Services console. When configuring the service, a logon account is required. The logon account must meet all of the following criteria:
Must be a domain user account. It cannot be a group account.
Must be an Office SharePoint Server farm account.
Must be a member of the local Administrators group on the encryption-key server. (The encryption-key server is the first server on which you start SSOSrv.)
Must be a member of the Security Administrators role and db_creator role on the computer running Microsoft SQL Server.
Must be either the same as the single sign-on administrator account, or a member of the group account that is the single sign-on administrator account.
Configure and start the Microsoft Single Sign-On service
On the server, click Start, Control Panel, Administrative Tools, and then click Computer Management.
In the Computer Management console, expand Services and Applications, and then click Services.
Right-click Microsoft Single Sign-On Service, and then choose Properties.
On the General tab, change the Startup type to Automatic.
On the General tab, under Service Status, click Start.
Click OK to save your changes and close the Properties window.
Repeat steps 1 through 6 for each applicable server in the farm.
Configure Single Sign-On for Office SharePoint Server 2007
Managing server settings for single sign-on includes specifying the appropriate administrator accounts, the single sign-on database server and server name, and time-out and audit log settings.
Note:
You must open Central Administration on the computer that runs Office SharePoint Server 2007 to manage server settings for single sign-on.
Configure SSO for Office SharePoint Server 2007
On Central Administration, on the top navigation bar, click Operations.
On the Operations page, in the Security Configuration section, click Manage settings for single sign-on.
On the Manage Settings for Single Sign-On page, in the Server Settings section, click Manage server settings.
On the Manage Settings for Single Sign-On page, in the Account name box in the Single Sign-On Administrator Account section, type the single sign-on administrator account name by using the form domain/group or domain/username.
Note:
The single sign-on administrator account specifies the set of people who can create, delete, or modify application definitions. The administrator account can also back up the encryption key.
The user or group that you specify as the single sign-on administrator must be all of the following:
Either a Windows global group or an individual user account. This account cannot be a domain local group account or a distribution list.
The same account as the single sign-on service account, if a user is specified. If a group is specified, the single sign-on service account must be a member of that group.
The same as the configuration account for single sign-on, if a user is specified. If a group is specified, the configuration account for single sign-on must be a member of that group.
A member of the Farm Administrators group on Central Administration.
If a group is specified, all users who are added to the group for the purpose of administering single sign-on must be members of the local Administrators group on the encryption-key server. Do not make this account a member of the local Administrators group on the encryption-key server.
In the Enterprise Application Definition Administrator Account section, in the Account name box, type the account name of the group or user who can set up and manage enterprise application definitions. Type the name by using the form domain/group or domain/username.
The enterprise application definition administrator account can manage credentials of an enterprise application definition, including changing the password of a group enterprise application definition and changing or deleting credentials for an individual enterprise application definition.
The user or group that you specify must be the following:
Either a Windows global group or an individual user account. This account cannot be a domain local group account or a distribution list.
A member of the Reader SharePoint group on Central Administration.
In the Database Settings section, in the Server name box, type the NetBIOS name of the single sign-on database server (for example, computer_name or computer_name\SQL_Server_instance). Do not type the fully qualified domain name.
In the Database name box, enter the name of the single sign-on database server.
Note:
Unless you are pre-creating databases, we recommend that you use the default database server and single sign-on database server.
In the Time Out Settings section, in the Ticket time out (in minutes) box, type a value for how many minutes passes before a single sign-on ticket expires. The time-out should be long enough to last between the time that the ticket is issued and the time that the enterprise application redeems the ticket. Two minutes is the recommended value.
In the Delete audit log records older than (in days) box, type a value for how many days the audit log holds records before deleting them.
Click OK.
Manage the encryption key
The first server that SSOSrv is enabled on becomes the encryption-key server. The encryption-key server generates and stores the encryption key. The encryption key is used to encrypt and decrypt the credentials that are stored in the SSO database.
Because the encryption key protects security credentials, we recommend that you create a new encryption key on a regular schedule (for example, every 90 days). We also recommend that you create a new encryption key immediately if you suspect that account credentials have been compromised.
The encryption key must be backed up each time a new key is created. You do not need to back up the encryption key at any other time (except when you are moving the encryption-key server role from one server to another). You must back up the encryption key from the encryption-key server locally; the key cannot be backed up remotely.
You can also use encryption key backup and restore to move the encryption-key server role from one server to another. (Other tasks must also be completed to move the encryption-key server role.)
Note:
You must open Central Administration on the computer that runs Office SharePoint Server 2007 to manage the encryption key.
Manage the encryption key
On Central Administration, on the top navigation bar, click Operations.
On the Operations page, in the Security Configuration section, click Manage settings for single sign-on.
On the Manage Settings for Single Sign-On page, in the Server Settings section, click Manage encryption key.
From the Manage Encryption Key page, you can perform three management tasks:
Create a new encryption key
Back up an encryption key
Restore an encryption key
Create a new encryption key
On the Manage Encryption Key page, in the Encryption Key section, click Create Encryption Key.
On the Create Encryption Key page, select the Re-encrypt all credentials by using the new encryption key check box.
Important:
If you do not re-encrypt the existing credentials with the new encryption key, users must retype their credentials for individual application definitions, and administrators must retype group credentials for group application definitions.
Click OK.
Back up an encryption key
On the Manage Encryption Key page, in the Drive list in the Encryption Key Backup section, click the removable media drive on which you want to store the encryption-key backup.
Click Back Up.
Restore an encryption key
You should always back up the encryption key when you back up the single sign-on database, because the database is useless without the encryption key. Also, before you replace an encryption-key server, make sure to back up the encryption key so that it can be restored on the new encryption-key server.
On the Manage Encryption Key page, in the Drive list in the Encryption Key Restore section, click the removable media drive from which you want to restore the encryption-key backup.
Click Restore.
Manage enterprise application definitions
In the single sign-on environment, the back-end external data sources and systems are referred to as enterprise applications. For each enterprise application that Office SharePoint Server 2007 connects to, a corresponding enterprise application definition needs to be configured.
On Central Administration, on the top navigation bar, click Operations.
On the Operations page, in the Security Configuration section, click Manage settings for single sign-on.
On the Manage Settings for Single Sign-On page, click Manage settings for enterprise application definitions.
Manage account information for an enterprise application definition
If you are using a group to connect to the enterprise application, you need to provide account credentials for the group to use. If individual users are connecting directly to the enterprise application, you can preset or reset user passwords, or you can delete users from the enterprise application definition.
On Central Administration, on the top navigation bar, click Operations.
On the Operations page, in the Security Configuration section, click Manage settings for single sign-on.
On the Manage Settings for Single Sign-On page, in the Enterprise Application Definition Settings section, click Manage account information for enterprise application definitions.
On the Manage Account Information for an Enterprise Application Definition page, in the Enterprise application definition list in the Account Information section, click the application definition for which you want to manage account information.
In the Group account name box, type the name of the group that is allowed access to the enterprise application.
In the Enterprise Application Definition section, select one of the following:
Option
Purpose
Update account information
Enter credentials for the first time or update the credentials used to connect to the enterprise application.
Delete stored credentials for this account from this enterprise application definition
Delete the credentials currently used to connect to the enterprise application.
Delete stored credentials for this account from all enterprise application definitions
Delete the credentials currently used to connect the selected enterprise application from all enterprise application definitions. Deleting stored credentials deletes credentials only for individual accounts; it does not delete credentials for group accounts.
If you select Update account information, complete the following steps:
Click Set.
On the Provide Account Information page, in the Logon Information section, type the user name and password of the account that will be used to connect to the enterprise application.
Click OK.
Click Done.