lucene/solr/contrib/ltr/example/exampleFeatures.json

27 lines
702 B
JSON

[
{
"store" : "exampleFeatureStore",
"name" : "isInStock",
"class" : "org.apache.solr.ltr.feature.FieldValueFeature",
"params" : { "field" : "inStock" }
},
{
"store" : "exampleFeatureStore",
"name" : "originalScore",
"class" : "org.apache.solr.ltr.feature.OriginalScoreFeature",
"params" : {}
},
{
"store" : "exampleFeatureStore",
"name" : "price",
"class" : "org.apache.solr.ltr.feature.FieldValueFeature",
"params" : { "field" : "price" }
},
{
"store" : "exampleFeatureStore",
"name" : "productNameMatchQuery",
"class" : "org.apache.solr.ltr.feature.SolrFeature",
"params" : { "q" : "{!field f=name}${user_query}" }
}
]