If I search into multiple indexes I will not be able to sort all the merged results and paginate them correctly, is that right?
Thx On Monday, March 3, 2014 at 7:44:27 PM UTC+1, Vinny P wrote: > > On Mon, Mar 3, 2014 at 3:40 AM, <[email protected] <javascript:>> > wrote: > >> Since GAE 1.9 release the search API indexes are limited to 10 GB data >> only. so the problem is if we have to save data more than this limit then >> we will have to spread it in multiple indexes and we will have to do >> queries in multiple indexes. So how can we perform search across multiple >> indexes >> > > > Assuming you already have multiple indexes set and documents inserted, you > can retrieve all available indexes by calling getIndexes (see the code > example here: > https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/search/SearchService > > ). After you have a reference to each index, you can call > Index.search(Query) with your query. If you want to search multiple indexes > simultaneously, you can call searchAsync() on each and block until all the > responses come in. > > > ----------------- > -Vinny P > Technology & Media Advisor > Chicago, IL > > App Engine Code Samples: http://www.learntogoogleit.com > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/f6bd38dc-d55b-4654-8922-d81140419833%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
