Fixed #129 -- auto_query now works as expected.

Modified tests since "text" is the main document, which
doesn't make sense to use "startswith".
Fixed #130 -- Made updating an index dependent on should_update.