On-premises SharePoint 2013 Enterprise Search Farm: for about 99.99% pdf documents (millions in the document library) search by Managed Property, CustomDocumentId (unique per doc), returns result. However, for a few, the similar query doesn't return results. Crawled history shows that document was crawled. Also, search by a different managed property like ProviderNumber finds the document. The property shows that it has a value. We can rule out the security as running queries as the Site Collection Administrator.

This works for most of the documents, but not for a few


This returns the documents along with other documents


  • You probably already tried this, but does it make any difference if you add quotation marks around the document id? CustomDocumentId:"2E7AAA33-552E-A21B-14ED-11F423C14236" – Rune Sperre Mar 25 at 14:51
  • Yes, I've tried that, but didn't work. Another piece of info is that we name the files GUID+File extension like 2E7AAA33-552E-A21B-14ED-11F423C14236.pdf and searching just for that finds the document. But that's not feasible as our SP is integrated with many business partners client applications, and we can't force them to update. – Matiur Rahman Mar 25 at 15:03
  • If you search for the doc in SharePoint Query Tool you can check all the properties that has been captured for that item, maybe that will shed some light on the issue? – Rune Sperre Mar 25 at 15:07
  • I have already compared all property values of a good doc with that of a bad doc, but didn't see anything unusual. – Matiur Rahman Mar 25 at 15:31
  • Have you trie = instead of : along with the quotes? The minus signs could be throwing things off. I second the opinion to use the Search Query Tool to help the troubleshooting. – Matthew McDermott Mar 27 at 11:21

The issue was eventually resolved with some help from MS Support.

The underline cause: Managed Property' Metadata value for "NoWordBreaker" was set false

Solution: The metadata value was set to true

#Set NoWordBreaker to true
$ssa = Get-SPEnterpriseSearchServiceApplication
Set-SPEnterpriseSearchMetadataManagedProperty -SearchApplication $ssa -Identity "CustomDocumentId" -NoWordBreaker $true 

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.