Skip to main content

Posts

Showing posts from May, 2015

How to add ignore folder and file in svn.?

Goto folder on file location which one you want to ingnore i suppose you have access of svn repo means you have set user name and pass. in svn then example show that upload folder in ignore in svn commit see there is .(dot) also. svn propset svn:ignore upload/ .

Importing/Indexing database (MySQL or SQL Server) in Solr using Data Import Handler

Install Solr download and install Solr from  http://lucene.apache.org/solr/ . you can access Solr admin from your browser: http://localhost:8983/solr/ use the port number used in installation. MySQL connector Download JDBC driver for MySQL from  http://dev.mysql.com/downloads/connector/j/ . Copy file from the downloaded archive 'mysql-connector-java-*.jar' to the folder 'contrib/dataimporthandler/lib' in the folder where Solr was installed. Create 'lib' folder if needed. MS SQL Server connector Download Microsoft JDBC Driver 4.0 for SQL Server from:  http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774 copy file 'sqljdbc4.jar' to 'contrib/dataimporthandler/lib' Setup a new collection create a new folder for a new collection - 'myproducts'. The collection will be located in '/solr/myproducts' folder. Create folders conf and data in the collection folder: /solr/myproducts/conf /