Answer the question
In order to leave comments, you need to log in
RoR 4 and Elasticsearch. How to connect multi-modeling correctly?
Didn't find a solution.
To search for content in one model, I do the following:
In the model, I connect the concern
include Searchable according to the example elasticsearch-model#feature-extraction-pattern
+ Page.import
In the controller
@pages = Kaminari.paginate_array(Page.search(params[:query]).records).page(params[:page]).per(9)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question