I think it is possible using KQL (Keyword Query Language). For this simple need, it is enough to write the following code in the search box:
author:"John Scalzi"
this return all the document that are creating by John Scalzi. If you need to make it more flexible you can use a content search webpart and pass the {searchquery} to it from search box in this way:
author:{searchquery}
and link the search box to content search web part and then user only need the user name in the search box (Any user name!)
Update:
Yes, It is right but you can make other fields searchable too.
If you have centeral admin access you can do it from there otherwise follow below steps:
- Go to site level
- Go to search schema
- Go to Managed Property.
- Search the column you want to search then enable the checkbox related to Searchable and Queryable related to that column.
For example you have a field named DocOwner
then you should see a field like DocOwnerOWSUser
in Managed Property which is mapped to OWS_User_DocOwner
(if it doesnt make the mapping).
You should enable the Queryable
and Searchable
checkbox for this field. (PS: I am ready for Remote Helping if it is necessary just Email me to [email protected]
)