New Discussion

Notifications

You’re not receiving notifications from this thread.

Autocomplete search across multiple models with results from each model

1
Rails

I'm building a simple wiki app and would like to introduce autocomplete search using Searchkick or pg_search. In the search box I'd like to be able to do a search across both an Article and Category model searching Article for title and body and Category by the name column.

I think I can do this with pg_search using multisearch, but I'm curious as to how to display this information using JSON in the search box and how it works similar to Gorails.

Looking foward to an episode on this :)

Was there ever a post on this?

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.