Hmmm, I may have made progress by passing the arguments at the "docker run"
stage:
But when the curl command is issued per to add the request handler, I
receive this reply:
timc@Debian$ curl -X POST -H 'Content-type:application/json' -d '{
"add-requesthandler": {
"name": "/update/extract",
"class": "solr.extraction.ExtractingRequestHandler",
"defaults":{ "lowernames": "true", "captureAttr":"true"}
}
}' 'http://localhost:8983/solr/gettingstarted/config'
{
"responseHeader":{
"status":400,
"QTime":24},
"errorMessages":["error processing commands, errors:
[{add-requesthandler={name=/update/extract,
class=solr.extraction.ExtractingRequestHandler, defaults={lowernames=true,
captureAttr=true}}, errorMessages=[ Error loading class
'solr.extraction.ExtractingRequestHandler']}], \n"],
"WARNING":"This response format is experimental. It is likely to change
in the future.",
"error":{
"metadata":[
"error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject",
"root-error-class","org.apache.solr.api.ApiBag$ExceptionWithErrObject"],
"details":[{
"add-requesthandler":{
"name":"/update/extract",
"class":"solr.extraction.ExtractingRequestHandler",
"defaults":{
"lowernames":"true",
"captureAttr":"true"}},
"errorMessages":[" Error loading class
'solr.extraction.ExtractingRequestHandler'"]}],
"msg":"error processing commands, errors:
[{add-requesthandler={name=/update/extract,
class=solr.extraction.ExtractingRequestHandler, defaults={lowernames=true,
captureAttr=true}}, errorMessages=[ Error loading class
'solr.extraction.ExtractingRequestHandler']}], ",
"code":400}}
Any ideas, anyone?
Tim
On Sat, 18 Mar 2023 at 13:09, Tim Clarke <[email protected]> wrote:
> Am new to solr and docker, but per
> https://solr.apache.org/guide/solr/latest/indexing-guide/indexing-with-tika.html
> I need to pass arguments at some point to solr:
>
> bin/solr start -e schemaless -Dsolr.modules=extraction
>
> do I try to do that at "docker run...." or "docker start...." or once the
> container is running (I'm not even sure if that's right verb >.< )
>
> Tim
>