Registered Member
|
I have an image file containing a jpeg comment
However, when I try to search for this file by content (in Dolphin) and use sgurr or looking as a search word, nothing is found. I can find the file by filename. Should my content search work? |
Registered Member
|
|
Registered Member
|
The documentation I found at https://community.kde.org/Baloo/Debugging#balooshow gave me the impression that my file was not excluded and baloo is running as these were things to check if balooshow had NOT shown my file info. I hope I am understanding that correctly? I do also find other files (xml,gpx,pdf) by their content, but not jpg. |
Registered Member
|
Normally it should have been checked by baloo.
You may also have a look at exclude-lists:
If they not include anything your file depends on try to (re)check it manually
|
Registered Member
|
I can see no problem with the excludes/filters, and the defaults I have all look sensible.
So I think the index is probably ok, and I am doing something wrong with Dolphin search or something is wrong with the Dolphin search but I have no idea how to start investigating that. I don't have a problem with searching in other file types by content so I think I am using Dolphin OK. I wish I knew whether the balooshow command shows data from the index or from the file. That might clear up whether the index is OK. |
Registered Member
|
Try direct search with baloo to test it
Does this match your file? |
Registered Member
|
No, the jpeg is not found. Another gpx file which also contains the name of this hill is found. But on the other hand, this search does find the file.
|
Registered Member
|
Okay. So baloo did not recognize this meta-stuff.
As I have no idea handling photos, so I would try to compare this special file with another one being found to get the difference.
Perhaps the ImageMagick-tools could help you with this. |
Registered Member
|
thank you for trying for me - the file I showed was an example - I can't get this to work for any jpeg file
it seemed from the balooshow command that it should have done. I intend to install recoll to give it a try next. As I find myself with some time on my hands I will continue to try and work out (what is wrong with / what I am getting wrong with) baloo. I have never worked with C++ and have not used C for about 20 years, so I do not expect this to be quick again - thank you vielen dank! |
Registered Member
|
There is no need to use C/C++. The `file` command is a tool located in /usr/bin/file, not a file-descriptor like FILE* in C
Can you tell me how you set your meta-tags? I could try it on my machines and see if it is a baloo-bug or a meta-issue. With the above mentioned imagemagick-pakcage installed it would be
(it is really one - before verbose-command) |
Registered Member
|
I should have been more clear. I only have not properly indexed image files. I have no image file for which this works.
I have now tried recoll and it worked (out of the box). Here is some background in case seeing what I am trying to do helps. I actually added the comment 10 ish years ago and do not remember which photo viewing program I used. It would have been something that came with Mandriva back then. Currently I am planning to use exiftool. About 10 years ago, one of the photo viewing programs allowed a comment to be added to a jpeg and would show it to you as you viewed the picture. I added jpeg comments to the next couple of years photos as I took them. With software updates over the passing years, I can no longer find exactly this function in any of the photo viewing programs. They currently save comments to a variety of different places with different software: separate files for each photo, file extended attributes (xattr), EXIF data, etc. I wish to have the comment in the file so they copy around together, so separate files and xattr are out, as the data could easily get lost copying over fat formated memory sticks, NFS etc. So the jpeg comment would work as woult EXIF as it too is embedded in the file. The various image viewing programs all vary so I can see no obvious preference there. Next I looked at desktop indexing to see if one thing worked better than another. I use KDE so I started with baloo, to find that I could not get it to work at all. My wife says 'forget all this useless software, lets just put the comments in a spreadsheet'. Obviously to search the photos you then need to open the spreadsheet, search it and then go and find the matching file. Not great but unlikely to go wrong. I quite like this solution as exiftool can import from and export to a spreadsheet (via csv files). Now I can use the spreadsheet to update the comments in the files, and recreate the spreadsheet from the files. And recoll works to search directly. As a software developer (long retired), however, I want to understand why I couldn't get baloo to work for me. And if possible, get it to work, even if I have to read code and learn new languages. So if you wish to continue helping me, that would be great. The problem for me has moved from how do I index my pictures. It is now how do I get baloo to do it so I dont need recoll. here is a simple way to add a comment to a jpeg file
This will rename the original file adding _original to the name, and write out a new file. and finally
|
Registered Member
|
I'm not a developer, unfortunately, but I'm interested and have a basic knowlegde of some languages. As I'm using baloo as my file indexer too (including contents), being interested in making it better, so perhaps we can find a way to get closer.
Thank you for your input, I'll create a test environment this weekend and search the known bugs! // what I forgot: Searching works only if you make it explicit:
So it seems not to be the indexer but the query search included stuff. |
Registered Member
|
thank you
that is very helpful
so now I can concentrate my effort on what the search in Dolphin does |
Registered Member
|
and if I put
into the Dolphin search box where I thought I just needed to put the search terms, that too works |
Registered Member
|
It helps, but it is not the way I exptected it to work. As I'm using arch I have to compile baloo with debug-flags to get more information (or use a virtual machine with debian/ubuntu and dgb-packages).
I'm also missing a manpage which describes what baloosearch -type XX does. |
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]