One of the most common ways to search in SharePoint is to find a document based on a text managed property. SP2010 search is more scalable than SP2007 and one reason is the new feature of reducing storage space for text type managed properties. When creating a new text managed property you can set the “Reduce storage requirements for text properties by using a hash for comparison” option. If you do not set this option the “=” or LIKE operator will not work. You can only use the CONTAINS full text predicate function with the FullTextSQLQuery class or the “:” operator with the KeywordQuery class, both of which will return results where the term is located within the text. This does not produce an exact match.
To fix this issue open a power shell window from Start menu–>All Programs–>Microsoft SharePoint 2010 products–>SharePoint 2010 Management Shell and execute below script (as an example I’ve used ‘Title’ property, you can try other properties like Filename, Path, Author etc),
- $ssa=Get-SPEnterpriseSearchServiceApplication
- $mp=Get-SPEnterpriseSearchMetadataManagedProperty -SearchApplication $ssa -Identity Title
- $mp.IsInDocProps=$true
- $mp.MaxCharactersInPropertyStoreIndex=450
- $mp.Update()
To verify browse to central administration (You can find a shortcut in Start menu–>All Programs–>Microsoft SharePoint 2010 products) and select “Manage service applications” under “Application Management”, select “Search service application” –> Metadata properties (under Queries and Results) and choose a property (for example: Filename) and see the option “Reduce storage requirements for text properties by using a hash for comparison” is checked and do a full crawl.
Performing a full crawl is mandatory! Without which changes will not take effect for searching.