Bug 348902 - search is broken - searching in the status bar forever and never finds anything
Summary: search is broken - searching in the status bar forever and never finds anything
Status: RESOLVED FIXED
Alias: None
Product: Baloo
Classification: Frameworks and Libraries
Component: General (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Vishesh Handa
URL:
Keywords:
: 351235 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-08 22:22 UTC by Hussam Al-Tayeb
Modified: 2016-01-22 22:35 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 15.12


Attachments
screenshot (90.19 KB, image/png)
2015-06-08 22:23 UTC, Hussam Al-Tayeb
Details
search (147.79 KB, image/png)
2015-09-16 15:15 UTC, Hussam Al-Tayeb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hussam Al-Tayeb 2015-06-08 22:22:58 UTC
Steps to reproduce.
1- open dolphin.
2- under 'Search For' on the left, lick on "Images".
3- Click on the close button 'quit searching'.
notice the error about invalid protocol.
this is dolphin from git.

Reproducible: Always
Comment 1 Hussam Al-Tayeb 2015-06-08 22:23:45 UTC
Created attachment 93084 [details]
screenshot

Added a screenshot.
Comment 2 Hussam Al-Tayeb 2015-06-09 17:33:04 UTC
By the way, as noted in the screenshot, search itself works.
I am using baloo 5.3.1 release.
Does dolphin require the post 5.3.1 git version?
Comment 3 Hussam Al-Tayeb 2015-06-09 17:52:21 UTC
Typing search:/ in dolphin's address bar also results in 'invalid protocol' so I guess this is the cause of the error.
Any ideas?
Thank you.
Comment 4 Hussam Al-Tayeb 2015-09-13 17:51:17 UTC
Same issue in kf5 5.14 / kde 15.08 / plasma 5.4.1
Comment 5 Emmanuel Pescosta 2015-09-14 19:32:29 UTC
(In reply to Hussam Al-Tayeb from comment #3)
> Typing search:/ in dolphin's address bar also results in 'invalid protocol'
> so I guess this is the cause of the error.
> Any ideas?
> Thank you.

Please try baloosearch:/ (Baloo package) or filenamesearch:/ (kio-extras package)
Comment 6 Hussam Al-Tayeb 2015-09-14 19:47:35 UTC
On Monday, September 14, 2015 7:32:29 PM EEST you wrote:
> https://bugs.kde.org/show_bug.cgi?id=348902
> 
> Emmanuel Pescosta <emmanuelpescosta099@gmail.com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
> CC|                            |emmanuelpescosta099@gmail.c
>                    |                            |om
> 
> --- Comment #5 from Emmanuel Pescosta 
<emmanuelpescosta099@gmail.com> ---
> (In reply to Hussam Al-Tayeb from comment #3)
> 
> > Typing search:/ in dolphin's address bar also results in 'invalid
> > protocol'
> > so I guess this is the cause of the error.
> > Any ideas?
> > Thank you.
> 
> Please try baloosearch:/ (Baloo package) or filenamesearch:/ (kio-extras
> package)

- Clicking the search button in the toolbar makes the window title 
"baloosearch - / - Dolphin" and search works there (I can find a file.ods)

- if I manually type baloosearch:/ in location bar, search is broken but 
clicking x does not result in a protocol error.
- If I manually type filenamesearch:/ in location bar, search is broken but 
clicking X does not result in protocol error.

Now if I click on 'Documents' under 'Search for', it shows the indexed 
documents but adding adding a search query to narrow down seems broken. 
Then clicking X results in 'invalid protocol'.

In all the above cases, "search is broken" means it says searching in the 
status bar forever and never finds anything (possibly cannot connect to 
baloo?).

Seems complicated...
Comment 7 Hussam Al-Tayeb 2015-09-14 19:52:35 UTC
One more thing. if I 'baloo stop' and then restart dolphin and press on "Documents" under "Search for", it still lists the indexed document files.
Comment 8 Hussam Al-Tayeb 2015-09-16 15:15:49 UTC
Created attachment 94602 [details]
search

Options are grayed out if start search from the sidebar.
The same options work if I search by pressing 'search' button in toolbar.
Comment 9 Hussam Al-Tayeb 2015-09-16 16:31:20 UTC
QFileInfo::absolutePath: Constructed with empty filename
QFileInfo::absolutePath: Constructed with empty filename
kf5.kio.core: KLocalSocket(0x237a340) Jumbo packet of 33168 bytes
"Trying to convert empty KLocalizedString to QString."

This appears in terminal when I click on "Documents" and then "Images".
Comment 10 Emmanuel Pescosta 2015-10-09 11:46:20 UTC
*** Bug 351235 has been marked as a duplicate of this bug. ***
Comment 11 Hussam Al-Tayeb 2015-10-12 05:42:25 UTC
Just to remove any confusion, baloo is actually enabled when this bug happens and search works in kickoff and baloo command line tools.
Comment 12 Mircea Kitsune 2015-10-26 15:41:49 UTC
Confirming this for openSUSE Tumbleweed, Baloo 5.14.0. The problem is not just for images; You get an "Invalid protocol" error for any search you attempt to make in Dolphin, if it's in a location that Baloo is allowed to index.

Some people suggested that you need to let Baloo finish indexing everything first, and that this happens because it hasn't processed the directory yet. This doesn't however seem to be the case either! On my laptop I left Baloo running overnight, and it didn't seem to do any more work the next morning. I then restarted the machine and attempted to search in various directories... the error was always present in each one. I permanently disabled Baloo once more after yet another major disappointment with it.
Comment 13 Bastian Beischer 2015-11-10 22:33:00 UTC
Using ctrl+f to search works for me.

Using the links in the left pane works for the "Recently saved" entries, but not for the "Search for" entries.

Could someone compare what ctrl+f does differently from the "Search for" links? I think those are just shortcuts for "baloosearch:/" and "filenamesearch:/" - maybe those are just invalid because of a change in the KIO slave?

Also, I think bug 351549 is a duplicate.
Comment 14 Weng Xuetian 2015-11-19 17:41:03 UTC
Git commit ed3bb94ea095e3ba3e3b96584d817899121e1653 by Weng Xuetian.
Committed on 19/11/2015 at 17:40.
Pushed by xuetianweng into branch 'master'.

Fix search in places panel.

addType("File") will create a invalid query for baloo. Currently seems
there is no replacement for it, so just remove it.

REVIEW: 126109
FIXED-IN: 15.12

M  +0    -1    src/panels/places/placesitemmodel.cpp

http://commits.kde.org/dolphin/ed3bb94ea095e3ba3e3b96584d817899121e1653
Comment 15 John Andersen 2016-01-14 23:18:52 UTC
How can we force the reopening of this bug?  It is Not Fixed.  It is not resolved.
Search (find) in Dolphin does not work in any scenario.

Click Find (or Ctrl F)
Select Content button, (and either From Here or Everywhere button - makes no difference)
Type in a word that you know exists in a file in your own directory
No results.  





Manjaro (arch) Linux
KDE Frameworks 5.17.0
Qt 5.5.1 (built against 5.5.1)
The xcb windowing system
Comment 16 Hussam Al-Tayeb 2016-01-15 09:54:14 UTC
(In reply to John Andersen from comment #15)
> How can we force the reopening of this bug?  It is Not Fixed.  It is not
> resolved.
> Search (find) in Dolphin does not work in any scenario.
> 
> Click Find (or Ctrl F)
> Select Content button, (and either From Here or Everywhere button - makes no
> difference)
> Type in a word that you know exists in a file in your own directory
> No results.  
> 
What kde applications version? 15.12?
Comment 17 Mircea Kitsune 2016-01-15 12:58:35 UTC
I assume an admin needs to confirm first, then set the bug back to open. Not surprised if this is still the case... Baloo has always been the black sheep of KDE (at least for me) because of how many issues of various types it keeps on doing, even after everyone says "it works well now".
Comment 18 John Andersen 2016-01-15 21:02:40 UTC
(In reply to Hussam Al-Tayeb from comment #16)
> (In reply to John Andersen from comment #15)
> > How can we force the reopening of this bug?  It is Not Fixed.  It is not
> > resolved.
> > Search (find) in Dolphin does not work in any scenario.
> > 
> > Click Find (or Ctrl F)
> > Select Content button, (and either From Here or Everywhere button - makes no
> > difference)
> > Type in a word that you know exists in a file in your own directory
> > No results.  
> > 
> What kde applications version? 15.12?

balooctl reports version 5.17  

Baloo refuses to index plaintext documents.
Comment 19 Hussam Al-Tayeb 2016-01-15 21:15:52 UTC
(In reply to John Andersen from comment #18)
> balooctl reports version 5.17  
> 
> Baloo refuses to index plaintext documents.

Baloo is part of frameworks.
This is supposed to be fixed in applications 15.12 in dolphin and *not* baloo. What version is your dolphin package?
The current release is  	15.12.1
Comment 20 John Andersen 2016-01-15 21:33:56 UTC
(In reply to Hussam Al-Tayeb from comment #19)
> (In reply to John Andersen from comment #18)
> > balooctl reports version 5.17  
> > 
> > Baloo refuses to index plaintext documents.
> 
> Baloo is part of frameworks.
> This is supposed to be fixed in applications 15.12 in dolphin and *not*
> baloo. What version is your dolphin package?
> The current release is  	15.12.1

Dolphin version 15.12.0
KDE Frameworks 5.17.0
Qt 5.5.1 (built against 5.5.1)

It would be a nifty trick if fixing Dolphin could some how make up for the fact that Baloo refuses to index plain text files.  --- So, basically, I don't believe you, or I don't believe you understand the problem.

Baloo indexer will not index the CONTENT of plain text files.  It will index the file names. 
I checked and changed mimetypes:   exclude mimetypes=image/jpeg
It still refuses to index content of plain text files.

I test at the command line with baloosearch.  This is not a Dolphin problem.
Comment 21 Hussam Al-Tayeb 2016-01-15 21:45:17 UTC
(In reply to John Andersen from comment #20)
> (In reply to Hussam Al-Tayeb from comment #19)
> > (In reply to John Andersen from comment #18)
> > > balooctl reports version 5.17  
> > > 
> > > Baloo refuses to index plaintext documents.
> > 
> > Baloo is part of frameworks.
> > This is supposed to be fixed in applications 15.12 in dolphin and *not*
> > baloo. What version is your dolphin package?
> > The current release is  	15.12.1
> 
> Dolphin version 15.12.0
> KDE Frameworks 5.17.0
> Qt 5.5.1 (built against 5.5.1)
> 
> It would be a nifty trick if fixing Dolphin could some how make up for the
> fact that Baloo refuses to index plain text files.  --- So, basically, I
> don't believe you, or I don't believe you understand the problem.
> 
> Baloo indexer will not index the CONTENT of plain text files.  It will index
> the file names. 
> I checked and changed mimetypes:   exclude mimetypes=image/jpeg
> It still refuses to index content of plain text files.
> 
> I test at the command line with baloosearch.  This is not a Dolphin problem.

If you tested with baloosearch, then file a different bug. This bug is about dolphin search bar being broken when triggered from Places menu.
Comment 22 kilbertphone 2016-01-22 22:35:54 UTC
I am still finding this bug as unfixed, I am running 15.12.0-7.1
I posted it here:
https://forum.kde.org/viewtopic.php?f=224&t=130701