(no subject)

hi,

i’m using solar server in my app, in my model

class Resume < ActiveRecord::Base
require ‘rexml/document’
include REXML

acts_as_solr :fields => [:firstname, :lastname]
end

but while reindexing ,having the following error

Requiring REXML
Clearing index for Resume…
rake aborted!
Couldn’t connect to the Solr server at http://127.0.0.1:8982/solr.
undefined
method `closed?’ for nil:NilClass,

can anyone help me

On Sun, Feb 6, 2011 at 9:32 PM, loganathan sellappa
[email protected] wrote:

Requiring REXML
Clearing index for Resume…
rake aborted!
Couldn’t connect to the Solr server at http://127.0.0.1:8982/solr. undefined
method `closed?’ for nil:NilClass,

You need to run this with --trace and look at the stack trace; that
“couldn’t connect” error message is very misleading :slight_smile:


Hassan S. ------------------------ [email protected]
twitter: @hassan

Can you point a browser to http://127.0.0.1:8982/solr ? Normally solr
is set up at 8983, do you have a typo there? Also, if you are just
starting with solr, I’d recommend the rsolr gem instead. It is
actively being maintained.

On Mon, Feb 7, 2011 at 3:52 PM, Hassan S.

Thanks, i usen sunspot instead of solar…

Thanks, i used sunspot instead of solar…