This pull refactors autocomplete.py to reduce complexity and adds a new class file: AutoCompleteBody.py. The new class file handles the user input and returns an apropriate body field message for the elasticsearch API. this also enables further extension should there be different fields requiring autocomplete.
This pull refactors autocomplete.py to reduce complexity and adds a new class file: AutoCompleteBody.py. The new class file handles the user input and returns an apropriate body field message for the elasticsearch API. this also enables further extension should there be different fields requiring autocomplete.