I have opened a jira request for the same - *SOLR-916
<https://issues.apache.org/jira/browse/SOLR-916> *under documentation
category. I imagine that the javadoc is out of date compared to the
code. But I am waiting for confirmation before concluding the same.
*
*Kay Kay wrote:
Re-addressing to the dev mailing list as it might be more relevant
here, than the users group.
Kay Kay wrote:
Hi -
In CoreContainer.java :: register the documentation says it would
return a previous core having the same name if it existed *and
returnPrev = true*.
* @return a previous core having the same name if it existed and
returnPrev==true
*/
public SolrCore register(String name, SolrCore core, boolean
returnPrev) ..
But as per the code towards the end - the previous core is returned
anyway, irrespective of the value of returnPrev. The difference,
though, seems to be that when returnPrev is false, the previous core
(of the same name, if exists) is closed.
Which one of them is correct . If the code were correct , would the
variable be better renamed as closePrevious , as opposed to
returnPrevious.