Commit aa51d253 by Xuan Trung Le

fix bugs

parent 1692d521
......@@ -24,6 +24,7 @@ gem "settingslogic"
gem 'sidekiq'
gem 'rsolr'
gem 'rubyzip'
gem 'rsolr-ext'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
......
......@@ -137,6 +137,8 @@ GEM
rsolr (2.0.2)
builder (>= 2.1.2)
faraday
rsolr-ext (1.0.3)
rsolr (>= 1.0.2)
rubyzip (1.2.1)
sass (3.5.3)
sass-listen (~> 4.0.0)
......@@ -195,6 +197,7 @@ DEPENDENCIES
puma (~> 3.7)
rails (~> 5.1.4)
rsolr
rsolr-ext
rubyzip
sass-rails (~> 5.0)
settingslogic
......
......@@ -69,6 +69,6 @@ class Job < ApplicationRecord
# Rsolr
def self.get_data_for_solr
Job.select(:id, :name, :salary, :description, :company_id, )
Job.select(:id, :name, :salary, :description, :company_id )
end
end
......@@ -4,7 +4,10 @@ defaults: &defaults
industry_per_page: 9
city_per_page: 9
job_per_history_page: 20
rsolr:
url: 'http://localhost:8983/solr/my_solr_collection'
read_timeout: 120
open_timeout: 120
development:
<<: *defaults
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment