How get Top Search Terms by matching the query text!

I have been working on an autocomplete function. I can make it work if I

am doing an autocomplete on the document itself (display titles that

match criteria as person types). However, what I want to do is suggest

different search terms, not the actual documents. which comes from top search term matching on magento admin.

For example, if the person types "data" they would see a drop down that

said:

data

data sciences

database

data visualization

data sciences community

datastorage

1 Like