Bug 320629 - Search of CONTENT with EVERYWHERE finds nothing when Nepomuk used
Summary: Search of CONTENT with EVERYWHERE finds nothing when Nepomuk used
Status: RESOLVED NOT A BUG
Alias: None
Product: dolphin
Classification: Applications
Component: search (show other bugs)
Version: 2.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL: searching content
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-02 19:14 UTC by John Andersen
Modified: 2017-09-03 05:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Andersen 2013-06-02 19:14:55 UTC
When using the Ctrl-F search function in Dolphin, and selecting the CONTENT option and From EVERYWHERE option, the search fails to find anything at all unless you happen to be focused to a directory that is indexed.

If you select ANY indexed directory to begin the search, the search will find a list of files containing the search terms regardless of which directory they are found in.   

This is totally confusing.  From Everywhere should mean exactly that. 

The basic problem is that the Filename/Content and Here/Everywhere choices are overloaded and can not accommodate all the possible choices.



Reproducible: Always

Steps to Reproduce:
1.  Start in a non-indexed folder in Dolphin. 
2.  Click search button or Ctrl-F.  (all checkboxes and buttons on search panel will be grayed out)
3.  Select Content
4.  Select from Everywhere
5. Keyin search words known to exist in some file that is indexed
Actual Results:  
Nothing found

Expected Results:  
Something found

From Anywhere should offer three choices, From Here, From Anywhere, From Indexed files
The last option should be missing if Nepomuk is not running.

Searching Content From Anywhere, without use of nepomuk is so seldom useful that it should pop up a warning about how long this type of search could take. The warning should allow selection of single file system, choices of media etc.


The basic problem is that making all possible choices from two binary controls (names/content, and here/anywhere) is not logically possible when there are more than three sources (here/everywhere/indexed) and forcing the user to sit in some specific place to trigger a search is less obvious than a choice (third radio button).

Searching for Content from Indexed locations should not require one to be sitting in an indexed location.   

Related, but NOT duplicate bugs include 318442, 314607 

KDE 4.10.2 - Dolphin 2.2 - OpenSuse 12.3
Comment 1 Frank Reininghaus 2013-06-02 20:34:29 UTC
Thanks for the bug report. I'm currently using a system where no Nepomuk is available, and I cannot reproduce the problem. I cannot say much more about this issue, but actually, I think that the search should just fall back to the plain "filenamesearch" kioslave, which is also able to search by content, if Nepomuk has not indexed the current folder.
Comment 2 Hrvoje Senjan 2013-06-02 20:42:44 UTC
@Frank, i'm not sure do i understand correctly the description, but the issue is when one is the indexed dir, then content search is done only in indexed dirs (even though one has selected everywhere) via kio_nepomuksearch. When one is in a non-indexed dir , then the search is performed with kio_filenamesearch, and that one indeed searches entire $HOME.
But i think you already correctly stated the problem :-)
Comment 3 John Andersen 2013-06-02 21:04:43 UTC
@Hrvoje:

You are close, but not quite there.
The situation with file name search is not addressed by this bug report. 
The situation when nepomuk is not installed is not addressed by this bug report. (So Frank's situation isn't germane) 

The central problem is that using a CONTENT search from EVERYWHERE yields inconsistent results depending on where Dolphin is pointed (the directory being viewed).  

My recommendation is to break out the nepomuk indexed content search into an explicit choice rather than some obscure method of operation that depends on where you are pointing Dolphin at the moment.

From Here seems to work for file names.
Everywhere never really does a true EVERYWHERE under any condition that I can replicate.
Comment 4 Hrvoje Senjan 2013-06-02 21:17:28 UTC
(In reply to comment #3)
> @Hrvoje:
> 
> You are close, but not quite there.
> The situation with file name search is not addressed by this bug report. 
I meant kio_filenamesearch (which can also search by content, as Frank mentioned already)
Comment 5 John Andersen 2013-06-02 22:18:19 UTC
(In reply to comment #4)
> I meant kio_filenamesearch (which can also search by content, as Frank
> mentioned already)

Yes, I understood what you meant, Hrvejo.
That method of content search can be horrendously slow of course.  Nevertheless, it must be maintained for those directory trees that have not been indexed, and those users who don't install Nepomuk.

The problem I see is that Dolphin falls back to this, even when you do a "Content" search and choose "From Everywhere", but happen to be looking at an un-indexed directory.  You shouldn't have to go to a different directory to do an index search. 

I don't want to take away any capability, I want to add the capability of a content search of all indexed files from any location. This would be much more obvious.
Comment 6 Nate Graham 2017-09-03 05:32:41 UTC
Nepomuk has been ripped out and replaced with Baloo, which works much better, so this bug isn't really actionable anymore. Please file a new bug if you continue to have similar issues.