我正在尝试将包含我的搜索短语的 Solr 搜索结果放在结果集顶部的特定字段(此处)中。resourcename
我是 Solr 的初学者。我在网上搜索了很长时间,发现了一些相关的问题,例如:
然后我开始用这样的查询来试验自己:
https://localhost:8898/solr/collection1/select?defType=edismax&fl=resourcename&indent=on&q=resourcename:"test"*^200,%20content:"test"*^1&qf=resourcename^200%20content^2&rows=1000&wt=json
https://localhost:8898/solr/collection1/select?bf=if(exists(resourcename),100,1)&defType=edismax&fl=resourcename&indent=on&q=resourcename:"test"*^200,%20content:"test"*^1&rows=1000&wt=json
https://localhost:8898/solr/collection1/select?bf=if(exists(resourcename),100,1)&defType=edismax&fl=resourcename&indent=on&q=*:"test"*&rows=1000&wt=json
https://localhost:8898/solr/collection1/select?defType=edismax&fl=resourcename&indent=on&q=*:"test"*&qf=resourcename^200%20content^2&rows=1000&wt=json
但是,无论我尝试什么,我都会得到包含该词test
的结果resourcename
,而不仅仅是结果的顶部。
有什么想法我可能会错过或做错吗?