NOJIRA Modified the wait_for_indexer method to stop waiting sooner if it knows the index has been updated.
NOJIRA Modified the wait_for_indexer method to stop waiting sooner if it knows the index has been updated.

This required adding a test document for each wait call and then searching to check if it's there.  Previously this method would just wait for a fixed 10 seconds, which added about 5 minutes to the time it takes to run the full test suite.

stuartf/nakamura-ruby