Restrict Content Search inside Documents


We recently had a business requirement to stop SharePoint Content Search from showing results wherein the searched keywords matched some text inside the word documents.  The problem was, the search would return hundreds of documents becauase the search engine would match the searched text to its content and more often than now, the results were useless. What we actually needed was for the searched keywords to be compared to the document metadata ( mapped to managed property) .

To my best knowledge there is no OOB click anywhere in SharePoint to handle this.  You could try removing IFilters but thats like using an Atom Bomb to kill the pesky coackroach in your house.

Solution was to write a custom search web part and firing the FullTextSqlQuery programaticaly on managed properties.  The results were shown on the default Core Result Web Part.

Hope it helps someone !