Wanting file name search that will logical AND my terms

Started by Darius1968, March 19, 2014, 01:31:07 PM

Previous topic - Next topic

Darius1968

Currently, I'm using the filter panel to limit my scope to files that aren't assigned a given category.  In addition, I want to further limit the scope of files in my file window to those that also have BOTH "beach" AND "sand" in the file name.  As it is now, involving the file name filter in addition to the category filter has the effect of admitting files to the file window that have either of the two, logical OR, but not requiring both.  I tried to use the search bar above the file window, which I read has its default set to logical AND.  However, it so seems that the search bar above the file window has no effect while the filter panel is active.  What can I do to effect what I want to..

Mario

Filters in the filter panel are combined via AND.

If you filter for files with a red label, and add a file name filter which filters for file names containing "ABC", the file window will show only files with

a) a red label AND
b) a file name containing ABC

The search bar in the file window searches the files in the file window. This means it is combined with the result of the currently active filter by AND as well.

1. You filter for files with a red label. The file window now shows 10 out of 100 files
2. You enter ABC in the file window search bar.

The search bar searches the 10 files in the file window for the value ABC.

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

I know that the different filers in the filter panel combine in the logic AND.  However, if  one enters more than one term a filter on the file name in the filter panel, those terms are evaluated in logic OR.  I found that the search bar in the file window seems to permit both OR and AND, just one has to be sure that the operators are all uppercase there!  There seems to be a bug (I'm gonna evaluate it, and post if I think there is one) in that if the filter panel is already active, then the file window search bar will not function if a term(s) are entered, though it is possible to first enter a term(s) in the file window search bar, and then after the filter has completed, the filter panel can finally be activated.  If it is subsequently desired to change the search terms, the filter panel will first have to be deactivated, and reactivated only after the second filtering on the new search terms has effected. 

Mario

QuoteI found that the search bar in the file window seems to permit both OR and AND, just one has to be sure that the operators are all uppercase there!

From the search engine help:

QuoteAll Boolean operators must be written in upper-case and separated by a single space on each side from the other parts of your pattern.

I use the filter panel and the search bar in combination all the time. The search bar does not know anything about the filter panel (and vice versa). The search bar only works the files in the file window. If these files are straight from the database (e.g. a folder) or have been filtered by the filter panel is of no importance for the search bar. It always looks at the current scope.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

Okay, I'm using version 5.0.146 (latest), and yes, I can have the two - the search bar & the filter panel - function together at the same time, but, for whatever reason, if the filter panel is currently in effect, typing something into the file window's search bar will not allow the result of the search bar to happen.  I first have to disable the filter panel, get my result from the search bar, and then get my final result by again activating the filter panel.  Does this sound normal. 

Mario

Can't reproduce.

I'm in the Media & Folder View.
I set a filter in the filter panel to show only files with a rating of 3 stars.
Then I use the search bar to filter out files which contain the term Copy in the file name.
Works great.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

#6
Alright, so then what can I do to troubleshoot why mine won't work if I use that order of operation? 

PS
I might also add that using the search bar above the file window generally seems slower to 'kick in' - even with the filter panel inactive - than it was before the switch to the new search engine.  The problem with the search engine (the old one too) not wanting to 'kick in' in the presence of the filter panel started sometime ago, with the old search engine though. 

Mario

The search bar waits about 2 seconds after you stop typing before it starts to search. This allows you to edit the search term, append to it etc., without getting interrupted by the search engine starting the search. This has been requested often and I've implemented it some versions ago. This behavior is incidental. The new search engine is in fact now as fast as the old search engine.

If you can reproduce this behavior at will, please give me the steps you do and other info, like how many files in the file window, which filters are active, which settings you make to each filter. The internal logic keeps the search bar and the filter panel completely separate. This can only be a side effect of something you do in a specific way that's causing this.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

I have already verified that if I launch IMatch (5.0.148) and use the search bar (without the presence of the filter panel), there's no problem.  So, I won't even analyze that case.  Therefore, the following analysis is for the case where I first use the filter panel, and then with that active, I try to further limit my scope of files with the search bar.  When I prove this doesn't work on my system, I disable the filter panel, make a search with the search bar, and finally, reinstate the filter panel. 

1.  Launch IMatch and open my database. 
2.  I'm now in Media & Folders view.  The active folder is now "E:\_Backups\_201309 (C Drive)\00\_Matt\Matt Celerno-2\", with 234 files in the file window. 
3.  I'm now gonna apply a filter to make the # of active files at 233 (233 files are jpeg, and the only other one is a gif).  To achieve this, only the File Type filter need be active, with the type jpeg selected.  I've made these settings, so now all I do is select Filter Panel in the Filter Manager. 
4.  Now, the filter is active, with the file count at 233, reflecting that there are 233 jpegs. 
5.  I type in "Cathy" in the search bar.  Nothing happens! 
6.  At this point, I make the search bar work by disabling the filter panel by clicking the button at the top of the filter panel, "Enable or disable the filter panel". 
7.  Now, that the filter panel is disabled, I go to my search bar, where "cathy" is displayed.  I select it and retype it.  After 2 seconds, it works!  Only one file matching that criteria.
8.  I can now reinstate the filter panel.  I go to it, and I once again toggle the button to allow the filter panel to be emabled. 

ubacher

Tried to reproduce this but here it works. What kind of search are you doing? I used plain filename search.

Darius1968

I had the scope of the search bar set on "search everywhere", but I just now experimented by setting it to "search file names only", and still the same, won't work if the filter panel is activated. 

Mario

I cannot reproduce this. I performed the same steps:

Folder with 10 files in mixed formats.
1. File format filter to show only JPEG files
2. Enter test123 in the search bar (only one of the JPEG files has this value, in the XMP title)
=> File Window shows the one JPEG file

3. Switch the format filter to show only DNG files (and leave search bar as it is)
=> File Window is empty (no DNG file with the value test123)

4. Switch filter to show JPEG and DNG
=> The file shows up again

You wrote:

Quote5.  I type in "Cathy" in the search bar.  Nothing happens! 

What happens if you search for something like "NNN999"? The file window should be empty because there should be no match - independent from the filter panel.


-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

I just now tested your search string.  First, I did so twice, with the filter panel activated.  I simply pasted in the text into the search bar, and waited longer than two seconds.  Nothing happened.  I then cleared all text from the search bar, and then pasted it in again.  Still, nothing!  Finally, I once again cleared all text out of the search bar.  Then, I deactivated the filter bar, which caused all files in the category to be displayed in the file window.  Finally, with the filter panel still deactivated, I, for a third time, pasted your text into the search bar, and after waiting two seconds, the file window became empty.  This, to me, clearly shows that for whatever reason, the file window search bar is not wanting to 'kick in' in the presence of the filter panel. 

Mario

It works if there is at least one file visible in the file window. If there is no scope, the search bar will always return an empty result.

Since it works for me and for ubacher as well, can some other testers please try this?
If this is an effect which happens only on Darius1968's PC, I'm not sure how to further analyze this.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

"It works if there is at least one file visible in the file window."  In all cases where I pasted in any text into the search bar, it was under the assumption that there were files being displayed in the file window. 

thrinn

Just a quick test from my side (it works for me):

  • Set up Filter Panel=Active; File Name filter Contains Vancouver -> Result Window shows 35 files -> ok
  • Enter e.g. 033_ as search string in the search bar above the file window -> only 033_Vancouver_07.05.02.JPG is displayed

This is exactly what I expect to see. Tried with Show Hierarchy on and off - no difference. Works for me in both cases.
Thorsten
Win 10 / 64, IMatch 2018, IMA

Darius1968

I have just now verified that the problem is with my database.  I created a new one with just one folder (the one having 234 total images - 1 gif, 233 jpeg).  When I went to have at the same time involvement of both the filter panel and the search bar, it worked!  :-) 

