searching on filename and/or file contents

Discussion, questions and support.
Post Reply
Message
Author
mgroen
Posts: 147
Joined: 07.02.2020, 15:03

searching on filename and/or file contents

#1 Post by mgroen » 03.03.2021, 13:43

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??

Image

Karol
Posts: 963
Joined: 19.08.2007, 12:05

Re: searching on filename and/or file contents

#2 Post by Karol » 04.03.2021, 09:25

Try with *ziggo*.*

mgroen
Posts: 147
Joined: 07.02.2020, 15:03

Re: searching on filename and/or file contents

#3 Post by mgroen » 04.03.2021, 10:57

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:

Image

User avatar
ralfso
Posts: 812
Joined: 31.10.2007, 18:21
Location: Gifhorn, Germany

Re: searching on filename and/or file contents

#4 Post by ralfso » 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?
Regards
Ralf

Win10 (64-bit), Intel i7-2600 (3,4 GHz), 8 GB Ram, 500 GB SSD, 2x2000 GB HD, NVIDIA GeForce 545

mgroen
Posts: 147
Joined: 07.02.2020, 15:03

Re: searching on filename and/or file contents

#5 Post by mgroen » 04.03.2021, 14:11

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 :( :(

User avatar
alf5000
Posts: 552
Joined: 12.04.2012, 17:59
Location: Austria

Re: searching on filename and/or file contents

#6 Post by alf5000 » 04.03.2021, 17:59

@mgroen
I can confirm your findings - looks like a bug to me.
(win10pro x64) - (latest FCXE x64 portable)

Marek
Author
Author
Posts: 3973
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: searching on filename and/or file contents

#7 Post by Marek » 04.03.2021, 19:45

@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?

User avatar
alf5000
Posts: 552
Joined: 12.04.2012, 17:59
Location: Austria

Re: searching on filename and/or file contents

#8 Post by alf5000 » 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

Image

Image

Image


... 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
(win10pro x64) - (latest FCXE x64 portable)

mgroen
Posts: 147
Joined: 07.02.2020, 15:03

Re: searching on filename and/or file contents

#9 Post by mgroen » 05.03.2021, 14:08

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

Image

Image

Image


... 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.

Odamn-Ete
Posts: 270
Joined: 28.06.2017, 07:10

Re: searching on filename and/or file contents

#10 Post by Odamn-Ete » 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:

Code: Select all

^(Bahnhof|.*)
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

mgroen
Posts: 147
Joined: 07.02.2020, 15:03

Re: searching on filename and/or file contents

#11 Post by mgroen » 07.03.2021, 14:27

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:

Code: Select all

^(Bahnhof|.*)
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.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 41 guests