[google-appengine] Re: SearchableQuery and OffSet

2008-09-26 Thread Mahmoud

Can you do:
query.Search(keyword).filter(name , index)

where index, is the name (or whatever you're searchijng for) of the
last person on the current page?



On Sep 23, 12:12 pm, Venkatesh Rangarajan
[EMAIL PROTECTED] wrote:
 Folks,

 I am trying to implement pagination for Search able model.

 I will eventually have around 1 GB of DB .

    query = search.SearchableQuery('Person')
    query.Search(keyword)
    visas=query.Get(100,1)

 Now Get doesn't take OFFSET as a parameter. Fetch is not implemented for
 SearchablQuery . Any ideas on how I can implement pagination for such a
 scenario.

 Rgds,
 Venkatesh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: SearchableQuery and OffSet

2008-09-26 Thread Venkatesh Rangarajan
Thanks Mahmoud. My bad..i was able to pass offset as a parameter

See the pagination in action here :
http://payrate.appspot.com/?keyword=Google%20Engineerpage=100



On Fri, Sep 26, 2008 at 12:11 PM, Mahmoud [EMAIL PROTECTED] wrote:


 Can you do:
 query.Search(keyword).filter(name , index)

 where index, is the name (or whatever you're searchijng for) of the
 last person on the current page?



 On Sep 23, 12:12 pm, Venkatesh Rangarajan
 [EMAIL PROTECTED] wrote:
  Folks,
 
  I am trying to implement pagination for Search able model.
 
  I will eventually have around 1 GB of DB .
 
 query = search.SearchableQuery('Person')
 query.Search(keyword)
 visas=query.Get(100,1)
 
  Now Get doesn't take OFFSET as a parameter. Fetch is not implemented for
  SearchablQuery . Any ideas on how I can implement pagination for such a
  scenario.
 
  Rgds,
  Venkatesh
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---