PDA

View Full Version : [ubuntu] Searching files and files contents - no luck yet



ElQanah
October 20th, 2011, 02:44 AM
Ok. I have dozens of .odt and thousands of .docx, .slxs. etc.

Basically I use Ubuntu (*11.10 now) and for starter, the Unity Search Files and Folders is a failure. Do not even find files by name part. Nautilus Search seems to find those at least.

But it's critical for many users like me to be able to search documents contents. I have found that scream for help in many places googling about that issue, but no successful stories, except for Google Desktop for one guy somewhere.

Google Desktop was half working for the last two Ubuntu releases. Now they closed the project "because everybody is clouding their data".

Last time I tried Beagle, it did nothing for me on Nathy, neither Tracker was a successful tool for the job.

I ran into DocFetcher, but haven't tried that yet (any suggestions are highly appreciated).

WB0HYQ
October 20th, 2011, 09:57 PM
I am with you ElQanah. In unity I am unable to get a single match even with "*.*". NOTHING shows up. I know I have around 1200 pictures (JPGs) and no search parameters can find them - even though they are in my Pictures folder.

Basically, I am not able to find any of my files and have not found a single "file manager" that works properly.

Any help out there?

Bill

DZ*
October 25th, 2011, 04:06 PM
I have dozens of .odt and thousands of .docx, .slxs. etc.

I switched from Google Desktop to recoll. It is very powerful. It can do complex queries, restrict search to filetypes, and it can even do stuff like search within zipped PDF attachmments to emails, which Google Desktop couldn't do. It doesn't do real time indexing by default, although it has that capability too. You'd have to tell it to update the index or setup a cron job (recoll documentation explains all that).

WasMeHere
October 25th, 2011, 04:24 PM
I had not heard of recoll, it makes me interested :-)

Don't forget that there are powerful command line tools to run from a terminal window: try the following commands to learn about find and grep.

info find
info grep
Having fun finding out about Ubuntu
Olle

Matt 6:27
October 25th, 2011, 04:30 PM
Beagle used to be pretty good, if hard on your system resources.

It's not graphical, but I find 'locate' quite effective to find files or directories.

Go to Terminal and update your database:

sudo updatedb

Once updated, search for file:

locate -i [search term]
The "-i" eliminates case sensitivity in the search.

To find terms within a file, use:

grep [search term] *

*= wildcard - I believe you should be able to substitute the * with a filename to narrow the search.

There a ton of ways to narrow a search, so check out "man locate" or "man grep" in terminal.... and good luck.

DZ*
October 25th, 2011, 04:49 PM
I had not heard of recoll, it makes me interested :-)

Don't forget that there are powerful command line tools to run from a terminal window: try the following commands to learn about find and grep.

info find
info grepHaving fun finding out about Ubuntu
Olle

These are good for simple tasks, within a small number of files. Some advantages of recoll are instantaneous search, search for content other than simple text (sure, one can feed grep the output of something like pdftotext, but it quickly gets complicated), and ability to click on results to open in an application.

Another thing it is good at is "stemming", and not only in English. For example, in addition to English stemming I have set it up to return results for inflected/derived forms of Russian words and recoll does this job very well.
For a fresher version of recoll than that in repos,

sudo add-apt-repository ppa:recoll-backports/recoll-1.15-on

Matt 6:27
October 25th, 2011, 04:59 PM
These are good for simple tasks, within a small number of files. Some advantages of recoll are instantaneous search, search for content other than simple text (sure, one can feed grep the output of something like pdftotext, but it quickly gets complicated), and ability to click on results to open in an application.

Another thing it is good at is "stemming", and not only in English. For example, in addition to English stemming I have set it up to return results for inflected/derived forms of Russian words and recoll does this job very well.
For a fresher version of recoll than that in repos,

sudo add-apt-repository ppa:recoll-backports/recoll-1.15-on


DZ - sounds good. I think I'll take a look at recoll too. Thanks.

ElQanah
November 10th, 2011, 06:24 PM
I switched from Google Desktop to recoll. It is very powerful. It can do complex queries, restrict search to filetypes, and it can even do stuff like search within zipped PDF attachmments to emails, which Google Desktop couldn't do. It doesn't do real time indexing by default, although it has that capability too. You'd have to tell it to update the index or setup a cron job (recoll documentation explains all that).

Thank you for your recommendation. I installed recoll and it's quite impressive. Definitively the way to go, best option so far, fast and reliable. Better of what I expected.

Now that's linux working well!

opiumpoetry
March 9th, 2012, 12:31 AM
Docfetcher works great for me. Sure works better than "Search for Files..." which only finds half what it should.