epugh commented on code in PR #1681: URL: https://github.com/apache/solr/pull/1681#discussion_r1411167045
########## solr/modules/ltr/example/README.md: ########## @@ -33,7 +33,15 @@ Please refer to the Solr Reference Guide's section on [Learning To Rank](https:/ `ln -s /Users/YourNameHere/Downloads/liblinear-2.1 ./modules/ltr/example/liblinear` -3. Extract features, train a reranking model, and deploy it to Solr. +3. Prepare your Python3 environment to run the training script. + + `./gradlew solr:modules:ltr:syncPythonClientSourceCode` + + `pushd solrclient && python3 setup.py install --user && popd` Review Comment: pushd and popd are new to me! at first I thought it was somethign I needed to understand... ########## solr/modules/ltr/example/train_and_upload_demo_model.py: ########## @@ -8,8 +8,15 @@ from optparse import OptionParser -solrQueryUrl = "" +import solr +from solr.api import querying_api +def setupSolrClient(host, port): + '''Configures the Solr client with the specified Solr host/port''' + solr_client_config = solr.Configuration( + host = "http://" + host + ":" + str(port) + "/api" Review Comment: i guess at some point the /api will get dropped right? -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
