Page 1 of 1
searching on filename and/or file contents
Posted: 03.03.2021, 13:43
by mgroen
Hi,
I want to search my local harddisk for all files containing the searchterm "ziggo".
This means: all files which contains the searchterm "ziggo" in the filename OR have ziggo in the content.
I enter this (see attached screenshot).
Result: no search results (while I am sure there are search results), and it doesn't seem to do actually any search.
Is this known/a bug/as designed??

Re: searching on filename and/or file contents
Posted: 04.03.2021, 09:25
by Karol
Try with *ziggo*.*
Re: searching on filename and/or file contents
Posted: 04.03.2021, 10:57
by mgroen
Karol wrote: 04.03.2021, 09:25Try with *ziggo*.*
I tried (see screenshot). Exact same result: no results found while there are matching results.
Seems like this is a bug??
Also noticed one other thing:
Now all of a sudden the option ""Regular expression" is visible while yesterday on exact same version of FC wasn't ??
Whats going on here??? I didn't change any of the settings!
see screenshot below:

Re: searching on filename and/or file contents
Posted: 04.03.2021, 12:39
by ralfso
I think you're searching for ziggo in filname AND content with this entries in the dialog.
Are there really files with both conditions?
Re: searching on filename and/or file contents
Posted: 04.03.2021, 14:11
by mgroen
ralfso wrote: 04.03.2021, 12:39
I think you're searching for ziggo in filname AND content with this entries in the dialog.
Are there really files with both conditions?
yes, there is one file which has both conditions set to true.
Also, I noticed that searching through .docx files doesnt give the correct results

Re: searching on filename and/or file contents
Posted: 04.03.2021, 17:59
by alf5000
@mgroen
I can confirm your findings - looks like a bug to me.
Re: searching on filename and/or file contents
Posted: 04.03.2021, 19:45
by Marek
@mgroen
I can confirm your findings - looks like a bug to me.
Could you provide exact info what does not work?
In which file types are you looking for the content: simple text files, doc, docx?
Re: searching on filename and/or file contents
Posted: 05.03.2021, 12:52
by alf5000
I tested with .pptx and .txt files
take the following folder with three txt-files in it and search for the word "Bahnhof"
https://www.dropbox.com/sh/xr9zlobafukb ... A381a?dl=0
... but the more I think of it:
it seems to be an AND-operation whereas I expected an OR-operation. perhaps it's not a bug, but a feature request to have it as an option
Re: searching on filename and/or file contents
Posted: 05.03.2021, 14:08
by mgroen
alf5000 wrote: 05.03.2021, 12:52
I tested with .pptx and .txt files
take the following folder with three txt-files in it and search for the word "Bahnhof"
https://www.dropbox.com/sh/xr9zlobafukb ... A381a?dl=0
... but the more I think of it:
it seems to be an AND-operation whereas I expected an OR-operation. perhaps it's not a bug, but a feature request to have it as an option
@alf5000:
Thanks for testing it, I downloaded your testdata and also tested it - got same results.
I agree with you that its probably designed as AND. Would be better if user could select operator (AND/OR) in search window.
Re: searching on filename and/or file contents
Posted: 07.03.2021, 13:23
by Odamn-Ete
Hey mgroen,
I don't think it is necessary for Marek to implement an additional AND/OR operator.
Looking at the image you posted, you have advanced options enabled
Under File name: activate the checkbox <Regular expression>
then put this into your file name field:
Tested this on your test data, which I downloaded.
Note, this solution only works if text is in the <Containing text:> field
otherwise it will find all files (.* means 'match anything'), the pipe | is your OR operator
Best regards,
FreeCommander XE 2021 Build 844 64-bit donor
Windows 10 Pro 64-bit Version 20H2 Build 19042.844
Re: searching on filename and/or file contents
Posted: 07.03.2021, 14:27
by mgroen
Odamn-Ete wrote: 07.03.2021, 13:23
Hey mgroen,
I don't think it is necessary for Marek to implement an additional AND/OR operator.
Looking at the image you posted, you have advanced options enabled
Under File name: activate the checkbox <Regular expression>
then put this into your file name field:
Tested this on your test data, which I downloaded.
Note, this solution only works if text is in the <Containing text:> field
otherwise it will find all files (.* means 'match anything'), the pipe | is your OR operator
Best regards,
FreeCommander XE 2021 Build 844 64-bit donor
Windows 10 Pro 64-bit Version 20H2 Build 19042.844
Hi @odam,
thanks for the info.
I still would prefer to implement AND/OR checkbox, this is much easier (user friendly) for users who are not into regular expressions.