看起来我无法设置在托管架构上发布新字段类型的solr.DFRSimilarityFactory参数...
curl -X POST -H 'Content-type:application/json' --data-binary '{
"replace-field-type": {
"name": "text_dfr",
"class": "solr.TextField",
"positionIncrementGap": "100",
"multiValued": true,
"similarity": {
"class": "solr.DFRSimilarityFactory",
"basicModel": "I(F)",
"afterEffect": "B",
"normalization": "H2"
},
"indexAnalyzer": {
"tokenizer": {
"class": "solr.StandardTokenizerFactory"
},
"filters": [{
"class": "solr.StopFilterFactory", "words": "stopwords.txt", "ignoreCase": "true"
}, {
"class": "solr.LowerCaseFilterFactory"
}]
},
"queryAnalyzer": {
"tokenizer": {
"class": "solr.StandardTokenizerFactory"
},
"filters": [
{
"class": "solr.StopFilterFactory",
"words": "stopwords.txt",
"ignoreCase": "true"
},
{
"class": "solr.SynonymFilterFactory",
"expand": "true",
"ignoreCase": "true",
"synonyms": "synonyms.txt"
},
{
"class": "solr.LowerCaseFilterFactory"
}
]
}
}
}' http://localhost:8983/solr/questions/schema

响应是......
{
"responseHeader":{
"status":0,
"QTime":207},
"errors":[{
...
"errorMessages":["Plugin init failure for [schema.xml] fieldType\nInvalid basicModel: null\n"]}]}

我的论据发帖应该有问题。任何提示?