Re: Crawl System and Beagle 0.3.3

"Charles-Henri d'Adhémar" <[email protected]>
Newsgroups gmane.comp.gnome.dashboard.devel
Message-ID <[email protected]>
Thank you very much Debajyoti for taking the time to help me.


> Should not be. #530235 was a regression in 0.3.6 as far as I remember. I am
> currently out of town so I might be mistaken, though unlikely.

I do not think so either, I just wanted to make sure.


> Hmm... run these quick tests to see if those indexes are built correctly and
> picked up by beagle
>
> $ ls -l /var/cache/beagle/indexes
> => should show "documentation", "application" etc. system indexes

Test Ok :

[chicha@grogro ~]$  ls -l /var/cache/beagle/indexes
total 24
drwxr-xr-x 6 beagleindex beagleindex 4096 2008-06-23 17:58 applications/
drwxr-xr-x 6 beagleindex beagleindex 4096 2008-06-23 17:58 documentation/
drwxr-xr-x 6 beagleindex beagleindex 4096 2008-06-23 17:58 manpages/
drwxr-xr-x 6 beagleindex beagleindex 4096 2008-06-23 18:00 movies/
drwxr-xr-x 7 beagleindex beagleindex 4096 2008-06-23 18:00 music/
drwxr-xr-x 6 beagleindex beagleindex 4096 2008-06-23 18:02 photos/


>
> $ beagle-manage-index /var/cache/beagle/indexes/documentation info
> => it should show count > 0
> => replace "documentation" with names of the other indexes, and it should be >
> 0 for all the relevant ones

Test OK :

[root@grogro ~]# beagle-manage-index /var/cache/beagle/indexes/music info
Total number of entries in index: 91

[root@grogro ~]# beagle-manage-index /var/cache/beagle/indexes/photos info
Total number of entries in index: 13649

> $ beagled --fg --debug --backend documentation
> (from another terminal) $ beagle-query --max-hits 5 source:documentation
> => should return 5 results
> => replace "documentation" with other relevant indexes, and it should always
> return 5 results

TEST KO :

[chicha@grogro ~]$ beagle-shutdown
Debug: Done reading conf from /home/chicha/.beagle/config/Daemon.xml
Debug: Done reading conf from /etc/beagle/config-files/Daemon.xml
[chicha@grogro ~]$ beagled --fg --debug --backend music
Always: Starting Beagle Daemon (version 0.3.3)
Always: Running on Mono 1.2.6
Always: Command Line: /usr/lib/beagle/BeagleDaemon.exe --fg --debug
--backend music
Debug: Established a connection to the X server
Debug: Reniced process to 7
Debug: Starting messaging server
Debug: Done reading conf from /etc/beagle/config-files/Networking.xml
Debug: Done reading conf from /home/chicha/.beagle/config/Daemon.xml
Debug: Done reading conf from /etc/beagle/config-files/Daemon.xml
Warn: Inotify watches may be too low (8192) for some users!  Increase
it to at least 65535 by setting fs.inotify.max_user_watches in
/etc/sysctl.conf
Debug: Starting QueryDriver
Debug: Found 0 backends in /usr/lib/beagle/Backends/ThunderbirdBackends.dll
Debug: Found 0 backends in /usr/lib/beagle/BeagleDaemonLib.dll
Debug: Reading mapping from filters
Debug: Found 0 user-configured static indexes..
Debug: Waiting 60 seconds before starting queryables
Debug: Starting Scheduler thread
Debug: Starting Inotify threads
Debug: Daemon initialization finished after ,23s
Debug: Memory usage: VmSize=38,8 MB, VmRSS=14,3 MB,
GC.GetTotalMemory=905216 (10 colls)
Debug: Starting queryables
Debug: Parsed query 'source:photos' as prop query:key=beagle:Source,
value=photos and property type=Keyword

[chicha@grogro ~]$ beagle-query --max-hits 5 source:photos
Debug: Done reading conf from /home/chicha/.beagle/config/Daemon.xml
Debug: Done reading conf from /etc/beagle/config-files/Daemon.xml

Here is my configuration file :

[chicha@grogro ~]$ cat .beagle/config/Daemon.xml
<?xml version="1.0" encoding="utf-8"?>
<BeagleConf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" Name="Daemon">
  <ListOption Name="DeniedBackends" Description="Disabled backends"
Params="Backend name" Separator=",">
    <Value>EvolutionMail</Value>
    <Value>EvolutionDataServer</Value>
    <Value>Thunderbird</Value>
    <Value>Akregator</Value>
    <Value>Blam</Value>
    <Value>KMail</Value>
    <Value>KNotes</Value>
    <Value>KOrganizer</Value>
    <Value>KAddressBook</Value>
    <Value>KonqBookmark</Value>
    <Value>KonquerorHistory</Value>
    <Value>Konversation</Value>
    <Value>Kopete</Value>
    <Value>Labyrinth</Value>
    <Value>Liferea</Value>
    <Value>NetworkServices</Value>
    <Value>Opera</Value>
    <Value>Tomboy</Value>
    <Value>monodoc</Value>
    <Value>windows</Value>
  </ListOption>


And here is my global config file (from Mandriva) :

[chicha@grogro ~]$ cat /etc/beagle/config-files/Daemon.xml
<?xml version="1.0" encoding="utf-16"?>
<!-- Distributions and packagers, DO NOT remove or add any BoolOption,
StringOption or ListOption.
     Also do not change the Name, Description, Params and Separator attributes.
 -->
<BeagleConf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" Name="Daemon">
    <ListOption Name="StaticQueryables" Description="Static
queryables" Params="Index path" Separator=",">
    </ListOption>
    <ListOption Name="DeniedBackends" Description="Disabled backends"
Params="Backend name" Separator=",">
	<!-- Disabled by default EXPERIMENTAL -->
	<Value>NetworkServices</Value>
    </ListOption>
    <BoolOption Name="AllowStaticBackend" Description="Search static
indexes">true</BoolOption>
    <BoolOption Name="IndexSynchronization" Description="Synchronize
indexes locally if home directory is on a network device (eg.
NFS/Samba)">true</BoolOption>
    <BoolOption Name="AllowRoot" Description="Allow beagle to run as
root">false</BoolOption>
    <BoolOption Name="IndexOnBattery" Description="Allow beagle to
continue indexing when on battery">false</BoolOption>
    <BoolOption Name="IndexFasterOnScreensaver" Description="Allow
beagle to speed up indexing when on screensaver">true</BoolOption>
    <ListOption Name="Maildirs" Description="Maildir directories"
Params="Path" Separator=","></ListOption>
    <ListOption Name="ExcludeMailfolder" Description="Exclude these
mail folders" Params="Mail folder" Separator=",">
	<Value>spam</Value>
	<Value>outbox</Value>
	<Value>trash</Value>
	<Value>drafts</Value>
	<Value>templates</Value>
    </ListOption>
</BeagleConf>


I hope I am not spamming too much with my config details ...
I really do not see what is wrong (this must be something simple ...)

Thank you very much for your help !
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.