Part of refactoring for elasticsearch autocomplete. #6403

The `auto_complete` method is overriden here to use elastic search
to return results.
add `limit=10`