Search Term

Last post 11-02-2007 12:34 AM by Nick. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-01-2007 8:53 PM

    • AdamB
    • Top 10 Contributor
    • Joined on 09-28-2007
    • Posts 40

    Search Term

    Is there any way to limit the results SearchFileSystem returns by folder?

    I can return all text documents by using "*.txt", but it would be great to do something like "media/docs/*.txt" or "media/docs/*" and specify the doc type.

    Is this currently possible?

    Thanks!

    Adam
     
     

  • 11-02-2007 12:34 AM In reply to

    • Nick
    • Top 50 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 7

    Re: Search Term

    The search term is only applied to the file or folder name, and not the full path.  There is no way to selectively filter out items based on their path. 

    The SearchFileSystem method performs very simple, and very fast searches based only on file or folder names, with wild cards.  If you want to provide more robust searching to your customers, you can use metadata or tags and the SearchMetadata or SearchTags methods.  You can use SetTags with SearchTags, or SetMetadata with SearchMetadata to make custom searches which will more closely meet your customer's needs.

Page 1 of 1 (2 items)