Within SharePoint 2013, as I am searching for a file in Site Collection Documents, it appears that SharePoint is searching results for....

  1. an exact match on a file name.
  2. matching words within the document of that file.

Is there anything under site settings -> Search, that I can do to tell SharePoint to search document libraries only by file name? and not by content found in each document?

If this would work, the I know I can search filename values like this (i.e. document_*, or like this document_one.pdf). And I'm ok with that.

Is this possible?


3 Answers 3


You can do this by using property

  • Amal, I don't know how you figured that out, but you are man! Thank you!
    – klewis
    May 25, 2016 at 15:11
  • 2
    Here you go.. Keep it handy.. support.office.com/en-us/article/… May 25, 2016 at 15:12
  • Many thanks Amal! I will definitely keep this article by my side!
    – klewis
    May 25, 2016 at 15:21

This doesn't seem to work if you are looking for a word in the middle of a filename. For instance, if I look for filename:current, Budget_current.xlsx isn't found. Tried filename:"current" too.

Seems like a huge flaw that words in filenames are not found, but words in document content are.

  • 1
    If you put asteriks on either side of the query, it will return any filename with the text in it with zero or more chars to either side. Microsoft have always had a shoddy implementation of substring searching. Jun 28, 2017 at 16:23
  • Did you ever solve this Mike? I'm finding "filename:" searches give very limited results for certain documents. Especially seems this is the case for libraries with version history turned on.
    – user39935
    Aug 19, 2020 at 6:51
  • Actually, after further testing, I think my issue is likely to be around the use of hyphens in filenames. So for 'budget-current.xlsx" both filename:budget-current and filename:budget* would find that document, but I wouldn't find it with filename:current.
    – user39935
    Aug 20, 2020 at 7:56

Use the open with explorer option within SharePoint and then when you search in the windows explorer this should search solely by filename.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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