[Sugar-devel] Searching for datastore entries by title

Tomeu Vizoso tomeu at sugarlabs.org
Wed Sep 16 08:40:14 EDT 2009


On Wed, Sep 16, 2009 at 14:22, Bert Freudenberg <bert at freudenbergs.de> wrote:
> On 16.09.2009, at 14:11, Tomeu Vizoso wrote:
>
>> Right now we only index what the journal needs, see the _PREFIX_
>> constants below:
>>
>>
>> http://git.sugarlabs.org/projects/sugar-datastore/repos/mainline/blobs/master/src/carquinyol/indexstore.py#line32
>
>
> That's good info. Can you say in which version this was introduced?

That's 0.86, in 0.84 we had this:

http://git.sugarlabs.org/projects/sugar-datastore/repos/mainline/blobs/sucrose-0.84/src/carquinyol/indexstore.py#line30

> Also, this specifies the supported sort options:
>
> http://git.sugarlabs.org/projects/sugar-datastore/repos/mainline/blobs/master/src/carquinyol/indexstore.py#line266

Yes, only in 0.86.

> Will update docs ...

Thanks a lot, I'm still unsure of what kind of find() interface would
interest activities most nor how it would interface with Rainbow for
protecting privacy.

What I'm thinking lately is for the Journal to bypass the DS for
queries and open directly the xapian index in read-only mode instead
of using D-Bus, in order to reduce latency.

Regards,

Tomeu

-- 
«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David
Farning


More information about the Sugar-devel mailing list