You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.
Sup. I deal with the problem for three days.
In my project where I use search in model Record I've implemented two buttons: "Delete index" and "Refresh index".
First button is redirecting page to controller delete_index where I execute Record.tire.index.delete.
Second button is redirecting page to controller refresh_index where the index is refreshing via Sidekiq worker, where I execute Record.import.
Main problem:
When I press "Delete index" - it works correct;
When I press "Refresh index" - the index is imports correctly but order by date is fully broken.
I've attached some screenshots with the problem.
Screenshot without problem: order is working:
Screenshot with problem: order is broken after I pressed "Delete index" and "Refresh index":
I can fix second case only if I do actions in this sequence:
One piece of advice with any of the gems: you need to make sure that the index is created with the correct mapping, the new gems have the force option for that.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Sup. I deal with the problem for three days.
In my project where I use search in model
Record
I've implemented two buttons: "Delete index" and "Refresh index".First button is redirecting page to controller
delete_index
where I executeRecord.tire.index.delete
.Second button is redirecting page to controller
refresh_index
where the index is refreshing via Sidekiq worker, where I executeRecord.import
.Main problem:
When I press "Delete index" - it works correct;
When I press "Refresh index" - the index is imports correctly but order by date is fully broken.
I've attached some screenshots with the problem.
Screenshot without problem: order is working:
Screenshot with problem: order is broken after I pressed "Delete index" and "Refresh index":
I can fix second case only if I do actions in this sequence:
Record.tire.index.delete
rails s
Record.import
Some piece of code:
records_controller.rb:
records_import.rb:
My mapping in
record.rb
model:My search query:
Maybe I'm doing something wrong, but all suggestions welcome. Thanks in advance and sorry for my bad English.
The text was updated successfully, but these errors were encountered: