lib/client.js
function Client(options) {
  this.options = {
    host: options.host || '127.0.0.1',
    port: options.port || '8983',
    core: options.core || '',
    rootPath: options.rootPath || 'solr',
    protocol: options.protocol || 'http'
  };
  // Optional Authentication
  if (options.user && options.password) {
    this.options.user = options.user;
    this.options.password = options.password;
  }

  // Path Constants List
  this.SEARCH_PATH = 'select';
  this.TERMS_PATH = 'terms';
  this.SPELL_PATH = 'spell';
  this.MLT_PATH = 'mlt';
  this.UPDATE_PATH = 'update';
  this.UPDATE_EXTRACT_PATH = 'update/extract';
  this.PING_PATH = 'admin/ping';
  this.SUGGEST_PATH = 'suggest';
}
function Client(options) {
  this.options = {
    host: options.host || '127.0.0.1',
    port: options.port || '8983',
    core: options.core || '',
    rootPath: options.rootPath || 'solr',
    protocol: options.protocol || 'http'
  };
  // Optional Authentication
  if (options.user && options.password) {
    this.options.user = options.user;
    this.options.password = options.password;
  }

  // Path Constants List
  this.SEARCH_PATH = 'select';
  this.TERMS_PATH = 'terms';
  this.SPELL_PATH = 'spell';
  this.MLT_PATH = 'mlt';
  this.UPDATE_PATH = 'update';
  this.UPDATE_EXTRACT_PATH = 'update/extract';
  this.PING_PATH = 'admin/ping';
  this.SUGGEST_PATH = 'suggest';
}
function Client ( options ) { this . options = { host : options . host || '127.0.0.1' , port : options . port || '8983' , core : options . core || '' , rootPath : options . rootPath || 'solr' , protocol : options . protocol || 'http' } ; // Optional Authentication if ( options . user && options . password ) { this . options . user = options . user ; this . options . password = options . password ; } // Path Constants List this . SEARCH_PATH = 'select' ; this . TERMS_PATH = 'terms' ; this . SPELL_PATH = 'spell' ; this . MLT_PATH = 'mlt' ; this . UPDATE_PATH = 'update' ; this . UPDATE_EXTRACT_PATH = 'update/extract' ; this . PING_PATH = 'admin/ping' ; this . SUGGEST_PATH = 'suggest' ; }
Solr Node Client

@constructor

@param {Object} options
@param {String} [options.host] - host address of Solr server
@param {Number|String} [options.port] - port number of Solr server
@param {String} [options.core] - client core name
@param {String} [options.user] - client user name
@param {String} [options.password] - client password name
@param {String} [options.rootPath] - solr root path
@param {String} [options.protocol] - request protocol ('http'|'https')
Solr Node Client