Saturday, May 31, 2014

Configure Data-Import Handler (DIH) in SOLR

I followed the steps mentioned @: http://wiki.apache.org/solr/DataImportHandler

Data-config.xml
<dataConfig>    
    <dataSource type="JdbcDataSource" name="ds-books" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost/test" user="root" password="password"/>    
        <document name="books">        
            <entity name="books" pk="id"   
query="select * from books"   
deltaImportQuery="SELECT * FROM books WHERE id = '${dih.delta.id}'" 
deltaQuery="SELECT  id FROM books WHERE last_modified &gt;  '${dih.last_index_time}'" >
                <field column="id" name="id"  indexed="true" stored="true"/>            
                <field column="NAME" name="name" />            
                <field column="PRICE" name="price" />        
                <field column="last_modified" name="last_modified" />        
            </entity>    
        </document>
</dataConfig>

Command that I am using to execute it is:
http://localhost:8983/solr/dataimport?command=delta-import

dataimport.properties file:
Fri May 10 17:13:18 IST 2013
last_index_time=2013-05-10 17\:13\:18
books.last_index_time=2013-05-10 17\:13\:18
dih.last_index_time=2013-05-10 17\:11\:42

Saturday, May 24, 2014

Nutch-SOLR Formed Based Authentication


Hi All,

I followed both the below links and I am able to configure Form Based Authentication in Nutch-SOLR setup.

http://lifelongprogrammer.blogspot.com/2014/02/part1-using-apache-http-client-to-do-http-post-form-authentication.html

and

https://issues.apache.org/jira/browse/NUTCH-827

These two links have complete and same code. 
If you follow the each steps correctly then you will be able to achieve Form Based Authentication in Nutch.

Let me know if you need any help in this. I will be Happy To Help You!!!

Regards,
Jayesh Bhoyar

Password Protected Solr Admin Page

As we all know Solr Admin Page is not password protected and anyone can get into Solr Admin Page. However this article will ...