Solr adding document cycle & wait on response issue

Posted by user1585896 on Stack Overflow See other posts from Stack Overflow or by user1585896
Published on 2014-06-10T22:00:59Z Indexed on 2014/06/13 15:25 UTC
Read the original article Hit count: 184

Filed under:
|
|

I am trying to send http post request to Solr for adding 50000 documents (all individual request one after another in while loop). I am using DefaultHttpClient in java to connect to Solr and when I use execute method on my HttpPost Solr takes 3 to 4 ms to response. I have commit=false, autoCommit=false, autoSoftCommit=false. My question is why it takes that much time to response and why cycle it follows to add new document. Basically I want to send add request but do not want to commit to see how many request can Solr handle without doing any kind of commits(without having to do any disk access). My guess is with above parameter tuned off I should be hitting Solr about 10000 times every second, but my result is 300 times a second. I am generating random data to add in my code.

© Stack Overflow or respective owner

Related posts about java

Related posts about solr