Part of refactoring for elasticsearch autocomplete. #6403

The `auto_complete` method is overriden here to use elastic search
to return results.
do pass limit here too