Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Asynchronous Full Text Search Recoverable #196

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

Make Asynchronous Full Text Search Recoverable #196

codeconsole opened this issue Apr 18, 2013 · 0 comments
Assignees

Comments

@codeconsole
Copy link
Contributor

@codeconsole 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.