Using a Location Filter you can limit the depth based on the number of back slashes in the path, e.g. to only search folders at the second depth we add a regular expression to EXCLUDE paths with four or more back slashes, e.g.
Look In: C:\EDI;-:regex:(.*\\){4,}
If, however, you simply want to exclude paths with 'history' in the name you could use this:
Look In: C:\EDI;-history