From 15426834faaa1170b9b5996c2f321adf216646b3 Mon Sep 17 00:00:00 2001 From: Diego Date: Wed, 28 Sep 2016 18:57:01 +0100 Subject: [PATCH] Remove LTR component (#75) * remove ltr-component * update README * fix example * update example files * reuse MenagedModelStore * replace type with class in LibSvmFormatter * debugging * change cloud test first query to return docs 1..4 * refactor cloud tests * randomizing shards and replicas * randomize number of shards and replicas in cloud test --- solr/contrib/ltr/README.md | 17 +-- solr/contrib/ltr/example/solrconfig.xml | 8 +- .../ltr/example/techproducts-features.json | 8 +- .../ltr/example/techproducts-model.json | 2 +- solr/contrib/ltr/scripts/libSvmFormatter.py | 2 +- .../apache/solr/ltr/ranking/LTRComponent.java | 73 ------------ .../solr/ltr/ranking/LTRQParserPlugin.java | 41 ++++++- .../solr/collection1/conf/solrconfig-ltr.xml | 7 -- .../solr/ltr/ranking/TestSolrCloud.java | 112 ++++++++++-------- .../solr/ltr/rest/TestModelManager.java | 6 +- 10 files changed, 109 insertions(+), 167 deletions(-) delete mode 100644 solr/contrib/ltr/src/java/org/apache/solr/ltr/ranking/LTRComponent.java diff --git a/solr/contrib/ltr/README.md b/solr/contrib/ltr/README.md index b432aa7a96f0..6ac732193634 100644 --- a/solr/contrib/ltr/README.md +++ b/solr/contrib/ltr/README.md @@ -98,23 +98,8 @@ BONUS: Train an actual machine learning model transformer enclosed between brackets (in this case [features]). In order to get the feature vector you will have to specify that you want the field (e.g., fl="*,[features]) --> - - - - - - - explicit - json - true - id - - - - ltrComponent - - + ... diff --git a/solr/contrib/ltr/example/solrconfig.xml b/solr/contrib/ltr/example/solrconfig.xml index a611e196aa00..618bf5f266d2 100644 --- a/solr/contrib/ltr/example/solrconfig.xml +++ b/solr/contrib/ltr/example/solrconfig.xml @@ -869,8 +869,6 @@ - - @@ -879,11 +877,7 @@ true text - - - ltrComponent - - +