假设我在Solr 6.4.2中有以下文件。
< DOC> < field name =“id”> 1< / field> < field name =“solr_record_type”> 1< / field> < field name =“title”> …
公平地说,我没有看到任何过滤器 contributor_type 你要的那个。
contributor_type
所以,我只会将它添加到你用来制作你的本地参数 q_composer_name 下列:
q_composer_name
q_composer_name=+_query_:"{!dismax qf=\"contributor_name^2.0 contributor_name_phonetic^2.0\" pf=\"contributor_name^2.0 contributor_name_phonetic^2.0\" tie=0.05}Polly" +contributor_type:3
我添加了缺失部分 +contributor_type:3 使这个条款成为必须。此外,还为dismax查询添加了+,以使其真实 Polly AND type 3
+contributor_type:3
Polly AND type 3