tags:

views:

1099

answers:

2

Hello all,

We have a large document library with 3000+ folders. Our customer wants to be able to search within the current folder. Because this document library has a lot of folders creating one scope per folder is out of question. So the question is: How can a search be limited to current folder in a doc library?

Thanks

+5  A: 

Off hand I would say that you would need to implement a custom search feature and access the Search API directly. More importantly is that you seem to be suffering from a case of FileShareism. I've seen many a SharePoint implementation suffer and die from this affliction.

webwires
No need for custom search feature. This is all built in.
Brian Bolton
I would call that more of a work around and not necessarily "built in" but it certainly gets the job done. It all depends on if it satisfies the customers requirements as some organizations will demand a consistent interface for searching.
webwires
+1  A: 

If you want to limit to a document library:

This is already built in. When you are viewing a document library, the search box in the upper right defaults to "This List: NameOfDocLib". Searching here will limit the scope to the document library.

If you want to search individual folders:

This is built in to windows. Use the built in windows explorer search.

Tell your customers to open the folder in explorer view. Right click on your folder you want to search and select search.

Don't tell your customer that this was all built in. Take credit for it. Profit! :)

@webwires I agree about the 3000 folders. You should really think about breaking that out into multiple document libraries.

Brian Bolton
wow, was my answer really that bad to deserve a -1? I just presented the no-cost solution and I get voted down. strange. :/
Brian Bolton