class WinewooCore::Services::ElasticSearch::Parsers::WinesParser
Public Class Methods
parse(raw_data)
click to toggle source
# File lib/winewoo_core/services/elastic_search/parsers/wines_parser.rb, line 6 def parse(raw_data) ids = raw_data.map { |raw_entry| raw_entry["_id"] } # TODO UNOFFICIALS # query = WinewooCore::Repositories::Mongo::Queries::WineQuery.new.officials.published Rails.logger.info "WINEWOO IDS #{ids.to_json}" query = WinewooCore::Repositories::Mongo::Queries::WineQuery.new.officials.published query.find(ids) end