Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Unity is currently only indexing and displaying a shallow set of file results.

Suppose I want to open the file "/home/Music/Creedence Clearwater Revival/Willy and the Poor Boys/The-Midnight-Special.mp3".

I open the "Files and Folders" lens and type "The Midnight Special". Unfortunately, the song doesn't display. I try "Willy and the Poor Boys" but that folder doesn't display either.

The only folder that does display in the lens is "Music". Therefore I must open the "Music" folder then navigate through the entire directory tree to open the file I want.

How do I get a deeper index of files to display in the "Files and Folders" lens?

Thanks for your help!

share|improve this question
add comment

5 Answers

The Unity lens does not search all your files and folders, but rather only has access to files that you have opened at least once in the past (this is because it uses Zeitgeist for search).

There is a different lens you can install called "Unity Place Filesearch" which will search for every single file on your system. This provides much more thorough search results for files that you have never opened before. Once this new better search lens is installed, you can uninstall the old one if you do not want it anymore.

To install Unity Place Filesearch:

sudo add-apt-repository ppa:pydave/unity-lenses
sudo apt-get update
sudo apt-get install unity-place-filesearch

Then enter the following to make the lens appear:

setsid unity

OPTIONAL You can also set which folders to ignore (if you have private files) by editing the following file:

gedit ~/.filesearch.cfg

If you do edit this file, you can apply your changes by saving it then entering the following commands to stop and restart the lens.

killall unity-filesearch-daemon
setsid unity

To remove the old lens:

Backup the lens files first (just in case):

mkdir ~/backups
cp /usr/share/unity/places/files.place ~/backups/

Remove the lens:

sudo sed -i '14i ShowEntry=false' /usr/share/unity/places/files.place

And finally apply your changes by running:

unity --replace

All finished! Enjoy your new better search!

Sources all by Webupd8:

http://www.webupd8.org/2011/05/real-files-folders-search-unity-lens

http://www.webupd8.org/2011/04/things-to-tweak-fix-after-installing.html

share|improve this answer
add comment

Dash is not a simple search tool, it correlates your usage of files and applications to link to your search results. It simply shows those files you previously opened.

Searching you should do with 'files and folders'. Then those files get added to dash.

share|improve this answer
    
I'm not sure I follow, Rinzwind. As mentioned in the description, I am searching using "Files and Folders". –  Chris Bauer May 2 '11 at 21:23
1  
@Chris Bauer. still the same answer and yes it is a shame the way it is set up now. You need to open it to get it registered and there is no tool (yet) to register some files from command line. The only answer I have is to bug them with this: answers.launchpad.net/zeitgeist-project/+addquestion –  Rinzwind May 9 '11 at 19:31
add comment

It seems from the comments on this bug: https://bugs.launchpad.net/unity/+bug/646724 that the intention of the "Files and Folders" Lens is to just for search for recently used files (at least those that Zeitgeist knows about).

A different lens would be needed (and created) to search all files in your home directory.

If you are just searching for music and are using Banshee maybe the https://launchpad.net/unity-music-lens https://launchpad.net/~markjtully/+archive/ppa is better suited.

share|improve this answer
add comment

Zeitgeist is being fixed - they are currently in the process of adding a one time process to get all directories you want to index into Zeitgeist. See https://bugs.launchpad.net/unity/+bug/646724/comments/36 The problem currently is that ZG only indexes files you have interacted with, and the unity search uses ZG.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.