I did recently have a HD go bad on me.  Could this be why the old database is bad?  How come no errors were reported on that database?

I can go ahead and created a new database that has ALL folders in my two HDs.  What I now need is links to relevant posts on here that will assist me in exporting/importing category assignments, version/stacks of my old DB into the new one.  Also, how can the category assignments be imported from files of an IMatch 3.6 DB? 

Richard

https://www.photools.com/community/index.php?topic=66.0 will answer your question about importing categories from IMatch 3. Similar steps would work from IMatch 5 to a new database. However, I would wait until you get Mario's reply. The converter did not exist when Mario wrote the post for the link above. You might be better off reading IMatch 5 Help > IMatch 5 Database Converter and start fresh with a conversion. That would leave version/stacks to be copied but would give you more than just category assignments from IMatch 3.

Mario

Did you run a database diagnosis to check/repair the problem database? This usually solves all problems, except the database file has become physically damaged. But then you would have seen a message by IMatch already.

You can export and import categories in IMatch 5 with the category export and import features available in the Import & Export panel. Just search the help for category export or category import to find the relevant instructions.

Stacks cannot be exported or imported.

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

Yes, actually, I did both - Database Diagnosis & Compact and Optimize. 

Mario

So you have a healthy database which allows you to reproduce the search bar bug you have reported. But your new database does not show the same problem. Strange. Except from you uploading the problem database, there is little I can do about this. Maybe it's just a one in a million problem and you have the misfortune to run into it.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook