Part of refactoring for elasticsearch autocomplete. #6403

The `auto_complete` method is overriden here to use elastic search
to return results.
Merge pull request #3 from PritishC/feature/task-6403

Part of refactoring for elasticsearch autocomplete. #6403