Match Path not working from filters

Discussion related to "Everything" 1.5 Alpha.
Post Reply
soul4kills
Posts: 14
Joined: Mon Sep 04, 2023 4:12 am

Match Path not working from filters

Post by soul4kills »

I'm having an issue setting up a filter to "Match Path"

My goal for the filter is to search for a folder in a particular location and return results for the folders inside the folder I'm searching for. So search in specific folder (Level 1), search parameters for a folder (level 2), return results of folders inside of (level 2) folder.

I create a Bookmark with Match Path enabled. It works. I create the same thing as a filter, it doesn't work. Am I doing something wrong?
void
Developer
Posts: 16744
Joined: Fri Oct 16, 2009 11:31 pm

Re: Match Path not working from filters

Post by void »

What's the search you used for the filter?
Did you check the Match Path checkbox in the filter?



Please try with the following filter:
Disable all search options and set the search to:
folder:parent:"C:\my level 1 folder"

(this will show all folders under "C:\my level 1 folder")
soul4kills
Posts: 14
Joined: Mon Sep 04, 2023 4:12 am

Re: Match Path not working from filters

Post by soul4kills »

Yes, The checkbox for Match Path is enabled. That's what's confusing me.

I set up the same settings as a bookmark. Using the bookmark to do the search works to search the file path. But setting up the same thing as a filter doesn't get the same results.

My "home" search settings have all settings disabled. So Match Path is disabled on a new window. So the filter doesn't seem to be activating that when selected.

I did what you said. No results. But from my understanding, it should be?
folder:|parent:"c:\level 1 folder"

So I did above. Still not searching the path.
soul4kills
Posts: 14
Joined: Mon Sep 04, 2023 4:12 am

Re: Match Path not working from filters

Post by soul4kills »

Image
Last edited by void on Mon Sep 04, 2023 4:54 am, edited 1 time in total.
Reason: fixed image link
void
Developer
Posts: 16744
Joined: Fri Oct 16, 2009 11:31 pm

Re: Match Path not working from filters

Post by void »

I did what you said. No results. But from my understanding, it should be?
folder:|parent:"c:\level 1 folder"
| = OR
please make sure there's no space after parent:



Maybe I am misunderstanding what you are trying to do.

Could you please provide an example of your search, filter search and an expected result.



As an example, with your filter active and the search set to:
system32

Are you trying to find folders inside C:\Windows\System32 ?
where C:\windows is the level 1 folder.

-If so, please try the following filter search:

folder:parent:"C:\windows\"$param:
soul4kills
Posts: 14
Joined: Mon Sep 04, 2023 4:12 am

Re: Match Path not working from filters

Post by soul4kills »

This is what's happening.
Image

This is what I'm trying to achieve for the results.
Image
soul4kills
Posts: 14
Joined: Mon Sep 04, 2023 4:12 am

Re: Match Path not working from filters

Post by soul4kills »

Yes, I click okay, then I reopen it to show how it's setup.
First photo is exactly what you told me to put.
Image

Second photo I added the bar " | "
Image
void
Developer
Posts: 16744
Joined: Fri Oct 16, 2009 11:31 pm

Re: Match Path not working from filters

Post by void »

$param: will only work with 1355a+

Please try changing your Distributed filter search to:

Code: Select all

folder:parent:C:\Users\soul4\OneDrive\Software\Apps\search:
Change the Distributed filter macro to:

Code: Select all

D<search>
Please make sure you click OK to save changes under Organize Filters.
soul4kills
Posts: 14
Joined: Mon Sep 04, 2023 4:12 am

Re: Match Path not working from filters

Post by soul4kills »

And I don't know what you mean by change macro to D<search>.
I put it in exactly like you have it?
void
Developer
Posts: 16744
Joined: Fri Oct 16, 2009 11:31 pm

Re: Match Path not working from filters

Post by void »

Yes, exactly as shown.
soul4kills
Posts: 14
Joined: Mon Sep 04, 2023 4:12 am

Re: Match Path not working from filters

Post by soul4kills »

No result.
Image

Adding the " | " broke the search. It searched everything nothing specific to the directory set.
soul4kills
Posts: 14
Joined: Mon Sep 04, 2023 4:12 am

Re: Match Path not working from filters

Post by soul4kills »

Here are my settings if it helps.
Image
Image
Image
soul4kills
Posts: 14
Joined: Mon Sep 04, 2023 4:12 am

Re: Match Path not working from filters

Post by soul4kills »

Okay, I missed the &param & search: comment.

Here's the result.
Image
soul4kills
Posts: 14
Joined: Mon Sep 04, 2023 4:12 am

Re: Match Path not working from filters

Post by soul4kills »

This is what worked. Adding D<search> made it work. Thank you void.

Image
soul4kills
Posts: 14
Joined: Mon Sep 04, 2023 4:12 am

Re: Match Path not working from filters

Post by soul4kills »

I figured out why the Match Path isn't working in filters.

The switch count is off in the CSV file. Or the description in the GUI of the check mark is off.

So pretty much the option "Match Prefix" is what controls "Match Path" and maybe vice versa?

Edit: NVM, i'm wrong.
void
Developer
Posts: 16744
Joined: Fri Oct 16, 2009 11:31 pm

Re: Match Path not working from filters

Post by void »

I haven't been able to produce the issue.

What program are you using to view the CSV file?

If you add a filter with Match Path checked.
Exit Everything (File -> Exit)
Restart Everything.
Is the Match Path box still checked for this filter?
soul4kills
Posts: 14
Joined: Mon Sep 04, 2023 4:12 am

Re: Match Path not working from filters

Post by soul4kills »

Disregard what I said about the csv. I'm an idiot.

But it works now. With the addition of "search:" & <search>.

Another way it works without those additions is if my search paramaters have \ in the beginning or end of my search.
Image

I guess there really was no issue. User error it looks like. I thought the filters worked the same way as the bookmarks but it doesn't look that way.
Post Reply