lib/solrj_wrapper.rb in solrj_wrapper-0.0.2 vs lib/solrj_wrapper.rb in solrj_wrapper-1.0.0
- old
+ new
@@ -20,12 +20,11 @@
raise "SolrjWrapper only runs under jruby"
end
@logger = Logger.new(log_file)
@logger.level = log_level
load_solrj(solrj_jar_dir)
- @query_server = org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.new(solr_url)
- @streaming_update_server = org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer.new(solr_url, queue_size, num_threads)
- useJavabin!
+ @query_server = org.apache.solr.client.solrj.impl.HttpSolrServer.new(solr_url)
+ @streaming_update_server = @query_server
end
# send the query to Solr and get the SolrDocumentList from the response
# @param org.apache.solr.client.solrj.SolrQuery object populated with query information to send to Solr
# @return Java::OrgApacheSolrCommon::SolrDocumentList per the query. The list size will be the number of rows in the Solr response
\ No newline at end of file