In general, it is better not to change anything in the framework directory, even configuration files, such as property files, should be overridden by adding them to the runtime / classes directory or to the / classes directory.
In this case, to have the jar from the framework / lib directory, you must add it to the framework / build.gradle file and then create the gradle construct so that the jar file is added to the Moqui WAR file.
The best approach is to add it to the runtime / lib directory, or even better, when using the jar file in your component code, add it to the / classes directory (in the "Moqui Applications appendix" more information about this).
More generally, why use Solr? ElasticSearch is part of Moqui and is used (and improved) through various infrastructure features.
source share