Distributed consistent search result random sorting method

The invention discloses a distributed consistent search result random sorting method, which comprises the following steps of: preparing search data, and generating an index primary key identifier; initializing global parameters for controlling random sorting processing; a search thread is started, a...

Full description

Saved in:
Bibliographic Details
Main Authors CHEN YIFAN, LI RENYONG
Format Patent
LanguageChinese
English
Published 17.05.2022
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention discloses a distributed consistent search result random sorting method, which comprises the following steps of: preparing search data, and generating an index primary key identifier; initializing global parameters for controlling random sorting processing; a search thread is started, and a random time factor is initialized; calculating an initial score and a random score for the matched product data; calculating the sum of the initial score and the random score as the total score of the product data; the method is not influenced by a distributed environment and a network environment, the consistency of search results in the distributed environment is supported, and the effects of guaranteeing the fairness of product search and improving the user experience of product retrieval of a user are achieved. 本发明公开了一种分布式一致性的搜索结果随机排序方法,准备搜索数据,并生成索引主键标识;初始化控制随机排序处理的全局参数;搜索线程启动,初始化随机时间因子;针对匹配的产品数据,计算初始分和随机分;计算初始分和随机分的总和为产品数据的总分;本发明不受分布式环境及网络环境的影响,支持分布式环境中的搜索结果一致性,达到既保障了产品搜索的公平性,也提高了用户检索产品的用户体验的效果。
Bibliography:Application Number: CN202210148774