Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE: desktop search
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
rohan28
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2004
Posts: 84
Location: Australia

PostPosted: Tue Jan 25, 2005 3:53 am    Post subject: KDE: desktop search Reply with quote

Hi all,

While us KDE users are waiting for KDE 4 and a real desktop search program, there are some alternatives around. I gave Beagle a try, but I didn't like having to install a whole bunch of Gnome dependencies, and the search frontend wouldn't let me open documents in my KDE programs; I looked around some more and found a desktop independent indexer and managed to get it to index my KDE data (KMail, Kopete logs, Konqueror web cache), as well as all my OpenOffice, MS Office, PDF etc documents.

Now, on my system, I can search (and do regular expressions on) the text of my documents with a Konqueror search shortcut (like gg:). All this without even running a daemon :-)

Of course, this is just a temporary solution until we get a real KDE desktop search program, but it works surprisingly well. For anyone who is interested, I have put up a HOWTO here.

Enjoy :-)
Back to top
View user's profile Send private message
NocturnalCoffeeMan
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2004
Posts: 148
Location: Friday Harbor, WA

PostPosted: Thu Jan 27, 2005 3:41 am    Post subject: Reply with quote

yeah, google has something like that for winders, we need that now
_________________
Registered Linux User #365191
Back to top
View user's profile Send private message
radfoj
Guru
Guru


Joined: 31 Dec 2004
Posts: 490
Location: Tísek, Czech Republic

PostPosted: Thu Jan 27, 2005 5:13 pm    Post subject: Reply with quote

Hi and thanks for yours howto.

I tried it and it really works, but not exactly how I want. I have problems with indexing.
1) Why is it not indexing my KMail messages?
Code:

radfoj@radfoj index $ ls /home/radfoj/Mail/ABC/cur
1092055144.4818.bdmd6:2,S   1102164369.3784.xv3ar:2,S  1102259145.4258.b3KXV:2,S
1093459749.2782.Ne1ms:2,S   1102172791.3784.O5f09:2,S  1102259145.4258.8Tj2m:2,S
1093462138.2782.gzREO:2,S   1102173745.3784.2US7q:2,S  1102259147.4258.gwyPC:2,S

radfoj@radfoj index $ mknmz /home/radfoj/Mail/ABC/cur
Looking for indexing files...
No files to index.

2) Why is it indexing only 3 of 12 files?
Code:

radfoj@radfoj index $ ls /home/radfoj/Documents/notes
forwarding            kicked             notes.txt    stahni.nova-0.1
gentoo_install_notes  krusader install   rc.firewall  wifi notes
hesla.html            mplayer_configure  sn.txt       zvuk

radfoj@radfoj index $ mknmz /home/radfoj/Documents/notes
Looking for indexing files...
3 files are found to be indexed.
1/3 - /home/radfoj/Documents/notes/hesla.html [text/html]
2/3 - /home/radfoj/Documents/notes/notes.txt [text/plain]
3/3 - /home/radfoj/Documents/notes/sn.txt [text/plain]
Writing index files...


I thing that I did all how was described in howto. So I am going to search answers for my questions to www.namazu.org now. But some ideas would be nice.
Back to top
View user's profile Send private message
icefox13
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2004
Posts: 78
Location: Munich, Germany

PostPosted: Thu Jan 27, 2005 7:54 pm    Post subject: Reply with quote

radfoj wrote:

2) Why is it indexing only 3 of 12 files?


it looks like the ones indexed are those with a common file extension, like .txt or .html - maybe you can rename other files and test it to prove my guess
Back to top
View user's profile Send private message
rohan28
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2004
Posts: 84
Location: Australia

PostPosted: Thu Jan 27, 2005 11:58 pm    Post subject: Reply with quote

Yes, that's right, Namazu initially selects files to index by file extension. You should be able to make it attempt to index all files by having this line:

Code:

$ALLOW_FILE =   "*";


(make sure you remove/comment all other $ALLOW_FILE lines)

The downside to this is that the indexing may slow down quite a bit, if you have lots of non-text files in the path you're indexing.

