Re: [Sugar-devel] get list of titles in the datastore?

2010-12-14 Thread Aleksey Lim
On Mon, Dec 13, 2010 at 05:29:04PM -0500, Erik Blankinship wrote: As a note.. the function find with a { query:my_search_string } tokenizes both my_search_string and the datastore entries on white space. The function returns true on any combination. Journal Entries Goo Bar Goo Bee

Re: [Sugar-devel] get list of titles in the datastore?

2010-12-14 Thread Aleksey Lim
On Tue, Dec 14, 2010 at 11:04:33AM +, Aleksey Lim wrote: On Mon, Dec 13, 2010 at 05:29:04PM -0500, Erik Blankinship wrote: As a note.. the function find with a { query:my_search_string } tokenizes both my_search_string and the datastore entries on white space. The function returns

Re: [Sugar-devel] get list of titles in the datastore?

2010-12-14 Thread Erik Blankinship
This is a little unexpected. What is the expected use case for this implementation? 'query' is intended for arbitrary text search I mean you can use search operators http://xapian.org/docs/queryparser.html Got it, thank you. Those operators are very helpful to refine

Re: [Sugar-devel] get list of titles in the datastore?

2010-12-04 Thread Bert Freudenberg
This limitation was already documented here: http://wiki.sugarlabs.org/go/Development_Team/Low-level_Activity_API#Querying To my knowledge that page is reasonably up-to-date. Please correct it if I'm wrong ;) - Bert - On 04.12.2010, at 04:03, Erik Blankinship wrote: from #sugar... alsroot

[Sugar-devel] get list of titles in the datastore?

2010-12-03 Thread Erik Blankinship
I tried using this bit of code to get a list of items in the journal by their title, but it is returning everything in the journal! http://bit.ly/fjgpJr ds_objects, num_objects = datastore.find({'title':'file1.txt'}) Any suggestions? ___ Sugar-devel

Re: [Sugar-devel] get list of titles in the datastore?

2010-12-03 Thread Erik Blankinship
from #sugar... *alsroot *: try datastore.find({'query':'coolthings'}) *alsroot*: for now, only uid, activity, activity_id, mime_type and keep search term are supported On Fri, Dec 3, 2010 at 4:49 PM, Erik Blankinship er...@mediamods.comwrote: I tried using this bit of code to get a list of