-Search bug with combined search criteria

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Vankog
Junior Member
Junior Member
Posts: 5
Joined: 2013-09-13, 01:24 UTC
Location: Germany

-Search bug with combined search criteria

Post by *Vankog »

What do I want to do?
With the Win 7 Search I can utilise the following search term:

Code: Select all

(under:system\config\* OR under:system\tcm\*) -under:system\config\cartridges* -under:system\config\domains* -under:.svn\* -filename:.svn filename:*.* datemodified:>{DD.MM.YYYY}
{DD.MM.YYYY} is going to be replaced obviously:
Image: htt%20p%3A//img849.imageshack.%20us/img849/9546/za0f.png (cannot post images... so you have to fix the address - boy, I cant even write the word "u rl"...)

The Problem
This search term is impossible to migrate to Total Commander (since at least v. 8.01 x64 up to v. 8.50b3).
The reason is that the search gets wrong results if (tc-)plugin conditions of the same property are combined.
For example:
1. Trying to search for files under \system\config\ AND NOT under \system\config\cartridges leads to results that ignore the second condition:
Image: htt%20p%3A//img191.imageshack.%20us/img191/330/632z.png (cannot post images... so you have to fix the address)

2. The same for regex:
Image: htt%20p%3A//img690.imageshack.%20us/img690/829/x9rb.png (cannot post images... so you have to fix the address)

3. Just a countercheck: Trying to search for files under \system\config\cartridges OR \system\config\cartridges
is working as intended:
Image: htt%20p%3A//img89.imageshack.%20us/img89/1910/bg63.png (cannot post images... so you have to fix the address)

3. Also, trying to search for files under \system\config\cartridges AND NOT in folders named bc_ does work:
Image: htt%20p%3A//img607.imageshack.%20us/img607/876/9002.png (cannot post images... so you have to fix the address)

--> So combined search conditions of the same property are not working if they are excluding and overlapping. But obviously they should work. ;-)

------

Alternative approach: Using only Regex to get those excludes.
But this is another bug:
Regex lookaround not working -> htt p://ghisler. ch/board/viewtopic.php?p=270481[/u rl] (cannot post links... so you have to fix the address)

(Hm... jetz bekomm ich erst mit, dass ich hätte Deutsch schreiben können.)
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, Vankog.

Remark on posting in German:
This bug forum is labelled "TC8.5 beta bug reports (English)", because it is visited by users from various countries. So posting in English was the right thing to do.

Remark on posting images:
No-one in this forum can post images directly. The [IMG] tags are non-functional. You will have to upload the screenshot elsewhere - which you did - and simply post the web address using the [URL] tag button e.g.

Yet, as you have registered only today, you will have to wait for a minimum of 24 hours before being permitted to insert web addresses.
This restriction has been implemented in order to make life a bit harder for bots that join the forum, post their links to commercial sites, illegal sites, whatever, immediately after joining. No bot will wait for 1 day or 2.

Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
User avatar
white
Power Member
Power Member
Posts: 5810
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Search bug with combined search criteria

Post by *white »

Vankog wrote:What do I want to do?
With the Win 7 Search I can utilise the following search term:

Code: Select all

(under:system\config\* OR under:system\tcm\*) -under:system\config\cartridges* -under:system\config\domains* -under:.svn\* -filename:.svn filename:*.* datemodified:>{DD.MM.YYYY}
{DD.MM.YYYY} is going to be replaced obviously:
Image: http://img849.imageshack.us/img849/9546/za0f.png (cannot post images... so you have to fix the address - boy, I cant even write the word "url"...)

The Problem
This search term is impossible to migrate to Total Commander (since at least v. 8.01 x64 up to v. 8.50b3).
The reason is that the search gets wrong results if (tc-)plugin conditions of the same property are combined.
For example:
1. Trying to search for files under \system\config\ AND NOT under \system\config\cartridges leads to results that ignore the second condition:
Image: http://img191.imageshack.us/img191/330/632z.png (cannot post images... so you have to fix the address)

2. The same for regex:
Image: http://img690.imageshack.us/img690/829/x9rb.png (cannot post images... so you have to fix the address)

3. Just a countercheck: Trying to search for files under \system\config\cartridges OR \system\config\cartridges
is working as intended:
Image: http://img89.imageshack.us/img89/1910/bg63.png (cannot post images... so you have to fix the address)

3. Also, trying to search for files under \system\config\cartridges AND NOT in folders named bc_ does work:
Image: http://img607.imageshack.us/img607/876/9002.png (cannot post images... so you have to fix the address)

--> So combined search conditions of the same property are not working if they are excluding and overlapping. But obviously they should work. ;-)

------

Alternative approach: Using only Regex to get those excludes.
But this is another bug:
Regex lookaround not working -> http://ghisler.ch/board/viewtopic.php?p=270481 (cannot post links... so you have to fix the address)

(Hm... jetz bekomm ich erst mit, dass ich hätte Deutsch schreiben können.)
Links fixed in quote above.
User avatar
white
Power Member
Power Member
Posts: 5810
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Search bug with combined search criteria

Post by *white »

Vankog wrote:1. Trying to search for files under \system\config\ AND NOT under \system\config\cartridges leads to results that ignore the second condition:
Image: http://img191.imageshack.us/img191/330/632z.png (cannot post images... so you have to fix the address)
Looks correct.

The folder "D:\IS\icartridge\Source1\ac_addresscheck_demo\staticfiles\share\system\config\cartridges" has path "D:\IS\icartridge\Source1\ac_addresscheck_demo\staticfiles\share\system\config" which is not excluded.
Vankog
Junior Member
Junior Member
Posts: 5
Joined: 2013-09-13, 01:24 UTC
Location: Germany

Post by *Vankog »

Ohhhh.... what a bummer, you are right.

I had never realized that the results only include the direct folders but no children of them.

Nevertheless, the following search returns the correct result. However, it excludes all folders. In my example this is no problem, but in other scenarios it would be a problem if someone also wants folders.
Would be nice to have some kind of "full path" property like with the "full name". This would solve such issues.
Image: htt%20p%3A//img703.imageshack.%20us/img703/1825/4vd4.png
User avatar
white
Power Member
Power Member
Posts: 5810
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Vankog wrote:I had never realized that the results only include the direct folders but no children of them.

Nevertheless, the following search returns the correct result. However, it excludes all folders. In my example this is no problem, but in other scenarios it would be a problem if someone also wants folders.
Would be nice to have some kind of "full path" property like with the "full name". This would solve such issues.
Image: http://img703.imageshack.us/img703/1825/4vd4.png
I agree completely. A "full path" property would be very useful.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, this type of search isn't currently supported.
Author of Total Commander
https://www.ghisler.com
Post Reply