lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lucene4varma <>
Subject Optimise Indexing time using lucene..
Date Tue, 08 Apr 2008 22:23:07 GMT

Hi all,

I am new to lucene and am using it for text search in my web application,
and for that i need to index records in database.
We are using jdbc directory to store the indexes. Now the problem is when is
start the process of indexing the records for the first time it is taking
huge amount of time. Following is the code for indexing. 

rs = st.executequery(); // returns 2 million records
while( {
    create java object .............;
    index java record into JDBC directory...;

The above process takes me huge amount of time for 2 million records.
Approximately it is taking 3-4 business days to run the process. 
Can any one please suggest me and approach by which i could cut down this

Thanks in advance,
View this message in context:
Sent from the Lucene - Java Developer mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message