Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Sunday, August 13, 2017 11:07 PM
I realise that one can explicitly search for filenames-only by prefixing their search terms with "filename:" and using wildcards to search for partial word matches, but is it possible to do configure it to search for filenames-only by default? Is it possible to customise in-place search at all?
I know in-place search uses the default result source for the site, but modifying the default site search scope isn't ideal, and in my testing, I couldn't get filename-only searching to work as in-place search seems to modify the search query before handing it off to the result source.
Any help is appreciated.
Cheers
Tom Wardrop
All replies (3)
Monday, August 14, 2017 8:01 AM
Hi Tom,
By default, SharePoint search does full content index. When you search a keyword without managed property filter, it will query all content, there is no way to query file name only.
If you want to only search file name, you need to use the managed property filter, like"filename:xxx".
What did you mean about "in-place search"? Is it OOB search(osssearchresults.aspx) of a normal site like team site?
By design, we are unable to customize the osssearchresults.aspx page. For this requirement, you can create a search center site and customize it, then configure the team site search to use search center.
If I misunderstand your meaning, please feel free to reply.
Thanks,
Wendy
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]
Monday, August 14, 2017 10:46 PM
Sorry, I should have clarified. By in-place search, I'm referring to the "Find a file" search box at the top of lists and libraries. Ideally, for all document libraries, I'd like any search terms typed in here to search for filenames only. Full-text search in the context of "Find a file" is almost useless, as unlike normal search results which are sorted by relevance, search results using "Find a file" are sorted by whatever the document library is sorted by, e.g. name or ID.
Tom Wardrop
Wednesday, August 16, 2017 10:14 AM
Hi Tom,
Per my knowledge, there is no way to customize "Find a file" feature.
And if you want to just to search only for a property, you need to use the managed property filter search to do that like"filename:xxx".
Thanks,
Wendy
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]