[google-appengine] Re: 3 questions (about paging again)

2008-12-10 Thread Marzia Niccolai
Hi, There is no difference. In addition to the index for paging, you just have a tag property. So # or SearchableModel class MyProperty(db.Model): # For paging index = db.IntegerProperty() my_tags = db.StringListProperty() For the first page, you do a fetch like this: results = MyPropert

[google-appengine] Re: 3 questions (about paging again)

2008-12-09 Thread kang
I've watched the video...my question is how to make paging index for tag and term for search? On Wed, Dec 10, 2008 at 1:25 AM, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > Hi, > > By index I mean whatever index you are using for pagination, an integer > property as described in the building scala

[google-appengine] Re: 3 questions (about paging again)

2008-12-09 Thread Marzia Niccolai
Hi, By index I mean whatever index you are using for pagination, an integer property as described in the building scalable web applications talk: http://sites.google.com/site/io/building-scalable-web-applications-with-google-app-engine This should work to page searchable entities as well. Simply

[google-appengine] Re: 3 questions (about paging again)

2008-12-08 Thread kang
I haven't got it...what is the 'index' for in your code? For different tags, they have different index for an object. 3rd question is about search the model. On Tue, Dec 9, 2008 at 4:03 AM, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > Hi, > > If you store the tags in a list, you should be able fi

[google-appengine] Re: 3 questions (about paging again)

2008-12-08 Thread Marzia Niccolai
Hi, If you store the tags in a list, you should be able filter on that list using a simple equals filter, something like: MyProperty.all().filter('my tags =', tag).filter('index <=', starting_index).fetch(10) Assuming you don't have a large number of tags (a couple per entry), this shouldn't res