Crawled file share: Query by path?

SharePoint Search is configured to crawl a file share on our network, and users are requesting to search for all files within a certain path.  (recursive)

For example, I would like to query for all files within the \\unc\share\sub1\sub2 folder.

Any thoughts on how best to accomplish this?  I attempted to query the Path and OriginalPath managed properties but failed, possibly due to improper syntax.

March 27th, 2015 2:21am

Hi,

Based on your description, my understanding is that you want to query for all files within the \\unc\share\sub1\sub2 folder.

You can configure SharePoint search to index a file share:

  1. Create a file share for a folder
  2. Create a content source using the file share
  3. Perform a full crawl of the content source

Refer to the following articles:

http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2009/07/01/how-to-configure-enterprise-search-to-index-a-file-share.aspx

http://redmondmag.com/articles/2014/10/07/search-content-source-in-sharepoint.aspx

To see what get indexed, you can easily write a keyword query to show everything in the content source.  For example:ContentSource:"File Shares"

Best Regards,

Lisa Chen

Free Windows Admin Tool Kit Click here and download it now
March 30th, 2015 3:39am

Thanks for taking the time to reply.  You may have missed the following points in my original question:

1. The share is already being crawled. 

2. My goal is to retrieve a subset of documents (not all of them) within the share based on their subfolder / path.  ( \\unc\share\sub1\sub2)

March 30th, 2015 1:54pm

Hi,

From your description, we know that The content source \\unc\share  is already being crawled, you want to query for all files within the \\unc\share\sub1\sub2 folder.

Per my test, you can fill in (path:\\unc\share\sub1\sub2) in search box to query for all files within the \\unc\share\sub1\sub2 folder.

Besides, you can create a search scope in the SharePoint 2013 to query for all files within the \\unc\share\sub1\sub2 folder.

Refer to the following article:

http://brainlitter.com/2013/03/22/sharepoint-2013-search-scopes-are-gone-but-dont-fret/

Best Regards,

Lisa Chen

Free Windows Admin Tool Kit Click here and download it now
March 31st, 2015 12:52am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics