Ability to search for folder that contains specific matches

Have a suggestion for "Everything"? Please post it here.
Post Reply
fish
Posts: 7
Joined: Tue Jan 29, 2013 3:07 am

Ability to search for folder that contains specific matches

Post by fish »

As the title say.

examples:
1. Search for folders that contains 'Audio' files.
2. Search for folders that contains files above 10 mb in size and and filetype flac or the words: audio book.
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: Ability to search for folder that contains specific matc

Post by void »

I have considered a function to do this before.

I ran into problems maintaining the result list in real-time.

I will re-consider adding this function without the real-time updating of the results.

Thanks for the suggestion.
fish
Posts: 7
Joined: Tue Jan 29, 2013 3:07 am

Re: Ability to search for folder that contains specific matc

Post by fish »

It depends on how the code looks but here are the basic steps.

index -> file search -> filter files and remove folder duplicates -> list done
or
index -> while 'file search' add folders of files in a unique map based in the folder mft "id" -> list done

Keeping it updated can be tricky and complicated. I've painted myself into a corner enough times to know it. Best solution is a rewrite of the involved parts that makes it too complicated. Eg Making the parts more generic.

One solution:
The change monitor could handle this. Keeping the list from the 'file search' it can do what its already doing. When the 'file search' list is changed update the visual results list.
Less cpu intensive keeping the 'file search' list around but more memory needed.

I'd be happy to help, if you know what i mean ;)
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: Ability to search for folder that contains specific matc

Post by void »

What I have done previously is flag the folders that contained a subfile match, then after the query is complete, add all the flagged folders to the results.

What makes things interesting is there is no spare bits to set this flag, so I make a backup of an internal flag for each folder and use that.
Restoring this internal flag after executing the query and adding the results.
Keeping it updated can be tricky and complicated. I've painted myself into a corner enough times to know it. Best solution is a rewrite of the involved parts that makes it too complicated. Eg Making the parts more generic.
Real-time monitoring would be a huge job and very slow with the current database implementation.
If you are interested in helping with the code, I hope to release the Everything source under GPL license once Everything is stable.
fish
Posts: 7
Joined: Tue Jan 29, 2013 3:07 am

Re: Ability to search for folder that contains specific matc

Post by fish »

If you are interested in helping with the code, I hope to release the Everything source under GPL license once Everything is stable.
I've been looking forward to that moment for quite some time already.
The way you put it makes it sound like you will stop development after the open source release which i hope is not true.
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: Ability to search for folder that contains specific matc

Post by void »

I plan to continue development on Everything after releasing the source.
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: Ability to search for folder that contains specific matc

Post by void »

added child:
Post Reply