Posts Tagged ‘solr’
Saturday, May 16th, 2009
When indexing large databases in Solr, if you encouter java.lang.OutOfMemoryError, this could be caused due to a bug in the mysql jdbc driver. To resolve this, add include batchSize=”-1″ parameter in your dataSource entry of you data-import.xml file. The entry should look something like :
<dataSource type="JdbcDataSource" name="ds-2"
driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:8889/mysqldatabase" batchSize="-1"
user="root" password="root"/>
Reference:
http://wiki.apache.org/solr/DataImportHandlerFaq#head-346bc6622c328a146d1691bc4ed6deb51086d9b3
Tags: solr
Posted in Categorized, Development | No Comments »
Thursday, May 14th, 2009
Solr is a standalone webservice application that can be installed on any servlet container like tomcat, jetty etc. It uses the popular Lucene java library to provide enterprise level search results from databases, filesystem, web services etc. Solr runs as a web service, so in effect it provides a cross platform search engine. The results can be accessed from php, java, RoR or .NET by invoking its web service. The only requirement on your server is that it should allow you to run java application or have deploy solr as a webapp in an existing servlet container such as tomcat or jetty.
This article shows how to get Solr index and provide search results for a simple MySQL table. The search results will be provided in XML, so you can get your web application to read the results, parse it and display it any form desired. (more…)
Tags: lucene, php, solr
Posted in Categorized, Development | 22 Comments »