[Sugar-devel] Searching for datastore entries by title
Sascha Silbe
sascha-ml-ui-sugar-devel at silbe.org
Wed Sep 16 14:37:47 EDT 2009
On Wed, Sep 16, 2009 at 01:51:30AM +0200, Bert Freudenberg wrote:
> I want to find a datastore entry with a specific title and mime_type.
> But it returns *all* entries with that mimetype instead.
As you probably know by now the 'title' property isn't indexed, so it
will get ignored in a query.
> 1253058031.600886 WARNING root: Unknown term:
> dbus.String(u'title')=dbus.String(u'The Hole')
This one tells you that the 'title' property is unknown, i.e. not
indexed as a separate term. You can still do a full text search on its
content, though.
> 1253058031.601042 WARNING root: Unknown term(s):
> {dbus.String(u'mime_type'): dbus.String(u'application/x-squeak-
> project'), dbus.String(u'title'): dbus.String(u'The Hole')}
This is an oversight from my refactoring, you can safely ignore messages
that start with 'Unknown term(s)' (with '(s)' at the end). Fix available
(#1363 [1]), but not committed yet.
[1] http://bugs.sugarlabs.org/ticket/1363
CU Sascha
--
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: Digital signature
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20090916/30de4ddd/attachment.pgp
More information about the Sugar-devel
mailing list