janhoy opened a new pull request #557:
URL: https://github.com/apache/solr/pull/557


   https://issues.apache.org/jira/browse/SOLR-15914
   
   I have structured this in three commits
   1. 8199a5e3c60cb1e35bfb16652362c32d820e0ac7 Moving existing `shardLib` init 
from `CoreContainer` to `NodeConfig` as requested by @dsmiley in #525 
   2. 5adbb7572c25647be6a294d7db593109d0981d01 Logic for parsing string of 
comma separated module names either from solr.xml, system property or 
environment variable, and add libs for those modules to shared classloader
   3. 927b349fc990dc6ac7e197827c0096a6ed50c632 Documentation
   
   There are unit and integraion tests, but you can also test manually. While 
on the feature branch:
   
   ```bash
   ./gradlew dev
    cd solr/packaging/build/dev/
   SOLR_MODULES=langid,extraction bin/solr -c
   grep "Added module" server/logs/solr.log 
   # You will see two log lines:
   # [...] Added module langid. libPath=[...]contrib/langid/lib with 5 libs
   # [...] Added module extraction. libPath=[...]contrib/extraction/lib with 43 
libs
   bin/solr create -c test 
   curl -X POST -H 'Content-type:application/json'  -d '{
     "add-requesthandler": {
       "name": "/extract",
       "class": "org.apache.solr.handler.extraction.ExtractingRequestHandler"
     }
   }' http://localhost:8983/solr/test/config
   curl "http://localhost:8983/solr/test/extract?extractOnly=true&literal.id=1"; 
--data-binary @example/exampledocs/sample.html -H 'Content-type:text/html'
   # You see the extracted content
   bin/solr stop
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to