Re: [Tracker] [t-s-t] Tracker Suggests
- From: jamie <jamiemcc blueyonder co uk>
- To: Edward Duffy <eduffy gmail com>
- Cc: Tracker List <tracker-list gnome org>
- Subject: Re: [Tracker] [t-s-t] Tracker Suggests
- Date: Sun, 04 Mar 2007 21:59:33 +0000
On Sun, 2007-03-04 at 16:48 -0500, Edward Duffy wrote:
I've got about 34,000 words (if I remember correctly) and it's
instantaneous for me ... I have an Athlon 4200+ though.
yeah Im thinking of cases were word count is 250,000 - 500,000.
Its fine by me so long as it does not significantly slow down the gui.
(IE make the call async in the GUI)
Some changes that are needed:
1) tracker-client.h is auto generated from the
data/tracker-introspect.xml so pls add your method call there and then
dbus-binding-tool --prefix=client_object --mode=glib-client
2) Add async version of call to tracker.h/.c
3) use the async version in the GUI so we dont block waiting for it
On 3/4/07, jamie <jamiemcc blueyonder co uk> wrote:
On Sun, 2007-03-04 at 15:36 -0500, Edward Duffy wrote:
Here's a patch I put together this morning that will suggest an
alternate search term if the user's search returns nothing. It uses
the Levenshtein distance algorithm to compare a search term with
the list of words indexed by qdbm, and suggests the closest match.
If there's enthusiasm for this, this could easily be extended to
return top 5 or 10 or whatever, and have a widget in libtracker-gtk
that acts like the Google Suggests bar in Firefox.
...and a screenshot for those you want to see it without applying the patch:
(the "galerkin" is a GtkButton, when clicked to search with the suggestion).
its a cool feature
whats the performance like with very large no of words in the index?
] [Thread Prev