You are not logged in.

#1 2020-05-24 19:04:10

archqt
Member
Registered: 2015-04-29
Posts: 203

[Plasma] Dolphin search [SOLVED]

Hi,
i did several tests. If i search with dolphin a file dart1.cpp, it can't find it, but with find utility used on Dolphin it works.

balooctl status dart1.cpp 
Fichier : /home/archqt/_Prog_Cours/dart1.cpp
Indexation simple : Programmée

So this file can't be found. I created a new file and force it to be indexed

balooctl index toto.cpp
Indexing /home/archqt/_Prog_Cours/toto.cpp
File(s) indexed

So now this file can be found. Is there a way to fix it ? And here is what i have in .config/baloofilerc

[General]
dbVersion=2
exclude filters=*~,*.part,*.o,*.la,*.lo,*.loT,*.moc,moc_*.cpp,qrc_*.cpp,ui_*.h,cmake_install.cmake,CMakeCache.txt,CTestTestfile.cmake,libtool,config.status,confdefs.h,autom4te,conftest,confstat,Makefile.am,*.gcode,*.csproj,*.m4,*.rej,*.gmo,*.pc,*.omf,*.aux,*.tmp,*.po,*.vm*,*.nvram,*.rcore,*.swap,lzo,litmain.sh,*.orig,.histfile.*,.xsession-errors*,*.map,*.so,*.a,*.db,*.qrc,*.ini,*.init,*.img,*.vdi,*.vbox*,vbox.log,*.qcow2,*.vmdk,*.vhd,*.vhdx,*.sql,*.sql.gz,*.class,*.pyc,*.pyo,*.elc,*.qmlc,*.jsc,*.fastq,*.fq,*.gb,*.fasta,*.fna,*.gbff,*.faa,po,CVS,.svn,.git,_darcs,.bzr,.hg,CMakeFiles,CMakeTmp,CMakeTmpQmake,.moc,.obj,.pch,.uic,.npm,.yarn,.yarn-cache,__pycache__,node_modules,node_packages,nbproject,core-dumps,lost+found
exclude filters version=5
only basic indexing=true

If i read well cpp file should be indexed
Thanks

PS and another thing strange to find cpp *.cpp doesn't work with dolphin/baloo search *.*cpp works

Last edited by archqt (2020-05-26 13:18:58)

Offline

#2 2020-05-24 19:51:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,361

Re: [Plasma] Dolphin search [SOLVED]

Source code files aren't indexed by default, aside from that exclude filters list there should also be a mimetype exclude list, see:

balooctl config ls excludeMimeTypes

were you probably have to remove the relevant mimetypes as well. E.g.

balooctl config rm excludeMimeTypes text/x-c++src

Offline

#3 2020-05-25 20:59:06

archqt
Member
Registered: 2015-04-29
Posts: 203

Re: [Plasma] Dolphin search [SOLVED]

V1del wrote:

Source code files aren't indexed by default, aside from that exclude filters list there should also be a mimetype exclude list, see:

balooctl config ls excludeMimeTypes

were you probably have to remove the relevant mimetypes as well. E.g.

balooctl config rm excludeMimeTypes text/x-c++src

Thanks.
i did it but even with a balooctl check after it doesn't work. Do i have to purge everything ?

Last edited by archqt (2020-05-25 20:59:29)

Offline

#4 2020-05-25 21:05:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,361

Re: [Plasma] Dolphin search [SOLVED]

There are multiple mime types that match for c++ files take a closer look at the list to identify all that could be relevant.

Offline

#5 2020-05-26 07:20:54

archqt
Member
Registered: 2015-04-29
Posts: 203

Re: [Plasma] Dolphin search [SOLVED]

V1del wrote:

There are multiple mime types that match for c++ files take a closer look at the list to identify all that could be relevant.

Thanks it works BUT for me it is a bug. Someone that searchs a thing expect to find real files...

Offline

#6 2020-05-26 07:30:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,361

Re: [Plasma] Dolphin search [SOLVED]

Not really, it's a very intentional omission of source code files, probably because the index could artificially blow up with thousands of code files depending on codebase sizes, and most often there being better tools for handling codebases (git index searchers, IDEs...) You might be able to add folders you are particularly interested in to the whitelist, but I'm not sure whether that will ignore the blacklist for that particular folder.

What I do think might even be worth a feature request or so is having some toggle in dolphin on whether it should do a "primitive" file search when it isn't feasible to have them in the baloo index. (It technically has such a fallback already but that only triggers on explicitly blacklisted folders/mount points)

Last edited by V1del (2020-05-26 09:29:06)

Offline

Board footer

Powered by FluxBB