Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vendor.all do |document|
- attributes = document["raw_attributes"] || document
- attributes.merge!(searchable: true)
- Xo::Search::Message.store_in collection: "my-collection"
- payload = Xo::Search::Message.new(attributes)
- Xo::Search.index(payload)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement