lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Moen (JIRA)" <>
Subject [jira] [Created] (SOLR-3498) ContentStreamUpdateRequest doesn't seem to respect setCommitWithin()
Date Thu, 31 May 2012 10:05:22 GMT
Christian Moen created SOLR-3498:

             Summary: ContentStreamUpdateRequest doesn't seem to respect setCommitWithin()
                 Key: SOLR-3498
             Project: Solr
          Issue Type: Bug
          Components: update
    Affects Versions: 3.6
            Reporter: Christian Moen

I'm using the below code to post some office format files to Solr using SolrJ. It seems like
{{setCommitWithin()}} is ignored in my {{ContentStreamUpdateRequest}} request, and that I
need to use {{setParam(UpdateParams.COMMIT_WITHIN, "...")}} instead to get the desired effect.

SolrServer solrServer = new HttpSolrServer("http://localhost:8983/solr");
ContentStreamUpdateRequest updateRequest = new ContentStreamUpdateRequest("/update/extract");
updateRequest.setParam("", file.getName());
updateRequest.setCommitWithin(10000); // Does not work
//updateRequest.setParam(UpdateParams.COMMIT_WITHIN, "10000"); // Works

If I use the below

//updateRequest.setCommitWithin(10000); // Does not work
updateRequest.setParam(UpdateParams.COMMIT_WITHIN, "10000"); // Works

I get the desired result and a commit is being done.

I'm doing this on 3.x, but I believe this issue could apply to 4.x as well (by quickly glancing
over the code with tired eyes), but I haven't verified this, yet.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


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

View raw message