作为返回对象的一部分,Algolia视图匹配分数 /置信度级别
我们正在使用Algolia根据用户搜索标准显示结果列表。我们需要了解结果的置信度,以便我们可以将结果滤除到一定水平以下。
前任。 如果有100个记录,我们只想显示置信度高于90%的记录。这可以是5个记录,也可以是50个记录。它不是由返回列表中的索引值 /位置确定的。它的基于
添加GetRankingInfo字段的分数返回与匹配的查询有关的以下内容,我们将结果限制在5:
{"nbTypos":0,"firstMatchedWord":0,"proximityDistance":6,"userScore":4216,"geoDistance":0,"geoPrecision":1,"nbExactWords":4,"words":5,"filters":0}
{"nbTypos":0,"firstMatchedWord":0,"proximityDistance":6,"userScore":4210,"geoDistance":0,"geoPrecision":1,"nbExactWords":4,"words":5,"filters":0}
{"nbTypos":0,"firstMatchedWord":0,"proximityDistance":8,"userScore":7801,"geoDistance":0,"geoPrecision":1,"nbExactWords":4,"words":5,"filters":0}
{"nbTypos":0,"firstMatchedWord":0,"proximityDistance":8,"userScore":4215,"geoDistance":0,"geoPrecision":1,"nbExactWords":4,"words":5,"filters":0}
{"nbTypos":0,"firstMatchedWord":0,"proximityDistance":8,"userScore":4214,"geoDistance":0,"geoPrecision":1,"nbExactWords":4,"words":5,"filters":0}
是否有人对如何使用下面的信息达到“信心”级别有建议吗?
We are using Algolia to display a list of results based on the users search criteria. We need to know the confidence level of results so that we can filter out results below a certain level.
Ex.
If there are 100 records, we only want to display the records with a confidence level above 90%. This can either be 5 records, or 50 records. It's not determined by the index value / position in the returned list. Its based on the score
Adding the getRankingInfo field returns the following for a query with matches, we limited the results to 5:
{"nbTypos":0,"firstMatchedWord":0,"proximityDistance":6,"userScore":4216,"geoDistance":0,"geoPrecision":1,"nbExactWords":4,"words":5,"filters":0}
{"nbTypos":0,"firstMatchedWord":0,"proximityDistance":6,"userScore":4210,"geoDistance":0,"geoPrecision":1,"nbExactWords":4,"words":5,"filters":0}
{"nbTypos":0,"firstMatchedWord":0,"proximityDistance":8,"userScore":7801,"geoDistance":0,"geoPrecision":1,"nbExactWords":4,"words":5,"filters":0}
{"nbTypos":0,"firstMatchedWord":0,"proximityDistance":8,"userScore":4215,"geoDistance":0,"geoPrecision":1,"nbExactWords":4,"words":5,"filters":0}
{"nbTypos":0,"firstMatchedWord":0,"proximityDistance":8,"userScore":4214,"geoDistance":0,"geoPrecision":1,"nbExactWords":4,"words":5,"filters":0}
Does anyone have a suggestion on how to use the information below to get to a "confidence" level?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论