container-filenames to display only specified filenames ?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

container-filenames to display only specified filenames ?

Post by anmac1789 »

Hello everyone, I have a question regarding container-filenames. As of now, it only finds and searches all archives if there is ONE match, but what if I wanted to only find those archives for which all specified filenames are contained in a archive file ?

For example search for container-filename:monday.jpg;tuesday.jpg;wednesday.jpg

archive 1.zip -- contains wednesday.jpg
archive 2.rar -- contains tuesday.jpg
archive 3.7z -- contains tuesday.jpg and wednesday.jpg

But let's say I wanted to find only those archives which have tuesday.jpg and wednesday.jpg only ? Therefore, it should only show ... archive 3.7z ? How can I do this ?
void
Developer
Posts: 16740
Joined: Fri Oct 16, 2009 11:31 pm

Re: container-filenames to display only specified filenames ?

Post by void »

Please try subexpressions.



tuesday.jpg and wednesday.jpg:

container-filename:<tuesday.jpg wednesday.jpg>
which is the same as:
container-filename:tuesday.jpg container-filename:wednesday.jpg



tuesday.jpg and wednesday.jpg and NOT monday.jpg

container-filename:<tuesday.jpg wednesday.jpg !monday.jpg>
which is the same as:
container-filename:tuesday.jpg container-filename:wednesday.jpg !container-filename:monday.jpg
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

Re: container-filenames to display only specified filenames ?

Post by anmac1789 »

void wrote: Sun Sep 10, 2023 12:45 am Please try subexpressions.



tuesday.jpg and wednesday.jpg:

container-filename:<tuesday.jpg wednesday.jpg>
which is the same as:
container-filename:tuesday.jpg container-filename:wednesday.jpg



tuesday.jpg and wednesday.jpg and NOT monday.jpg

container-filename:<tuesday.jpg wednesday.jpg >
which is the same as:
container-filename:tuesday.jpg container-filename:wednesday.jpg !container-filename:monday.jpg
I'm not understanding the second part, you said tuesday.jpg and wednesday.jpg and NOT monday.jpg but in the expression you've written container-filename:<tuesday.jpg wednesday.jpg >
void
Developer
Posts: 16740
Joined: Fri Oct 16, 2009 11:31 pm

Re: container-filenames to display only specified filenames ?

Post by void »

ah, I accidentally cut the !monday.jpg part... sorry!

container-filename:<tuesday.jpg wednesday.jpg !monday.jpg>
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

Re: container-filenames to display only specified filenames ?

Post by anmac1789 »

void wrote: Sun Sep 10, 2023 6:12 am ah, I accidentally cut the !monday.jpg part... sorry!

container-filename:<tuesday.jpg wednesday.jpg !monday.jpg>
ohh I see okay thank you! so the spaces works like a AND
Post Reply