more pre solr1.2 XmlUpdateHandler response format cleanup. In the future it would be nice if you get the same response if you do ?commit=true or <commit/>

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@534669 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2007-05-03 00:59:09 +00:00
parent 9ecad14adf
commit ac49e15773
1 changed files with 8 additions and 6 deletions

View File

@ -63,12 +63,14 @@ public class RequestHandlerUtils
cmd.waitFlush = params.getBool( UpdateParams.WAIT_FLUSH, cmd.waitFlush );
cmd.waitSearcher = params.getBool( UpdateParams.WAIT_SEARCHER, cmd.waitSearcher );
req.getCore().getUpdateHandler().commit( cmd );
if( optimize ) {
rsp.add( "optimize", true );
}
else {
rsp.add( "commit", true );
}
// Lets wait till after solr1.2 to define consistent output format
//if( optimize ) {
// rsp.add( "optimize", true );
//}
//else {
// rsp.add( "commit", true );
//}
return true;
}
return false;