Changes to the search logic.
Separate the autocomplete logic from the Author document.