mirror of https://github.com/apache/lucene.git
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:
parent
9ecad14adf
commit
ac49e15773
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue