Building features in solr

2018-06-03 Thread Roee T
Hi all,

I am trying to compute feature values for some features.
i need some examples on how to form the following features in the feature
file and if needed in the URL:

1. number of overlapping terms between the query and another field (the
document).
2. query likelihood probability.
3. maximum number of terms in order. 

any help would be appreciated 

thank you



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Model type does not exist MultipleAdditiveTreesModel

2018-05-31 Thread Roee T
Hi all,
I'm trying to upload the most simple model to solr 7.3.1 and i get an error:

the model:

{
   "class" : "org.apache.solr.ltr.model.MultipleAdditiveTreesModel",
   "name" : "my",
   "features":[],
   "params" : {
   "trees" : [
   {
   "weight" : 1,
   "root" : {
   "value" : -10
   }} ]}}
   
The error:
  "error":{
"metadata":[
  "error-class","org.apache.solr.common.SolrException",
  "root-error-class","java.lang.IllegalArgumentException"],
"msg":"org.apache.solr.ltr.model.ModelException: Model type does not
exist org.apache.solr.ltr.model.MultipleAdditiveTreesModel",
"code":400}}


I inserted the configurations to solrconfig.xml like
  
and started solr using   -Dsolr.ltr.enabled=true 

please help me 
Thanks you all ;)



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: CURL command problem on Solr

2018-05-30 Thread Roee T
Thank you so much all of you
the following worked for me!

curl -X PUT -H "Content-Type: application/json" -d "@Myfeatures.json"
"http://localhost:8983/solr/techproducts/schema/feature-store;






--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html