Textarea autocomplete and instantsearch?

Is there a way to have the autocomplete functionality shown here: https://community.algolia.com/demo-textarea-autocomplete/autocomplete-with-pictures.html and then run a search on the entire contents of that textarea?

Hi @covingtondoan

Is what you’re trying to achieve something like:

  1. Type @c
  2. Select Catherine Missal
  3. Run a search on an index with Catherine Missal as a query and display the results below the searchbox

Yup!

So if you don’t have the “@”, it won’t try to autocomplete the name and just search normally.

One idea would be to listen to the change inside the textarea and launch a new search with the query being the content.

What technical stack are you using for your project right now? Do you already use an algolia library?