Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Solr 的新手。我已经完成了网页的索引并获得了搜索结果。但是所有的结果都有
“得分” = 0 “提升” = 0
结果我的搜索结果没有正确排序。目前我的结果是根据网页的 url 按字典顺序排序的。我在查询中指定 fl=*,score。
我为索引网页的“内容”字段指定了以下参数
字段名称=“内容”类型=“文本”存储=“真”索引=“真”术语向量=“真”术语位置=“真”术语偏移=“真”省略标准=“假
请帮忙...
也许在某个地方将浮点值转换为整数?
<result name="response" numFound="16" start="0" maxScore="0.008373434"> <doc> <float name="score">0.008373434</float> <str name="id">301</str> <str name="ename">exampleName</str> </doc> ...