Unable to see documents when searching by folders in Modern Document Libraries

%3CLINGO-SUB%20id%3D%22lingo-sub-205571%22%20slang%3D%22en-US%22%3EUnable%20to%20see%20documents%20when%20searching%20by%20folders%20in%20Modern%20Document%20Libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-205571%22%20slang%3D%22en-US%22%3E%3CDIV%3EHi%20everyone%2C%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EI%20am%20seeing%20some%20odd%20behaviour%20with%20modern%20document%20libraries%20when%20you%20try%20to%20search%20for%20content%20stored%20in%20folders.%20Lets%20say%20you%20have%20the%20following%20structure%20in%20a%20document%20library%3A%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CUL%3E%3CLI%3EFolder%20named%20%22James%22%3CUL%3E%3CLI%3EFile%20named%20%22P45%22%3C%2FLI%3E%3CLI%3EFile%20named%20%22P11D%22%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3EFolder%20named%20%22Gary%22%3CUL%3E%3CLI%3EFile%20named%20%22P45%22%3C%2FLI%3E%3CLI%3EFile%20named%20%22P11D%22%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSTRONG%3EModern%20Experience%3A%3C%2FSTRONG%3E%3C%2FDIV%3E%3CDIV%3EIf%20you%20do%20a%20search%20in%20the%20%22Search%22%20box%20in%20the%20top-left%20corner%20for%20the%20word%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EJames%3C%2FEM%3E%26nbsp%3Bthen%20you%20will%20see%20the%20James%20folder%20returned.%20If%20you%20then%20click%20into%20the%20folder%20you%20%3CSTRONG%3Edon't%3C%2FSTRONG%3E%20see%20any%20documents%20shown%20such%20as%20the%20P45%20or%20P11D%20docs%2C%20with%20a%20message%20saying%20%22No%20items%20match%20your%20query%22.%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSTRONG%3EClassic%20Experience%3A%3C%2FSTRONG%3E%3C%2FDIV%3E%3CDIV%3EIf%20you%20switch%20to%20classic%20experience%20and%20do%20a%20search%20for%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EJames%3C%2FEM%3E%26nbsp%3Bin%20the%20%22Find%20a%20File%22%20box%2C%20you%20will%20see%20the%20James%20folder%20returned.%20When%20you%20click%20into%20the%20folder%20you%20will%20then%20see%20the%20two%20files%2C%20P45%20and%20P11D.%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EThe%20modern%20search%20is%20appears%20to%20be%20doing%20a%20search%20on%20items%20that%20contain%20the%20phrase%20%22James%22%20in%20the%20filename%20or%20in%20the%20document%2C%20where%20as%20the%20classic%20experience%20is%20doing%20more%20of%20a%20filter%20on%20the%20current%20items%20being%20displayed%20and%20then%20allowing%20you%20to%20see%20the%20child%20items%20in%20that%20folder.%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EIf%20you%20search%20in%20a%20modern%20experience%2C%20you%20can%20then%20see%20the%20child%20documents%20if%20you%20remember%20to%20clear%20your%20search%20query%20from%20the%20search%20box%2C%20or%20if%20you%20remember%20to%20not%20press%20the%20Enter%20key%20at%20the%20end%20of%20typing%20your%20search%20query%20and%20use%20either%20the%20mouse%20or%20keyboard%20to%20select%20the%20folder%20from%20the%20auto-suggestions.%20If%20you%20do%20choose%20a%20folder%20from%20the%20auto-suggestions%20then%20this%20opens%20in%20a%20new%20tab%20taking%20you%20away%20from%20where%20you%20were%20originally%20working.%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EThis%26nbsp%3Bhas%20been%20reported%20by%20users%20and%20clients%20as%20a%20significant%20pain%20in%20the%20user%20experience%20when%20searching%20for%20content%20and%20is%20causing%20push%20back%20on%20adoption%20of%20SharePoint.%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EHave%20you%20guys%20seen%20this%20before%3F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3ECheers%2C%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-205571%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdoption%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EClassic%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Emodern%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Esearch%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-206020%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20see%20documents%20when%20searching%20by%20folders%20in%20Modern%20Document%20Libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-206020%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F43414%22%20target%3D%22_blank%22%3E%40Tobiasz%20J.%20Koprowski%3C%2FA%3E%2C%20using%20metadata%20does%26nbsp%3Bwork%20when%20searching%20but%20we%20have%20various%20systems%20that%20output%20data%20as%20a%20combination%20of%20folders%20and%20files%20and%20we%20aren't%20in%20a%20position%20to%20change%20that%20yet%20(we%20are%20trying%20though!).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIts%20a%20shame%20as%20users%20have%20used%20the%20old%20classic%20view%20and%20are%20experienced%20the%20way%20this%20used%20to%20work%20so%20therefore%20end%20up%20questioning%20it.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-205728%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20see%20documents%20when%20searching%20by%20folders%20in%20Modern%20Document%20Libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-205728%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20had%20this%20case%20in%20few%20clients.%20Last%20two-three%20times%20we%20simply%20eliminated%20all%20folders.%20From%20that%20point%2C%20we%20have%20no%20folders%20in%20the%20library%20at%20all%20(and%20the%20client%20really%20don't%20need%20it)%20as%20well%20we%2C%20and%20the%20client%20is%20happy%20with%20this.%20It%20was%20necessary%20for%20some%20small%20adjustments%20to%20the%20user's%20behavior%2C%20but%20we%20solved%20this%20few%20weeks%20later.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETobias%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-661504%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20see%20documents%20when%20searching%20by%20folders%20in%20Modern%20Document%20Libraries%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-661504%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1256%22%20target%3D%22_blank%22%3E%40James%20Brennan%3C%2FA%3E%26nbsp%3BI'm%20seeing%20the%20exact%20same%20behavior%20and%20it's%20very%20frustrating%2C%20so%20thank%20you%20for%20making%20this%20post.%20It%20seems%20as%20though%20the%20search%20query%20persists%20after%20you%20click%20on%20the%20folder%20and%20navigate%20into%20it%2C%20even%20though%20the%20search%20bar%20now%20shows%20as%20being%20empty.%3CBR%20%2F%3E%3CBR%20%2F%3EIt's%20like%20Microsoft%20thought%20you%20wanted%20to%20keep%20searching%20for%20the%20same%20query%20while%20inside%20the%20folder%20you%20were%20searching%20for.%20Why%20would%20I%20necessarily%20want%20to%20search%20for%20a%20folder%20called%20%22Engineering%20CAD%20Files%22%20then%20continue%20searching%20only%20for%20files%20with%20%22Engineering%20CAD%20Files%22%20in%20their%20name%20inside%20that%20folder%3F%20The%20search%20query%20should%20stop%20when%20you%20navigate%20into%20a%20folder%20that%20came%20up%20in%20the%20first%20search.%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20far%20as%20I%20can%20tell%2C%20there%20is%20no%20way%20to%20%22clear%22%20the%20search%20query%20after%20you%20are%20in%20the%20desired%20folder%2C%20so%20you%20have%20to%20just%20look%20at%20directory%20path%2C%20then%20stop%20the%20search%2C%20then%20manually%20navigate%20back%20into%20the%20desired%20folder.%20Microsoft%2C%20please%20fix%20this!%3CBR%20%2F%3E%3CBR%20%2F%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor
Hi everyone, 
 
I am seeing some odd behaviour with modern document libraries when you try to search for content stored in folders. Lets say you have the following structure in a document library:
 
  • Folder named "James"
    • File named "P45"
    • File named "P11D"
  • Folder named "Gary"
    • File named "P45"
    • File named "P11D"
 
Modern Experience:
If you do a search in the "Search" box in the top-left corner for the word James then you will see the James folder returned. If you then click into the folder you don't see any documents shown such as the P45 or P11D docs, with a message saying "No items match your query". 
 
Classic Experience:
If you switch to classic experience and do a search for James in the "Find a File" box, you will see the James folder returned. When you click into the folder you will then see the two files, P45 and P11D. 
 
The modern search is appears to be doing a search on items that contain the phrase "James" in the filename or in the document, where as the classic experience is doing more of a filter on the current items being displayed and then allowing you to see the child items in that folder. 
 
If you search in a modern experience, you can then see the child documents if you remember to clear your search query from the search box, or if you remember to not press the Enter key at the end of typing your search query and use either the mouse or keyboard to select the folder from the auto-suggestions. If you do choose a folder from the auto-suggestions then this opens in a new tab taking you away from where you were originally working. 
 
This has been reported by users and clients as a significant pain in the user experience when searching for content and is causing push back on adoption of SharePoint. 
 
Have you guys seen this before?
 
Cheers,
3 Replies
Highlighted

Hi,

 

I had this case in few clients. Last two-three times we simply eliminated all folders. From that point, we have no folders in the library at all (and the client really don't need it) as well we, and the client is happy with this. It was necessary for some small adjustments to the user's behavior, but we solved this few weeks later. 

 

Tobias

Highlighted

Thanks @Tobiasz J. Koprowski, using metadata does work when searching but we have various systems that output data as a combination of folders and files and we aren't in a position to change that yet (we are trying though!). 

 

Its a shame as users have used the old classic view and are experienced the way this used to work so therefore end up questioning it. 

Highlighted

@James Brennan I'm seeing the exact same behavior and it's very frustrating, so thank you for making this post. It seems as though the search query persists after you click on the folder and navigate into it, even though the search bar now shows as being empty.

It's like Microsoft thought you wanted to keep searching for the same query while inside the folder you were searching for. Why would I necessarily want to search for a folder called "Engineering CAD Files" then continue searching only for files with "Engineering CAD Files" in their name inside that folder? The search query should stop when you navigate into a folder that came up in the first search.

As far as I can tell, there is no way to "clear" the search query after you are in the desired folder, so you have to just look at directory path, then stop the search, then manually navigate back into the desired folder. Microsoft, please fix this!

Thanks!