更新时间:2023-02-02 07:50:05
根据 Solr文档,任何要提升的字段必须具有 omitNorms =false
。默认是 false
,但是它可能被设置为 true
在您的schema.xml中?我在上面的CFINDEX语句中看到的另一个问题是,您没有在 fieldboost
参数中指定字段名,而是一个查询列。如果你想提高 title
,那么也许你需要
According to the Solr documentation any field that is to be boosted must have omitNorms="false"
in schema.xml. The default is false
but is it possible it is being set to true
in your schema.xml? The other issue I see in the above CFINDEX statement is that you're not specifying a field name in your fieldboost
parameter, but rather a query column. If you want to boost on title
then perhaps you need
<cfindex ... fieldboost="title:6" ... />
?