Make Asynchronous Full Text Search Recoverable #196

Closed
codeconsole opened this Issue Apr 18, 2013 · 0 comments

Comments

Projects
None yet
2 participants
@codeconsole
Contributor

codeconsole commented Apr 18, 2013

Search is really unreliable as is.

https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/search/Index#searchAsync(com.google.appengine.api.search.Query)

Make asynchronous search retry upon failure

Currently search is done as follows
Future<Results> results = index.searchAsync(query)

Make the following Extension

int retires = 3
Future<Results<ScoredDocument>> results = index.searchAsync(query, retries)

such that if results.get() causes an exception, it will seamlessly attempt the query 3 more times before throwing the exception.

Since asynchronous search returns a Future object. A wrapper will need to be returned because the search should not be ran until .get() is called

@ghost ghost assigned musketyr Apr 18, 2013

@musketyr musketyr closed this in 7ac5eb8 Apr 18, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment