Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

umamaheswari's Profile

GitHub User: umamahe

Comments by umamaheswari

Avatar

I have installed apache-tomcat/solr server in centos , I can able to see the solr page in this link ,

http://localhost:8080/solr/

reindexing the models alos done all the log pointing to the catalina log file

how to connect the solr server to rails application

I have included sunspot.yml code here
sunspot.yml
development:
solr:
hostname: localhost
port: 8982
path: '/solr/'
log_level: WARNING
solr_home: /opt/solr
auto_commit_after_request: false
test:
solr:
hostname: localhost
port: 8981
log_level: OFF
production:
solr:
hostname: localhost
port: 8080
path: '/solr/'
log_level: WARNING
pid_dir: '/var/run'
auto_commit_after_request: false

Please help me to get resolved

Thanks in advance..

Avatar

I have installed apache-tomcat/solr server in centos , I can able to see the solr page in this link ,

http://localhost:8080/solr/

reindexing the models alos done all the log pointing to the catalina log file

how to connect the solr server to rails application

I have included sunspot.yml code here
sunspot.yml
development:
solr:
hostname: localhost
port: 8982
path: '/solr/'
log_level: WARNING
#solr_home: /opt/solr
auto_commit_after_request: false
test:
solr:
hostname: localhost
port: 8981
log_level: OFF
production:
solr:
hostname: localhost
port: 8080
path: '/solr/'
log_level: WARNING
pid_dir: '/var/run'
auto_commit_after_request: false

Please help me to get resolved

Thanks in advance..

~

Avatar

how to use this functionality to import data for model associations

This is my case

class SampleRequest < ActiveRecord::Base
has_one :sample_request_text_excerpt
accepts_nested_attributes_for :sample_request_text_excerpt
end
class SampleRequestTextExcerpt < ActiveRecord::Base
belongs_to :sample_request
end

In the sample_request model, asset type field would be text and image , for text type different excel sheet and for image type different excel sheet , only certain field would be extra in the sample_request_text_excerpt model.

For single model no issues , while try to use for associations

this line showing error
sample_request.attributes = row.to_hash

while uploading the text spreadsheet error displayed

Avatar

What is the way to use Sunspot/Solr with mutiple fields ?
It works fine with a simple form, as explained in the screencast.