radfoj:
Um... oops :-) I just realised that all of the filename patterns in the HOWTO have been garbled. A lot of backslashes have gone missing, which will stop it from working. (I'd be surprised if anyone could correctly index their KMail, Kopete logs or Konqueror cache.)

These are the correct filename globs (already updated in the HOWTO):
Code:

                "|.*\\.mp3" .                      # MP3
                "|\\d+|[-\\w]+\\.[1-9n]" .         # Mail/News, man
                # lines to insert begin here
                # remember to change ; to . in previous line
                "|\\d+\\.\\d+\\.[\\d\\w]+(:\\d,\\w)?" . # KMail Maildir
                "|.*\\.\\d{6}\\.xml" .                  # Kopete logs
                "|.*(($HTML_SUFFIX)|_)_[\\d\\w]{8}";    # Konqueror cache


(yes, the double backslashes are correct)

Anyway, if you do this, your KMail, Kopete logs and Konqueror cache should all be indexed.
Back to top
View user's profile Send private message
radfoj
Guru
Guru


Joined: 31 Dec 2004
Posts: 490
Location: Tísek, Czech Republic

PostPosted: Fri Jan 28, 2005 10:42 am    Post subject: Reply with quote

rohan28 wrote:
(yes, the double backslashes are correct)
Anyway, if you do this, your KMail, Kopete logs and Konqueror cache should all be indexed.


I agree with you. Tkanks for all your "tips". :lol:
Back to top
View user's profile Send private message
iverson0881
Apprentice
Apprentice


Joined: 08 Jan 2004
Posts: 285
Location: CA

PostPosted: Sat Feb 26, 2005 3:00 am    Post subject: Reply with quote

I currently use beagle on KDE and i love the thing but there really isn't a way to change it from nautilus to say some other file manager. Any file manager?

I mean there has to be a way. It's not like they're gonna lock themselves with Firefox for web browsing and evolution. There tons of people out there that use Thunderbird or Opera. There must be some default open setting thats built-in somewhere and should be able to be modified.
Back to top
View user's profile Send private message
Yama
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2002
Posts: 135
Location: Sydney, Australia

PostPosted: Mon Apr 11, 2005 2:20 pm    Post subject: Namazu is great! Reply with quote

Thanks for the HOWTO. Namazu fits the role of a desktop search tool very well. It's not quite as good as Beagle (technically), but it works without any fuss. It took me ages to get Beagle working, and even then it was crash-prone. Beagle will get there eventually, but Namazu is the best tool right now.

rohan28 wrote:
Yes, that's right, Namazu initially selects files to index by file extension. You should be able to make it attempt to index all files by having this line:

Code:

$ALLOW_FILE =   "*";


I had an error after inserting that line (and disabling the others). Instead I put:
Code:

$ALLOW_FILE =   ".*";

I don't know if this is the best way to do it, though.
Back to top
View user's profile Send private message
Illissius
Guru
Guru


Joined: 31 Jul 2004
Posts: 395
Location: Hungary

PostPosted: Mon Apr 11, 2005 2:46 pm    Post subject: Reply with quote

There's also this. (Don't use anything of the sort myself, as I tend to remember where I put stuff...)
_________________
Work is punishment for failing to procrastinate effectively.
last.fm
Back to top
View user's profile Send private message
Yama
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2002
Posts: 135
Location: Sydney, Australia

PostPosted: Tue Apr 12, 2005 11:22 am    Post subject: Reply with quote

Does anybody know what setting I need to use to tell Namazu to scan all files which don't have extensions? I save a lot of data in plain text files, and I normally don't use a .txt extension.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Mon Apr 18, 2005 3:39 am    Post subject: Reply with quote

iverson0881 wrote:
I currently use beagle on KDE and i love the thing but there really isn't a way to change it from nautilus to say some other file manager. Any file manager?

I mean there has to be a way. It's not like they're gonna lock themselves with Firefox for web browsing and evolution. There tons of people out there that use Thunderbird or Opera. There must be some default open setting thats built-in somewhere and should be able to be modified.

Couldn't you make a bash script and name it nautilus that takes the arguments passed to it and then start up konqueror?
Back to top
View user's profile Send private message
rohan28
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2004
Posts: 84
Location: Australia

PostPosted: Mon Apr 18, 2005 10:36 am    Post subject: Reply with quote

Beagle now has an HTTP based interface (like Google Desktop Search), so you could view that with Konqueror, and any links clicked would respect your KDE file associations - just like the Namazu interface. Unfortunately, there's still no way to build it without all the Gnome dependencies (and I guess there never will be... )
Back to top
View user's profile Send private message
joefish
Guru
Guru


Joined: 27 Jan 2004
Posts: 316
Location: New Zealand

PostPosted: Sun May 29, 2005 11:42 am    Post subject: Reply with quote

I followed the HOWTO, when I try and use namazu as indicated, I get: a dialog box saying "Open 'cgi:/nmz?query={@}'?".

I'm using KDE 3.4 with the split ebuilds. According to KInfoCenter I do have CGI available as a kioslave.

Any ideas?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum