Bug 150604 - Beagle search spins forever
Summary: Beagle search spins forever
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Joe Shaw
QA Contact: E-mail List
URL: http://www.obviously.com/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-13 20:53 UTC by Bryce Nesbitt
Modified: 2006-03-06 22:34 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bryce Nesbitt 2006-02-13 20:53:41 UTC
This is not a very good bug report, because all I can say is it does not work.


I ran beagle after wondering why .beagle was so huge.  Searches in the "chats" section work fine.  But all others hang beagle with a busy (clock) icon.  I'd run it under gdb, but: Running best from the command line gives:

Rendering
Done Rendering: .94s
** (best:15710): WARNING **: Binding 'F12' failed!
If you're wondering whether Best is working check your notification area (system tray)


And no gui appears.

beagle-query from the command line sort of works, but has lots of small problems.
Comment 1 Michael Gross 2006-02-14 12:30:33 UTC
Probably deleting the cache file will help. I don't know but maby the size should be limited.
Comment 2 JP Rosevear 2006-02-14 12:43:53 UTC
Assuming its the old best interface.
Comment 3 Joe Shaw 2006-02-14 15:15:39 UTC
Yeah, the old interface has been replaced with a more reliable one called beagle-search for 10.1.

Your ~/.beagle directory may be large because of the indexes, but it may also be large because we're keeping around verbose log files so we can track down bugs.  (Beagle is still considered beta.)  You might find some information on why searches aren't working in there; any info you can attach would help.

Can you describe the problems beagle-query is giving you?
Comment 4 Bryce Nesbitt 2006-02-14 16:12:47 UTC
Deleting the cache resolved the hang issue -- for now.

bryce@linux:~/cvs/ccs/denali> best --version
Gnome best 0.0


Problems: beagle-query "baby food" found the words, not the phrase.  No man page to figure out how to do a phrase search.  Documentation on --source option wrong, not to mention awkward if true.  beagle-status uselsss, and hard to read since it repaints screen.

All in all, seemed pretty rough.

---

While I'm at it:  there are four categories of files on my drive:
  1) Personal
  2) Cache (thumbnails, mozilla web page cache, imap cache but not imap flags)
  3) System files I've never modified.
  4) Log files.

I can skip backing up #2 and #3, and in many cases #4 -- but it can be hard to indentify what's what. Beagle blurs the line even more.  It would be great to have some equivalent of /tmp in userspace which contains files that don't need backing up (because they can be recreated on demand).
Comment 5 Joe Shaw 2006-02-14 16:36:15 UTC
The shell escapes quotation marks, so you may need to do something like:

beagle-query '"baby food"'

to get the phrase.

Man page is a fair point, I'll look into adding that.

--source searches are fixed in newer versions, which will ship in 10.1 (or can be downloaded and built from the beagle site)

Ditto for beagle-status; you can get one-off status by running beagle-info --status.

As for the tmp stuff, I don't think Beagle is particularly any different than other stuff like Evolution which maintains huge caches in ~/.evolution.  Local stores are kept there, yes, but most of the configuration is done within GConf.  A user-specific temp directory might be useful for stuff like that, but speaking specifically to Beagle, you should be able to set the BEAGLE_STORAGE directory to say where to store the beagle index info, but that hasn't been heavily tested.
Comment 6 Bryce Nesbitt 2006-02-14 17:03:52 UTC
The shell escapes "?  News to me:


> perl -e 'while($arg = shift @ARGV) { print "$arg\n" }' "one" "two words" "blue words food words"
one
two words
blue words food words


The arguments in "" come in as a single argument.


beagle-query "'test word'" also searchs for test and word separately.
Comment 7 Joe Shaw 2006-02-14 17:58:18 UTC
Ah, you're right, we weren't quoting them correctly before passing them onto the daemon.  Fixed in CVS.
Comment 8 Joe Shaw 2006-03-06 22:34:36 UTC
Submitted fixes to these to STABLE.