[go: up one dir, main page]

CN111767445A - Data search method, apparatus, computer equipment and storage medium - Google Patents

Data search method, apparatus, computer equipment and storage medium Download PDF

Info

Publication number
CN111767445A
CN111767445A CN202010603841.7A CN202010603841A CN111767445A CN 111767445 A CN111767445 A CN 111767445A CN 202010603841 A CN202010603841 A CN 202010603841A CN 111767445 A CN111767445 A CN 111767445A
Authority
CN
China
Prior art keywords
retrieval
search
result
internal
external
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010603841.7A
Other languages
Chinese (zh)
Inventor
张剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202010603841.7A priority Critical patent/CN111767445A/en
Publication of CN111767445A publication Critical patent/CN111767445A/en
Priority to PCT/CN2020/136045 priority patent/WO2021115474A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请涉及业务安全技术领域,提供了一种数据搜索方法、装置、计算机设备和存储介质。所述方法包括:接收携带检索关键字的检索请求;根据检索关键字对预设索引数据库进行内部检索,得到内部检索结果,并将携带检索关键字的检索请求发送至外部搜索引擎;接收外部搜索引擎反馈的外部检索结果;获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果。采用本方法能够提高索引数据的安全性。

Figure 202010603841

The present application relates to the technical field of business security, and provides a data search method, apparatus, computer equipment and storage medium. The method includes: receiving a retrieval request carrying a retrieval keyword; performing an internal retrieval on a preset index database according to the retrieval keyword to obtain an internal retrieval result, and sending the retrieval request carrying the retrieval keyword to an external search engine; receiving an external search The external retrieval results fed back by the engine; obtain the user history records corresponding to the retrieval request, and sort the internal retrieval results and external retrieval results according to the retrieval keywords, user history records, and preset business ranking information, and obtain the target retrieval results. By adopting the method, the security of index data can be improved.

Figure 202010603841

Description

数据搜索方法、装置、计算机设备和存储介质Data search method, apparatus, computer equipment and storage medium

技术领域technical field

本申请涉及计算机技术领域,特别是涉及一种数据搜索方法、装置、计算机设备和存储介质。The present application relates to the field of computer technology, and in particular, to a data search method, apparatus, computer device and storage medium.

背景技术Background technique

随着计算机技术的发展,出现了搜索引擎,搜索引擎是一种通用的基于大规模数据的信息检索系统,主要通过将爬虫系统的数据进行处理和排序,快速匹配用户的搜索意图,找到用户所求数据。With the development of computer technology, a search engine has appeared. A search engine is a general information retrieval system based on large-scale data. It mainly processes and sorts the data of the crawler system, quickly matches the user's search intention, and finds the user's search intent. Ask for data.

传统技术中,搜索引擎会将获取到的索引数据统一导入索引库进行检索和处理,在进行检索和处理时,搜索引擎通常采用分词的方式,根据索引库中的索引数据进行检索,或者利用NLP(Natural Language Processing,自然语言处理)技术去探测用户意图,给出更加精确的检索结果。In the traditional technology, the search engine will uniformly import the obtained index data into the index database for retrieval and processing. When retrieving and processing, the search engine usually adopts the method of word segmentation to retrieve according to the index data in the index database, or use NLP. (Natural Language Processing, natural language processing) technology to detect user intent, to give more accurate retrieval results.

然而,传统方法存在索引数据安全性差的问题。However, the traditional method has the problem of poor index data security.

发明内容SUMMARY OF THE INVENTION

基于此,有必要针对上述技术问题,提供一种能够提高索引数据安全性的数据搜索方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide a data search method, apparatus, computer device and storage medium that can improve the security of index data in view of the above technical problems.

一种数据搜索方法,所述方法包括:A data search method, the method comprising:

接收携带检索关键字的检索请求;Receive a retrieval request carrying a retrieval keyword;

根据检索关键字对预设索引数据库进行内部检索,得到内部检索结果,并将携带检索关键字的检索请求发送至外部搜索引擎;Perform an internal search on the preset index database according to the search keyword, obtain the internal search result, and send the search request carrying the search keyword to the external search engine;

接收外部搜索引擎反馈的外部检索结果;Receive external search results fed back by external search engines;

获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果。Obtain the user history record corresponding to the retrieval request, and sort the internal retrieval result and the external retrieval result according to the retrieval keyword, the user history record and the preset business ranking information, and obtain the target retrieval result.

在一个实施例中,根据检索关键字对预设索引数据库进行内部检索,得到内部检索结果包括:In one embodiment, performing an internal search on a preset index database according to a search keyword, and obtaining an internal search result includes:

根据检索关键字对预设索引数据库进行内部检索,得到待筛选检索结果;Perform an internal search on the preset index database according to the search keywords to obtain the search results to be screened;

获取与检索请求对应的用户信息,根据用户信息进行权限等级验证,确定用户权限等级;Obtain the user information corresponding to the retrieval request, verify the authority level according to the user information, and determine the user authority level;

获取待筛选检索结果中各检索结果的等级标识,根据用户权限等级和等级标识对待筛选检索结果进行筛选,得到内部检索结果。Obtain the grade identification of each search result in the search results to be filtered, and filter the search results to be screened according to the user authority level and grade identification to obtain the internal search result.

在一个实施例中,将携带检索关键字的检索请求发送至外部搜索引擎之前,还包括:In one embodiment, before sending the retrieval request carrying the retrieval keyword to the external search engine, the method further includes:

发送携带链接认证信息的链接请求至外部搜索引擎;Send a link request carrying link authentication information to an external search engine;

当外部搜索引擎对链接认证信息验证通过时,接收外部搜索引擎反馈的链接成功提示。When the external search engine passes the verification of the link authentication information, a link success message from the external search engine is received.

在一个实施例中,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果包括:In one embodiment, sorting internal search results and external search results according to search keywords, user history records, and preset business sorting information, and obtaining the target search results includes:

根据检索关键字对内部检索结果和外部检索结果进行排序,得到第一排序结果;Sort the internal search results and external search results according to the search keywords to obtain the first sorting result;

根据用户历史记录对第一排序结果进行调整,得到第二排序结果;Adjust the first sorting result according to the user history to obtain the second sorting result;

根据预设业务排序信息对第二排序结果进行调整,得到目标检索结果。The second sorting result is adjusted according to the preset service sorting information to obtain the target search result.

在一个实施例中,根据检索关键字对内部检索结果和外部检索结果进行排序,得到第一排序结果包括:In one embodiment, the internal search results and the external search results are sorted according to the search keywords, and obtaining the first sorting result includes:

对检索关键字进行拆分,得到与检索关键字对应的待匹配关键字;Splitting the retrieval keywords to obtain the to-be-matched keywords corresponding to the retrieval keywords;

根据待匹配关键字对内部检索结果和外部检索结果进行匹配,确定内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置;Match the internal search result and the external search result according to the keyword to be matched, and determine the hit keywords of the internal search result and the external search result and the position of each hit keyword;

根据内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置,对内部检索结果和外部检索结果进行排序,得到第一排序结果。According to the hit keywords of the internal search results and the external search results and the positions of the hit keywords, the internal search results and the external search results are sorted to obtain a first sorting result.

在一个实施例中,根据用户历史记录对第一排序结果进行调整,得到第二排序结果包括:In one embodiment, the first sorting result is adjusted according to the user history, and obtaining the second sorting result includes:

根据用户历史记录确定用户偏好特征,根据用户偏好特征对第一排序结果进行调整,得到第二排序结果。The user preference feature is determined according to the user history record, and the first sorting result is adjusted according to the user preference feature to obtain the second sorting result.

在一个实施例中,根据预设业务排序信息对第二排序结果进行调整,得到目标检索结果包括:In one embodiment, adjusting the second sorting result according to the preset service sorting information, and obtaining the target retrieval result includes:

获取内部检索结果和外部检索结果携带的搜索标识和业务类型标识,并根据预设业务排序信息确定业务类型优先级;Obtain the search identifier and service type identifier carried by the internal search results and the external search results, and determine the priority of the service type according to the preset service ranking information;

根据业务类型优先级、搜索标识和业务类型标识对第二排序结果进行调整,得到目标检索结果。The second sorting result is adjusted according to the service type priority, the search identifier and the service type identifier to obtain the target retrieval result.

一种数据搜索装置,所述装置包括:A data search device, the device includes:

第一接收模块,用于接收携带检索关键字的检索请求;a first receiving module, configured to receive a retrieval request carrying a retrieval keyword;

检索模块,用于根据检索关键字对预设索引数据库进行内部检索,得到内部检索结果,并将携带检索关键字的检索请求发送至外部搜索引擎;The retrieval module is used to perform internal retrieval on the preset index database according to the retrieval keyword, obtain the internal retrieval result, and send the retrieval request carrying the retrieval keyword to the external search engine;

第二接收模块,用于接收外部搜索引擎反馈的外部检索结果;The second receiving module is used for receiving the external retrieval result fed back by the external search engine;

排序模块,用于获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果。The sorting module is used for obtaining the user history records corresponding to the retrieval request, and sorting the internal retrieval results and the external retrieval results according to the retrieval keywords, user historical records and preset business ranking information to obtain the target retrieval results.

一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

接收携带检索关键字的检索请求;Receive a retrieval request carrying a retrieval keyword;

根据检索关键字对预设索引数据库进行内部检索,得到内部检索结果,并将携带检索关键字的检索请求发送至外部搜索引擎;Perform an internal search on the preset index database according to the search keyword, obtain the internal search result, and send the search request carrying the search keyword to the external search engine;

接收外部搜索引擎反馈的外部检索结果;Receive external search results fed back by external search engines;

获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果。Obtain the user history record corresponding to the retrieval request, and sort the internal retrieval result and the external retrieval result according to the retrieval keyword, the user history record and the preset business ranking information, and obtain the target retrieval result.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

接收携带检索关键字的检索请求;Receive a retrieval request carrying a retrieval keyword;

根据检索关键字对预设索引数据库进行内部检索,得到内部检索结果,并将携带检索关键字的检索请求发送至外部搜索引擎;Perform an internal search on the preset index database according to the search keyword, obtain the internal search result, and send the search request carrying the search keyword to the external search engine;

接收外部搜索引擎反馈的外部检索结果;Receive external search results fed back by external search engines;

获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果。Obtain the user history record corresponding to the retrieval request, and sort the internal retrieval result and the external retrieval result according to the retrieval keyword, the user history record and the preset business ranking information, and obtain the target retrieval result.

上述数据搜索方法、装置、计算机设备和存储介质,接收携带检索关键字的检索请求,根据检索关键字对预设索引数据库进行内部检索,利用内部检索得到内部检索结果,使得内部索引数据只在内部进行检索和流转,保证了内部索引数据的安全性,同时利用携带检索关键字的检索请求向外部搜索引擎获取外部检索结果,将内部检索结果和外部检索结果同时搜索出来,获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果,整个过程,通过检索结果内部和外部互通进行检索结果输出,由于内部索引数据和外部索引数据都在各自的索引数据库中进行存储,且分别在内部数据库和外部数据库中进行检索,内部索引数据和外部索引数据都不会落地到不同的索引环境中,因此能够保证索引数据在安全的索引环境中流转,能够提高索引数据的安全性。The above data search method, device, computer equipment and storage medium receive a search request carrying a search keyword, perform an internal search on a preset index database according to the search keyword, and use the internal search to obtain internal search results, so that the internal index data is only stored in the internal The retrieval and circulation ensure the security of the internal index data. At the same time, the retrieval request carrying the retrieval keyword is used to obtain the external retrieval result from the external search engine, and the internal retrieval result and the external retrieval result are simultaneously searched to obtain the corresponding retrieval request User history records, sort the internal search results and external search results according to the search keywords, user history records and preset business sorting information, and obtain the target search results. In the whole process, the search results are output through the internal and external intercommunication of the search results. Since both the internal index data and the external index data are stored in their respective index databases and retrieved from the internal database and the external database respectively, neither the internal index data nor the external index data will land in different indexing environments, so it is possible to Ensuring that the index data flows in a safe indexing environment can improve the security of the index data.

附图说明Description of drawings

图1为一个实施例中数据搜索方法的应用环境图;Fig. 1 is the application environment diagram of the data search method in one embodiment;

图2为一个实施例中数据搜索方法的流程示意图;2 is a schematic flowchart of a data search method in one embodiment;

图3为另一个实施例中数据搜索方法的流程示意图;3 is a schematic flowchart of a data search method in another embodiment;

图4为一个实施例中数据搜索方法的示意图;4 is a schematic diagram of a data search method in one embodiment;

图5为一个实施例中数据搜索装置的结构框图;5 is a structural block diagram of a data search apparatus in one embodiment;

图6为一个实施例中计算机设备的内部结构图。FIG. 6 is a diagram of the internal structure of a computer device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

本申请提供的数据搜索方法,可以应用于如图1所示的应用环境中。其中,终端102通过网络与服务器104进行通信。终端102接收携带检索关键字的检索请求,根据检索关键字对预设索引数据库进行内部检索,得到内部检索结果,并将携带检索关键字的检索请求发送至外部搜索引擎(即服务器104),接收外部搜索引擎反馈的外部检索结果,获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果。其中,终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The data search method provided in this application can be applied to the application environment shown in FIG. 1 . The terminal 102 communicates with the server 104 through the network. The terminal 102 receives the retrieval request carrying the retrieval keyword, performs an internal retrieval on the preset index database according to the retrieval keyword, obtains an internal retrieval result, and sends the retrieval request carrying the retrieval keyword to the external search engine (ie, the server 104 ), and receives From the external search results fed back by the external search engine, obtain the user history records corresponding to the search request, and sort the internal search results and external search results according to the search keywords, user history records, and preset business ranking information to obtain the target search results. The terminal 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.

在一个实施例中,如图2所示,提供了一种数据搜索方法,以该方法应用于图1中的终端为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2, a data search method is provided, and the method is applied to the terminal in FIG. 1 as an example for description, including the following steps:

步骤202,接收携带检索关键字的检索请求。Step 202, receiving a retrieval request carrying a retrieval keyword.

其中,检索关键字是指用于表示检索意图的关键字。比如,检索关键字具体可以是指用于表示检索意图的词组。又比如,检索关键字具体可以是指用于表示检索意图的一句话。检索请求是指用于对检索关键字进行检索的请求,可以由用户通过终端进行操作。The search keyword refers to a keyword used to express search intent. For example, the retrieval keyword may specifically refer to a phrase used to express retrieval intention. For another example, the retrieval keyword may specifically refer to a sentence used to express retrieval intention. The retrieval request refers to a request for retrieving a retrieval keyword, and can be operated by a user through a terminal.

具体的,当用户有检索意图时,会根据检索意图确定检索关键字,发送携带检索关键字的检索请求至终端。举例说明,用户可以通过操作终端的输入装置(如键盘、鼠标等)发送携带检索关键字的检索请求至终端,在用户发送携带检索关键字的检索请求至终端后,终端就可以接受到携带检索关键字的检索请求。Specifically, when the user has a retrieval intention, a retrieval keyword is determined according to the retrieval intention, and a retrieval request carrying the retrieval keyword is sent to the terminal. For example, the user can send a retrieval request carrying a retrieval keyword to the terminal through an input device (such as a keyboard, a mouse, etc.) of the operating terminal. After the user sends the retrieval request carrying the retrieval keyword to the terminal, the terminal can accept the retrieval request with the retrieval keyword. Keyword search request.

步骤204,根据检索关键字对预设索引数据库进行内部检索,得到内部检索结果,并将携带检索关键字的检索请求发送至外部搜索引擎。Step 204: Perform an internal search on the preset index database according to the search keyword, obtain an internal search result, and send a search request carrying the search keyword to an external search engine.

其中,预设索引数据库是指预先设置的索引数据库,预设索引数据库中存储的索引数据来源于索引器从内部数据库中爬取到内容进行索引建立。以企业内部数据库为例进行说明,内部数据库具体可以包括企业内部文档库、经营数据库、用户信息库、客户信息库、消息库等,不同的数据库有不同的接入方式,比如企业内部文档库需要搜索引擎的爬虫程序去爬取。经营数据库、用户信息库、客户信息库等需要通过对应的数据接口对接数据,消息库可以通过约定好格式基于一定标准直接写入预设索引数据库。具体的,消息库中存储的是消息日志,需要先获取消息库中的数据格式,再通过中间服务根据数据格式去抽取数据,将抽取到的数据存储在中间表里,最后从中间表获取抽取到的数据。进一步的,这些数据源都需要经过转化之后才能存入预设索引数据库,才能成为搜索引擎可以检索的对象。举例说明,转化的方式可以为:将数据源转化为键值对形式的数据,其中,键值对形式可以是以标题和/或摘要为键,以链接为值的形式。The preset index database refers to a preset index database, and the index data stored in the preset index database comes from the content crawled by the indexer from the internal database for index establishment. Taking the internal database of the enterprise as an example, the internal database can specifically include the internal document database of the enterprise, the operation database, the user information database, the customer information database, the message database, etc. Different databases have different access methods, such as the internal document database of the enterprise. Search engine crawlers to crawl. The management database, user information database, customer information database, etc. need to connect to the data through the corresponding data interface, and the message database can be directly written into the preset index database based on a certain standard through the agreed format. Specifically, the message log is stored in the message database. It is necessary to obtain the data format in the message database first, then extract the data according to the data format through the intermediate service, store the extracted data in the intermediate table, and finally obtain and extract the data from the intermediate table. to the data. Further, these data sources need to be transformed before they can be stored in the preset index database, and can become objects that can be retrieved by search engines. For example, the conversion method may be: converting the data source into data in the form of key-value pairs, wherein the form of key-value pairs may be in the form of titles and/or abstracts as keys and links as values.

其中,内部检索结果是指根据检索关键字对预设索引数据库进行内部检索得到的结果,内部检索即指在终端内部进行检索,通过利用内部检索得到内部检索结果,能够使得预设索引数据库中的内部索引数据只在内部进行检索和流转,保证了内部索引数据的安全性。以企业用户进行数据搜索为例进行说明,进行内部检索利用的是企业内部的预设索引数据库,外部搜索引擎是指企业外部的搜索引擎。Among them, the internal search result refers to the result obtained by performing internal search on the preset index database according to the search keyword, and the internal search refers to the search within the terminal. By using the internal search to obtain the internal search result, the preset index database can be retrieved. The internal index data is only retrieved and circulated internally, which ensures the security of the internal index data. Taking the data search performed by an enterprise user as an example, the internal retrieval uses a preset index database within the enterprise, and the external search engine refers to a search engine outside the enterprise.

具体的,终端会对检索关键字进行拆分,得到多个待检索字段,根据多个待检索字段对预设索引数据库中的数据进行匹配实现内部检索,查找出与多个待检索字段匹配的数据,根据与多个待检索字段匹配的数据得到内部检索结果,并将携带检索关键字的检索请求发送至外部搜索引擎,向外部搜索引擎请求外部检索结果。Specifically, the terminal splits the search keywords to obtain multiple fields to be searched, matches the data in the preset index database according to the multiple fields to be searched to realize internal search, and finds out the fields that match the multiple fields to be searched. data, obtain internal search results according to data matching multiple fields to be searched, send a search request carrying search keywords to an external search engine, and request external search results from the external search engine.

步骤206,接收外部搜索引擎反馈的外部检索结果。Step 206: Receive the external retrieval result fed back by the external search engine.

具体的,外部搜索引擎在接收到携带检索关键字的检索请求后,也会对检索关键字进行拆分,得到多个待检索字段,根据多个待检索字段对外部搜索引擎自身的索引数据库中的数据进行匹配实现外部检索,查找出与多个待检索字段匹配的数据作为外部搜索结果,反馈外部搜索结果至终端,终端会接收到外部搜索引擎反馈的外部检索结果。Specifically, after receiving the retrieval request carrying the retrieval keyword, the external search engine will also split the retrieval keyword to obtain a plurality of fields to be retrieved, and according to the plurality of fields to be retrieved, the external search engine's own index database is indexed. The data matched to achieve external retrieval, find data matching multiple fields to be retrieved as external search results, and feed back the external search results to the terminal, and the terminal will receive the external search results fed back by the external search engine.

步骤208,获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果。Step 208: Obtain the user history record corresponding to the retrieval request, and sort the internal retrieval result and the external retrieval result according to the retrieval keyword, the user history record and the preset service ranking information to obtain the target retrieval result.

其中,用户历史记录用于表征用户行为,比如,用户历史记录具体可以是用户历史点击记录,通过用户历史记录可以确定用户偏好特征。用户偏好特征用于表征用户兴趣,比如,用户偏好特征具体可以是指用户对哪方面的业务比较关注等。预设的业务排序信息是指预先设置的业务排序优先级,通过业务排序信息可以确定在对内部检索结果和外部检索结果进行排序时,需要将与哪些业务相关的检索结果排在前面。The user history record is used to represent the user behavior. For example, the user history record may specifically be the user history click record, and the user preference feature can be determined through the user history record. The user preference feature is used to represent the user's interest, for example, the user preference feature may specifically refer to which business the user is more concerned about, and the like. The preset service sorting information refers to the preset service sorting priority. The service sorting information can determine which service-related search results need to be ranked first when sorting the internal search results and the external search results.

具体的,终端会获取与检索请求对应的用户历史记录,根据用户历史记录确定用户偏好特征,根据检索关键字、用户偏好特征以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果。进一步的,根据检索关键字、用户偏好特征以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果的方式可以为多重排序。举例说明,多重排序具体可以是指先根据检索关键字进行排序、再根据用户偏好特征进行排序,最后根据预设的业务排序信息进行排序。进一步的,在得到目标检索结果之后,终端会通过显示屏显示目标检索结果。Specifically, the terminal acquires the user history records corresponding to the retrieval request, determines the user preference features according to the user history records, and sorts the internal retrieval results and the external retrieval results according to the retrieval keywords, user preference features, and preset business ranking information. Get the target search result. Further, the internal search results and the external search results are sorted according to the search keywords, user preference characteristics and preset business sorting information, and the method for obtaining the target search results may be multiple sorting. For example, the multiple sorting may specifically refer to sorting based on search keywords, sorting based on user preference characteristics, and sorting based on preset service sorting information. Further, after obtaining the target retrieval result, the terminal will display the target retrieval result through the display screen.

上述数据搜索方法,接收携带检索关键字的检索请求,根据检索关键字对预设索引数据库进行内部检索,利用内部检索得到内部检索结果,使得内部索引数据只在内部进行检索和流转,保证了内部索引数据的安全性,同时利用携带检索关键字的检索请求向外部搜索引擎获取外部检索结果,将内部检索结果和外部检索结果同时搜索出来,获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果,整个过程,通过检索结果内部和外部互通进行检索结果输出,由于内部索引数据和外部索引数据都在各自的索引数据库中进行存储,且分别在内部数据库和外部数据库中进行检索,内部索引数据和外部索引数据都不会落地到不同的索引环境中,因此能够保证索引数据在安全的索引环境中流转,能够提高索引数据的安全性。The above data search method receives a search request carrying a search keyword, performs an internal search on a preset index database according to the search keyword, and uses the internal search to obtain internal search results, so that the internal index data is only searched and circulated internally, ensuring that the internal The security of index data, and at the same time use the retrieval request carrying the retrieval keyword to obtain the external retrieval result from the external search engine, search the internal retrieval result and the external retrieval result at the same time, and obtain the user history corresponding to the retrieval request, according to the retrieval keyword. , user history records and preset business sorting information to sort the internal search results and external search results to obtain the target search results. In the whole process, the search results are output through the internal and external intercommunication of the search results. Due to the internal index data and external index data Both are stored in their respective index databases, and are retrieved in the internal database and external database respectively. Neither the internal index data nor the external index data will fall into different index environments, so it can ensure that the index data is in a safe index environment. It can improve the security of index data.

在一个实施例中,根据检索关键字对预设索引数据库进行内部检索,得到内部检索结果包括:In one embodiment, performing an internal search on a preset index database according to a search keyword, and obtaining an internal search result includes:

根据检索关键字对预设索引数据库进行内部检索,得到待筛选检索结果;Perform an internal search on the preset index database according to the search keywords to obtain the search results to be screened;

获取与检索请求对应的用户信息,根据用户信息进行权限等级验证,确定用户权限等级;Obtain the user information corresponding to the retrieval request, verify the authority level according to the user information, and determine the user authority level;

获取待筛选检索结果中各检索结果的等级标识,根据用户权限等级和等级标识对待筛选检索结果进行筛选,得到内部检索结果。Obtain the grade identification of each search result in the search results to be filtered, and filter the search results to be screened according to the user authority level and grade identification to obtain the internal search result.

其中,待筛选检索结果是指根据检索关键字对预设索引数据库中的数据进行匹配,查找出的与检索关键字匹配的检索结果。因为预设索引数据库中的数据有一定的权限控制,所以在得到待筛选检索结果之后,要根据与搜索请求对应的用户信息对待筛选检索结果进行筛选,才能得到允许显示的内部检索结果。与检索请求对应的用户信息是指发送检索请求的用户的信息,比如,与检索请求对应的用户信息具体可以是用户身份标识。用户权限等级是指用户查阅预设索引数据库中的数据的权限等级,只有达到相应等级的用户才能查看预设索引数据库中的数据。等级标识用于表征各检索结果的可查看权限等级。The search results to be screened refer to the search results matching the search keywords found by matching the data in the preset index database according to the search keywords. Because the data in the preset index database has certain authority control, after obtaining the to-be-filtered retrieval results, the to-be-filtered retrieval results must be filtered according to the user information corresponding to the search request, in order to obtain the internal retrieval results that are allowed to be displayed. The user information corresponding to the retrieval request refers to the information of the user who sends the retrieval request, for example, the user information corresponding to the retrieval request may specifically be a user identity identifier. The user authority level refers to the authority level of the user to view the data in the preset index database, and only users who reach the corresponding level can view the data in the preset index database. The level identifier is used to represent the viewable permission level of each search result.

具体的,终端会对检索关键字进行拆分,得到多个待检索字段,根据多个待检索字段对预设索引数据库中的数据进行匹配实现内部检索,查找出与多个待检索字段匹配的数据,将与多个待检索字段匹配的数据作为待筛选检索结果,获取与检索请求对应的用户信息,根据用户信息查询预设权限信息库,确定用户权限等级,获取待筛选检索结果中各检索结果的等级标识,比对用户权限等级和等级标识,从待筛选检索结果中筛选出满足用户权限等级的检索结果作为内部检索结果。Specifically, the terminal splits the search keywords to obtain multiple fields to be searched, matches the data in the preset index database according to the multiple fields to be searched to realize internal search, and finds out the fields that match the multiple fields to be searched. Data, take the data matching multiple fields to be searched as the search results to be screened, obtain the user information corresponding to the search request, query the preset authority information database according to the user information, determine the user authority level, and obtain each search result in the search results to be screened. The level identifier of the result is compared with the user authority level and the level identifier, and the search results satisfying the user authority level are selected from the search results to be screened as the internal search results.

本实施例中,通过根据检索关键字对预设索引数据库进行内部检索,得到待筛选检索结果,获取与检索请求对应的用户信息,根据用户信息进行权限等级验证,确定用户权限等级,获取待筛选检索结果中各检索结果的等级标识,根据用户权限等级和等级标识对待筛选检索结果进行筛选,得到内部检索结果,能够实现对内部检索结果的获取。In this embodiment, by performing an internal search on the preset index database according to the search keywords, the search results to be screened are obtained, the user information corresponding to the search request is obtained, the authority level verification is performed according to the user information, the user authority level is determined, and the to-be-screened search results are obtained. The grade identifier of each retrieval result in the retrieval result is screened according to the user's authority level and grade identifier to filter the retrieval result to be screened to obtain the internal retrieval result, which can realize the acquisition of the internal retrieval result.

在一个实施例中,将携带检索关键字的检索请求发送至外部搜索引擎之前,还包括:In one embodiment, before sending the retrieval request carrying the retrieval keyword to the external search engine, the method further includes:

发送携带链接认证信息的链接请求至外部搜索引擎;Send a link request carrying link authentication information to an external search engine;

当外部搜索引擎对链接认证信息验证通过时,接收外部搜索引擎反馈的链接成功提示。When the external search engine passes the verification of the link authentication information, a link success message from the external search engine is received.

其中,链接认证信息用于外部搜索引擎对终端进行链接认证,比如,链接认证信息具体可以是外部搜索引擎已事先下发给终端的认证信息。The link authentication information is used for the external search engine to perform link authentication on the terminal. For example, the link authentication information may specifically be the authentication information that has been issued to the terminal by the external search engine in advance.

具体的,终端会发送携带链接认证信息的链接请求至外部搜索引擎,外部搜索引擎在接收到链接认证信息后,会根据链接认证信息查询自身的链接信息库中是否有对应的链接信息,当链接信息库中有对应的链接信息时,表示事先已下发认证信息给终端,对链接认证信息验证通过,外部搜索引擎会反馈链接成功提示至终端,终端在接收到外部搜索引擎反馈的链接成功提示后,就与外部搜索引擎成功建立链接,从而可以通过发送携带检索关键字的检索请求至外部搜索引擎,向外部搜索引擎请求外部检索结果。Specifically, the terminal will send a link request carrying the link authentication information to the external search engine. After receiving the link authentication information, the external search engine will check whether there is corresponding link information in its own link information database according to the link authentication information. When there is corresponding link information in the information base, it means that the authentication information has been issued to the terminal in advance. If the verification of the link authentication information is passed, the external search engine will feedback the link success prompt to the terminal, and the terminal will receive the link success prompt feedback from the external search engine. After that, the link with the external search engine is successfully established, so that the external search result can be requested from the external search engine by sending a search request carrying the search keyword to the external search engine.

本实施例中,通过发送携带链接认证信息的链接请求至外部搜索引擎,当外部搜索引擎对链接认证信息验证通过时,接收外部搜索引擎反馈的链接成功提示,能够实现与外部搜索引擎的链接。In this embodiment, by sending a link request carrying the link authentication information to the external search engine, when the external search engine passes the verification of the link authentication information, it receives a link success notification feedback from the external search engine, and the link with the external search engine can be realized.

在一个实施例中,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果包括:In one embodiment, sorting internal search results and external search results according to search keywords, user history records, and preset business sorting information, and obtaining the target search results includes:

根据检索关键字对内部检索结果和外部检索结果进行排序,得到第一排序结果;Sort the internal search results and external search results according to the search keywords to obtain the first sorting result;

根据用户历史记录对第一排序结果进行调整,得到第二排序结果;Adjust the first sorting result according to the user history to obtain the second sorting result;

根据预设业务排序信息对第二排序结果进行调整,得到目标检索结果。The second sorting result is adjusted according to the preset service sorting information to obtain the target search result.

具体的,终端在根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果的时候可以采用多重排序的方式,首先根据检索关键字对内部检索结果和外部检索结果进行排序,确定内部检索结果和外部检索结果与检索关键字的关联程度,得到第一排序结果,然后根据用户历史记录确定用户偏好特征,根据用户偏好特征对第一排序结果进行调整,将与用户偏好特征匹配的检索结果排在前面,得到第二排序结果,最后根据预设业务排序信息对第二排序结果进行调整,将与重点业务相关的检索结果排在前面,得到目标检索结果。Specifically, the terminal can use multiple sorting methods when sorting the internal search results and external search results according to the search keywords, user history records and preset service sorting information, and obtain the target search results. Sort the internal search results and external search results, determine the degree of association between the internal search results and external search results and the search keywords, obtain the first sorting result, and then determine the user preference characteristics according to the user history, and sort the first according to the user preference characteristics The results are adjusted, and the retrieval results that match the user's preference characteristics are ranked first, and the second ranking result is obtained. Finally, the second ranking result is adjusted according to the preset service ranking information, and the retrieval results related to key services are ranked first. Get the target search result.

本实施例中,通过根据检索关键字对内部检索结果和外部检索结果进行排序,得到第一排序结果,根据用户历史记录对第一排序结果进行调整,得到第二排序结果,根据预设业务排序信息对第二排序结果进行调整,得到目标检索结果,能够实现对目标检索结果的获取。In this embodiment, the first sorting result is obtained by sorting the internal search results and the external search results according to the search keywords, the second sorting result is obtained by adjusting the first sorting result according to the user history, and the sorting is performed according to the preset service. The information adjusts the second sorting result to obtain the target retrieval result, which can realize the acquisition of the target retrieval result.

在一个实施例中,根据检索关键字对内部检索结果和外部检索结果进行排序,得到第一排序结果包括:In one embodiment, the internal search results and the external search results are sorted according to the search keywords, and obtaining the first sorting result includes:

对检索关键字进行拆分,得到与检索关键字对应的待匹配关键字;Splitting the retrieval keywords to obtain the to-be-matched keywords corresponding to the retrieval keywords;

根据待匹配关键字对内部检索结果和外部检索结果进行匹配,确定内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置;Match the internal search result and the external search result according to the keyword to be matched, and determine the hit keywords of the internal search result and the external search result and the position of each hit keyword;

根据内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置,对内部检索结果和外部检索结果进行排序,得到第一排序结果。According to the hit keywords of the internal search results and the external search results and the positions of the hit keywords, the internal search results and the external search results are sorted to obtain a first sorting result.

其中,待匹配关键字是指对检索关键字进行拆分和组合后得到的关键字。比如,待匹配关键字具体可以是指拆分后的检索关键字。又比如,待匹配关键字具体可以是指先拆分后组合后的检索关键字。举例说明,当检索关键字为一句话时,待匹配关键字具体可以是指对检索关键字进行拆分后得到的各字段,也可以是指对检索关键字先进行拆分后再组合得到的各字段。进一步的,在进行字段组合时,可以根据预设的专有名词字典进行组合,在预设的专有名词字典中存储了常见专有名词。The keywords to be matched refer to keywords obtained by splitting and combining the search keywords. For example, the keyword to be matched may specifically refer to the split retrieval keyword. For another example, the keyword to be matched may specifically refer to a search keyword that is first split and then combined. For example, when the search keyword is a sentence, the keyword to be matched may specifically refer to the fields obtained by splitting the search keyword, or it may refer to the field obtained by first splitting the search keyword and then combining it. each field. Further, when combining fields, the combination can be performed according to a preset proper noun dictionary, and common proper nouns are stored in the preset proper noun dictionary.

其中,命中关键词是指在内部检索结果和外部检索结果中出现的待匹配关键字。命中关键词的位置是指命中关键词在内部检索结果和外部检索结果中出现的位置。比如,命中关键词的位置具体可以是标题。又比如,命中关键词的位置具体可以是简介。The hit keyword refers to a keyword to be matched that appears in the internal search result and the external search result. The position of the hit keyword refers to the position where the hit keyword appears in the internal search results and the external search results. For example, the location of the hit keyword may specifically be the title. For another example, the location of the hit keyword may specifically be an introduction.

具体的,终端会对检索关键字进行拆分,将检索关键字拆分为多个字段,再根据预设的专有名词字典对多个字段进行组合,根据多个字段和组合后的字段得到与检索关键字对应的待匹配关键字,根据待匹配关键字对内部检索结果和外部检索结果进行匹配,确定内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置。根据预设的命中关键词权重以及命中关键词的位置权重,以及内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置,计算内部检索结果和外部检索结果关于命中关键词的排序分数,根据排序分数对内部检索结果和外部检索结果进行排序,得到第一排序结果。Specifically, the terminal will split the retrieval keyword, split the retrieval keyword into multiple fields, and then combine the multiple fields according to the preset proper noun dictionary, and obtain the result according to the multiple fields and the combined fields. For the to-be-matched keywords corresponding to the search keywords, the internal search results and the external search results are matched according to the to-be-matched keywords, and the hit keywords of the internal search results and the external search results and the positions of the hit keywords are determined. According to the preset weight of the hit keyword and the position weight of the hit keyword, as well as the hit keyword of the internal search result and the external search result and the position of each hit keyword, calculate the ranking of the hit keyword in the internal search result and the external search result Score, sort the internal search results and external search results according to the sorting scores, and get the first sorting result.

本实施例中,通过对检索关键字进行拆分,得到与检索关键字对应的待匹配关键字,根据待匹配关键字对内部检索结果和外部检索结果进行匹配,确定内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置,根据内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置,对内部检索结果和外部检索结果进行排序,得到第一排序结果,能够实现对第一排序结果的获取。In this embodiment, the keywords to be matched corresponding to the search keywords are obtained by splitting the search keywords, the internal search results and the external search results are matched according to the to-be-matched keywords, and the internal search results and the external search results are determined. The hit keywords and the positions of each hit keyword are sorted according to the hit keywords of the internal search results and the external search results and the positions of each hit keyword, and the first sorting result is obtained by sorting the internal search results and the external search results. Realize the acquisition of the first sorting result.

在一个实施例中,根据用户历史记录对第一排序结果进行调整,得到第二排序结果包括:In one embodiment, the first sorting result is adjusted according to the user history, and obtaining the second sorting result includes:

根据用户历史记录确定用户偏好特征,根据用户偏好特征对第一排序结果进行调整,得到第二排序结果。The user preference feature is determined according to the user history record, and the first sorting result is adjusted according to the user preference feature to obtain the second sorting result.

其中,用户偏好特征用于表征用户兴趣,比如,用户偏好特征具体可以是指用户对哪方面的业务比较关注等。举例说明,用户历史记录具体可以是用户浏览记录,根据用户浏览记录可以建立用户画像,确定用户偏好特征(即用户感兴趣的业务)。The user preference feature is used to represent the user's interest, for example, the user preference feature may specifically refer to which aspect of the business the user pays more attention to, and the like. For example, the user history record may specifically be a user browsing record, and a user portrait may be established according to the user browsing record, and user preference characteristics (ie, services that the user is interested in) can be determined.

具体的,终端会根据用户历史记录建立用户画像,确定用户偏好特征,根据用户偏好特征对第一排序结果进行调整,将用户比较感兴趣的业务排在前面,得到第二排序结果。其中,检索结果都携带有业务类型标识,终端通过获取检索结果携带的业务类型标识,可以确定检索结果的业务类型,进而通过匹配检索结果的业务类型和用户偏好特征,可以从检索结果中筛选出用户比较感兴趣的业务,将用户比较感兴趣的业务排在前面,实现对第一排序结果的调整,得到第二排序结果。Specifically, the terminal builds a user portrait according to the user history, determines user preference characteristics, adjusts the first sorting result according to the user preference characteristics, and ranks the services that the user is more interested in first, and obtains the second sorting result. Among them, the search results all carry service type identifiers, and the terminal can determine the service type of the search results by obtaining the service type identifiers carried by the search results, and then by matching the service types and user preference features of the search results, it can be filtered from the search results. For the services that the user is more interested in, the services that the user is more interested in are ranked first, and the first sorting result is adjusted to obtain the second sorting result.

本实施例中,通过根据用户历史记录确定用户偏好特征,根据用户偏好特征对第一排序结果进行调整,得到第二排序结果,能够实现对第二排序结果的获取。In this embodiment, the second sorting result can be obtained by determining the user preference feature according to the user history record, and adjusting the first sorting result according to the user preference feature to obtain the second sorting result.

在一个实施例中,根据预设业务排序信息对第二排序结果进行调整,得到目标检索结果包括:In one embodiment, adjusting the second sorting result according to the preset service sorting information, and obtaining the target retrieval result includes:

获取内部检索结果和外部检索结果携带的搜索标识和业务类型标识,并根据预设业务排序信息确定业务类型优先级;Obtain the search identifier and service type identifier carried by the internal search results and the external search results, and determine the priority of the service type according to the preset service ranking information;

根据业务类型优先级、搜索标识和业务类型标识对第二排序结果进行调整,得到目标检索结果。The second sorting result is adjusted according to the service type priority, the search identifier and the service type identifier to obtain the target retrieval result.

其中,搜索标识用于表征检索结果的来源。比如,搜索标识可以表征检索结果是来自内部检索还是外部检索。业务类型标识用于表征检索结果对应的业务类型。比如,常见的业务类型包括金融、互联网、汽车等。业务类型优先级是指业务类型在排序时的显示优先级。The search identifier is used to characterize the source of the search result. For example, the search flag can indicate whether the search results are from an internal search or an external search. The service type identifier is used to represent the service type corresponding to the retrieval result. For example, common business types include finance, Internet, and automobiles. Service type priority refers to the display priority of service types when sorting.

具体的,终端会获取内部检索结果和外部检索结果携带的搜索标识和业务类型标识,并根据预设业务排序信息确定业务类型优先级,根据业务类型优先级和业务类型标识,将优先的业务类型排在前面,根据搜索标识,将内部检索结果排在前面,以此实现对第二排序结果的调整,得到目标检索结果。进一步的,在根据搜索标识,将内部检索结果排在前面时,可以只在同种业务类型内部进行调整,即在根据业务类型优先级和业务类型标识进行排序时,实现对内部检索结果和外部检索结果关于业务类型的排序调整,在根据搜索标识进行排序时,实现对同种业务类型的内部检索结果和外部检索结果的排序调整。Specifically, the terminal will obtain the search identifier and service type identifier carried by the internal search result and the external search result, and determine the priority of the service type according to the preset service ranking information. In the front row, according to the search identifier, the internal retrieval result is arranged in the front row, so as to realize the adjustment of the second sorting result and obtain the target retrieval result. Further, when the internal search results are ranked first according to the search identifiers, adjustments can be made only within the same business type, that is, when sorting according to the business type priority and business type identifier, the internal search results and external search results can be sorted. The sorting and adjustment of the search results regarding the business type, when sorting according to the search identifier, realizes the sorting and adjustment of the internal search results and the external search results of the same business type.

本实施例中,通过获取内部检索结果和外部检索结果携带的搜索标识和业务类型标识,并根据预设业务排序信息确定业务类型优先级,根据业务类型优先级、搜索标识和业务类型标识对第二排序结果进行调整,得到目标检索结果,能够实现对目标检索结果的获取。In this embodiment, the search identifier and service type identifier carried by the internal retrieval result and the external retrieval result are obtained, and the priority of the service type is determined according to the preset service sorting information, and the priority of the service type is determined according to the priority of the service type, the search identifier and the service type identifier. The second sorting result is adjusted to obtain the target retrieval result, which can realize the acquisition of the target retrieval result.

如图3所示,通过一个实施例来说明本申请的数据搜索方法,包括以下步骤:As shown in Figure 3, an embodiment is used to illustrate the data search method of the present application, including the following steps:

步骤302,接收携带检索关键字的检索请求;Step 302, receiving a retrieval request carrying a retrieval keyword;

步骤304,根据检索关键字对预设索引数据库进行内部检索,得到待筛选检索结果;Step 304: Perform an internal search on the preset index database according to the search keyword to obtain the search result to be screened;

步骤306,获取与检索请求对应的用户信息,根据用户信息进行权限等级验证,确定用户权限等级;Step 306: Obtain user information corresponding to the retrieval request, perform authority level verification according to the user information, and determine the user authority level;

步骤308,获取待筛选检索结果中各检索结果的等级标识,根据用户权限等级和等级标识对待筛选检索结果进行筛选,得到内部检索结果;Step 308: Obtain the grade identifier of each search result in the search results to be screened, and filter the search result to be screened according to the user authority level and grade identifier to obtain an internal search result;

步骤310,发送携带链接认证信息的链接请求至外部搜索引擎;Step 310, sending a link request carrying link authentication information to an external search engine;

步骤312,当外部搜索引擎对链接认证信息验证通过时,接收外部搜索引擎反馈的链接成功提示;Step 312, when the external search engine passes the verification of the link authentication information, receive a link success prompt fed back by the external search engine;

步骤314,将携带检索关键字的检索请求发送至外部搜索引擎;Step 314, sending the retrieval request carrying the retrieval keyword to an external search engine;

步骤316,接收外部搜索引擎反馈的外部检索结果;Step 316, receiving the external retrieval result fed back by the external search engine;

步骤318,获取与检索请求对应的用户历史记录;Step 318, obtain the user history record corresponding to the retrieval request;

步骤320,对检索关键字进行拆分,得到与检索关键字对应的待匹配关键字;Step 320, splitting the retrieval keyword to obtain the keyword to be matched corresponding to the retrieval keyword;

步骤322,根据待匹配关键字对内部检索结果和外部检索结果进行匹配,确定内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置;Step 322, match the internal search result and the external search result according to the keyword to be matched, and determine the hit keyword of the internal search result and the external search result and the position of each hit keyword;

步骤324,根据内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置,对内部检索结果和外部检索结果进行排序,得到第一排序结果;Step 324, according to the hit keyword of the internal search result and the external search result and the position of each hit keyword, sort the internal search result and the external search result to obtain the first sorting result;

步骤326,根据用户历史记录确定用户偏好特征,根据用户偏好特征对第一排序结果进行调整,得到第二排序结果;Step 326: Determine the user preference feature according to the user history record, and adjust the first sorting result according to the user preference feature to obtain the second sorting result;

步骤328,获取内部检索结果和外部检索结果携带的搜索标识和业务类型标识,并根据预设业务排序信息确定业务类型优先级;Step 328: Obtain the search identifier and the service type identifier carried by the internal retrieval result and the external retrieval result, and determine the priority of the service type according to the preset service ranking information;

步骤330,根据业务类型优先级、搜索标识和业务类型标识对第二排序结果进行调整,得到目标检索结果;Step 330, adjusting the second sorting result according to the service type priority, the search identifier and the service type identifier to obtain the target retrieval result;

步骤332,显示目标检索结果。Step 332, displaying the target retrieval result.

在一个实施例中,如图4所示,提供了本申请的数据搜索方法的一个应用场景,本申请的数据搜索方法可以应用在如下场景中:In one embodiment, as shown in FIG. 4 , an application scenario of the data search method of the present application is provided, and the data search method of the present application can be applied in the following scenarios:

在企业内部,用户通过终端的显示屏上显示的用户界面发送携带检索关键字的检索请求至终端,终端接收携带检索关键字的检索请求,通过检索器根据检索关键字对预设索引数据库进行内部检索,得到内部检索结果,并通过聚合接口将携带检索关键字的检索请求发送至企业外部的外部搜索引擎,外部搜索引擎通过聚合接口接收携带检索关键字的检索请求,通过检索器对根据检索关键字对索引数据库进行外部检索,得到外部检索结果,通过聚合接口反馈外部检索结果至终端,终端通过聚合接口接收外部搜索引擎反馈的外部检索结果,获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果(即图中的结果排序),显示目标检索结果。Inside the enterprise, the user sends a retrieval request carrying the retrieval keyword to the terminal through the user interface displayed on the display screen of the terminal, the terminal receives the retrieval request carrying the retrieval keyword, and the retriever performs an internal search on the preset index database according to the retrieval keyword. Retrieval, get the internal retrieval results, and send the retrieval request carrying the retrieval keyword to the external search engine outside the enterprise through the aggregation interface. The external search engine receives the retrieval request carrying the retrieval keyword through the aggregation interface. Search the index database externally, obtain the external search results, and feed back the external search results to the terminal through the aggregation interface. Words, user history records, and preset business sorting information are used to sort the internal search results and external search results to obtain the target search results (ie, the result sorting in the figure), and display the target search results.

应该理解的是,虽然图2-3的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-3中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIGS. 2-3 are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIGS. 2-3 may include multiple steps or multiple stages. These steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. The execution of these steps or stages The order is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the steps or phases within the other steps.

在一个实施例中,如图5所示,提供了一种数据搜索装置,包括:第一接收模块502、检索模块504、第二接收模块506和排序模块508,其中:In one embodiment, as shown in FIG. 5, a data search apparatus is provided, including: a first receiving module 502, a retrieval module 504, a second receiving module 506, and a sorting module 508, wherein:

第一接收模块502,用于接收携带检索关键字的检索请求;a first receiving module 502, configured to receive a retrieval request carrying a retrieval keyword;

检索模块504,用于根据检索关键字对预设索引数据库进行内部检索,得到内部检索结果,并将携带检索关键字的检索请求发送至外部搜索引擎;The retrieval module 504 is configured to perform an internal retrieval on the preset index database according to the retrieval keyword, obtain an internal retrieval result, and send a retrieval request carrying the retrieval keyword to an external search engine;

第二接收模块506,用于接收外部搜索引擎反馈的外部检索结果;The second receiving module 506 is configured to receive the external retrieval result fed back by the external search engine;

排序模块508,用于获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果。The sorting module 508 is configured to obtain the user history records corresponding to the retrieval request, and sort the internal retrieval results and the external retrieval results according to the retrieval keywords, the user history records and preset service ranking information to obtain the target retrieval results.

上述数据搜索装置,接收携带检索关键字的检索请求,根据检索关键字对预设索引数据库进行内部检索,利用内部检索得到内部检索结果,使得内部索引数据只在内部进行检索和流转,保证了内部索引数据的安全性,同时利用携带检索关键字的检索请求向外部搜索引擎获取外部检索结果,将内部检索结果和外部检索结果同时搜索出来,获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果,整个过程,通过检索结果内部和外部互通进行检索结果输出,由于内部索引数据和外部索引数据都在各自的索引数据库中进行存储,且分别在内部数据库和外部数据库中进行检索,内部索引数据和外部索引数据都不会落地到不同的索引环境中,因此能够保证索引数据在安全的索引环境中流转,能够提高索引数据的安全性。The above-mentioned data search device receives a search request carrying a search keyword, performs an internal search on a preset index database according to the search keyword, and uses the internal search to obtain internal search results, so that the internal index data is only searched and circulated internally, and the internal search is ensured. The security of index data, and at the same time use the retrieval request carrying the retrieval keyword to obtain the external retrieval result from the external search engine, search the internal retrieval result and the external retrieval result at the same time, and obtain the user history corresponding to the retrieval request, according to the retrieval keyword. , user history records and preset business sorting information to sort the internal search results and external search results to obtain the target search results. In the whole process, the search results are output through the internal and external intercommunication of the search results. Due to the internal index data and external index data Both are stored in their respective index databases, and are retrieved in the internal database and external database respectively. Neither the internal index data nor the external index data will fall into different index environments, so it can ensure that the index data is in a safe index environment. It can improve the security of index data.

在一个实施例中,检索模块还用于根据检索关键字对预设索引数据库进行内部检索,得到待筛选检索结果,获取与检索请求对应的用户信息,根据用户信息进行权限等级验证,确定用户权限等级,获取待筛选检索结果中各检索结果的等级标识,根据用户权限等级和等级标识对待筛选检索结果进行筛选,得到内部检索结果。In one embodiment, the retrieval module is further configured to perform an internal retrieval on the preset index database according to the retrieval keyword, obtain retrieval results to be screened, obtain user information corresponding to the retrieval request, verify the authority level according to the user information, and determine the user authority Level, obtain the level identifier of each search result in the search results to be filtered, and filter the search results to be filtered according to the user authority level and level identifier to obtain the internal search result.

在一个实施例中,数据搜索装置还包括链接模块,链接模块用于发送携带链接认证信息的链接请求至外部搜索引擎,当外部搜索引擎对链接认证信息验证通过时,接收外部搜索引擎反馈的链接成功提示。In one embodiment, the data search device further includes a link module, the link module is configured to send a link request carrying link authentication information to an external search engine, and when the external search engine passes the verification of the link authentication information, receives the link fed back by the external search engine success prompt.

在一个实施例中,排序模块还用于根据检索关键字对内部检索结果和外部检索结果进行排序,得到第一排序结果,根据用户历史记录对第一排序结果进行调整,得到第二排序结果,根据预设业务排序信息对第二排序结果进行调整,得到目标检索结果。In one embodiment, the sorting module is further configured to sort the internal search results and the external search results according to the search keywords to obtain the first sorting result, and adjust the first sorting result according to the user history to obtain the second sorting result, The second sorting result is adjusted according to the preset service sorting information to obtain the target search result.

在一个实施例中,排序模块还用于对检索关键字进行拆分,得到与检索关键字对应的待匹配关键字,根据待匹配关键字对内部检索结果和外部检索结果进行匹配,确定内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置,根据内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置,对内部检索结果和外部检索结果进行排序,得到第一排序结果。In one embodiment, the sorting module is further configured to split the retrieval keywords to obtain the to-be-matched keywords corresponding to the retrieval keywords, and to match the internal retrieval results and the external retrieval results according to the to-be-matched keywords to determine the internal retrieval results. The hit keywords of the results and the external search results and the positions of the hit keywords, according to the hit keywords of the internal search results and the external search results and the positions of the hit keywords, sort the internal search results and the external search results, and get the first A sort result.

在一个实施例中,排序模块还用于根据用户历史记录确定用户偏好特征,根据用户偏好特征对第一排序结果进行调整,得到第二排序结果。In one embodiment, the sorting module is further configured to determine the user preference feature according to the user history record, and adjust the first sorting result according to the user preference feature to obtain the second sorting result.

在一个实施例中,排序模块还用于获取内部检索结果和外部检索结果携带的搜索标识和业务类型标识,并根据预设业务排序信息确定业务类型优先级,根据业务类型优先级、搜索标识和业务类型标识对第二排序结果进行调整,得到目标检索结果。In one embodiment, the sorting module is further configured to obtain a search identifier and a service type identifier carried by the internal search results and external search results, and determine the priority of the service type according to the preset service sorting information, and determine the priority of the service type according to the priority of the service type, the search identifier and the The service type identifier adjusts the second sorting result to obtain the target retrieval result.

关于数据搜索装置的具体限定可以参见上文中对于数据搜索方法的限定,在此不再赘述。上述数据搜索装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the data search apparatus, reference may be made to the limitation of the data search method above, which will not be repeated here. Each module in the above-mentioned data searching apparatus may be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图6所示。该计算机设备包括通过系统总线连接的处理器、存储器、通信接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、运营商网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种数据搜索方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided, and the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 6 . The computer equipment includes a processor, memory, a communication interface, a display screen, and an input device connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for wired or wireless communication with an external terminal, and the wireless communication can be realized by WIFI, operator network, NFC (Near Field Communication) or other technologies. The computer program, when executed by a processor, implements a data search method. The display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse.

本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 6 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.

在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:

接收携带检索关键字的检索请求;Receive a retrieval request carrying a retrieval keyword;

根据检索关键字对预设索引数据库进行内部检索,得到内部检索结果,并将携带检索关键字的检索请求发送至外部搜索引擎;Perform an internal search on the preset index database according to the search keyword, obtain the internal search result, and send the search request carrying the search keyword to the external search engine;

接收外部搜索引擎反馈的外部检索结果;Receive external search results fed back by external search engines;

获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果。Obtain the user history record corresponding to the retrieval request, and sort the internal retrieval result and the external retrieval result according to the retrieval keyword, the user history record and the preset business ranking information, and obtain the target retrieval result.

上述数据搜索计算机设备,接收携带检索关键字的检索请求,根据检索关键字对预设索引数据库进行内部检索,利用内部检索得到内部检索结果,使得内部索引数据只在内部进行检索和流转,保证了内部索引数据的安全性,同时利用携带检索关键字的检索请求向外部搜索引擎获取外部检索结果,将内部检索结果和外部检索结果同时搜索出来,获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果,整个过程,通过检索结果内部和外部互通进行检索结果输出,由于内部索引数据和外部索引数据都在各自的索引数据库中进行存储,且分别在内部数据库和外部数据库中进行检索,内部索引数据和外部索引数据都不会落地到不同的索引环境中,因此能够保证索引数据在安全的索引环境中流转,能够提高索引数据的安全性。The above-mentioned data search computer equipment receives a retrieval request carrying a retrieval keyword, performs an internal retrieval on a preset index database according to the retrieval keyword, and obtains an internal retrieval result by using the internal retrieval, so that the internal index data is only retrieved and circulated internally, ensuring that the internal retrieval is performed. The security of the internal index data, and at the same time, the external search results are obtained from the external search engine using the search request carrying the search keyword, and the internal search results and the external search results are simultaneously searched to obtain the user history corresponding to the search request. According to the search key Words, user history records and preset business sorting information sort the internal search results and external search results to obtain the target search results. The whole process, through the internal and external intercommunication of the search results, outputs the search results. Due to the internal index data and external index The data are stored in their respective index databases and retrieved in the internal and external databases respectively. Neither the internal index data nor the external index data will land in different indexing environments, so it can ensure that the index data is in a safe index. Circulation in the environment can improve the security of index data.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:

根据检索关键字对预设索引数据库进行内部检索,得到待筛选检索结果;Perform an internal search on the preset index database according to the search keywords to obtain the search results to be screened;

获取与检索请求对应的用户信息,根据用户信息进行权限等级验证,确定用户权限等级;Obtain the user information corresponding to the retrieval request, verify the authority level according to the user information, and determine the user authority level;

获取待筛选检索结果中各检索结果的等级标识,根据用户权限等级和等级标识对待筛选检索结果进行筛选,得到内部检索结果。Obtain the grade identification of each search result in the search results to be filtered, and filter the search results to be screened according to the user authority level and grade identification to obtain the internal search result.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:

发送携带链接认证信息的链接请求至外部搜索引擎;Send a link request carrying link authentication information to an external search engine;

当外部搜索引擎对链接认证信息验证通过时,接收外部搜索引擎反馈的链接成功提示。When the external search engine passes the verification of the link authentication information, a link success message from the external search engine is received.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:

根据检索关键字对内部检索结果和外部检索结果进行排序,得到第一排序结果;Sort the internal search results and external search results according to the search keywords to obtain the first sorting result;

根据用户历史记录对第一排序结果进行调整,得到第二排序结果;Adjust the first sorting result according to the user history to obtain the second sorting result;

根据预设业务排序信息对第二排序结果进行调整,得到目标检索结果。The second sorting result is adjusted according to the preset service sorting information to obtain the target search result.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:

对检索关键字进行拆分,得到与检索关键字对应的待匹配关键字;Splitting the retrieval keywords to obtain the to-be-matched keywords corresponding to the retrieval keywords;

根据待匹配关键字对内部检索结果和外部检索结果进行匹配,确定内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置;Match the internal search result and the external search result according to the keyword to be matched, and determine the hit keywords of the internal search result and the external search result and the position of each hit keyword;

根据内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置,对内部检索结果和外部检索结果进行排序,得到第一排序结果。According to the hit keywords of the internal search results and the external search results and the positions of the hit keywords, the internal search results and the external search results are sorted to obtain a first sorting result.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:

根据用户历史记录确定用户偏好特征,根据用户偏好特征对第一排序结果进行调整,得到第二排序结果。The user preference feature is determined according to the user history record, and the first sorting result is adjusted according to the user preference feature to obtain the second sorting result.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:

获取内部检索结果和外部检索结果携带的搜索标识和业务类型标识,并根据预设业务排序信息确定业务类型优先级;Obtain the search identifier and service type identifier carried by the internal search results and the external search results, and determine the priority of the service type according to the preset service ranking information;

根据业务类型优先级、搜索标识和业务类型标识对第二排序结果进行调整,得到目标检索结果。The second sorting result is adjusted according to the service type priority, the search identifier and the service type identifier to obtain the target retrieval result.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

接收携带检索关键字的检索请求;Receive a retrieval request carrying a retrieval keyword;

根据检索关键字对预设索引数据库进行内部检索,得到内部检索结果,并将携带检索关键字的检索请求发送至外部搜索引擎;Perform an internal search on the preset index database according to the search keyword, obtain the internal search result, and send the search request carrying the search keyword to the external search engine;

接收外部搜索引擎反馈的外部检索结果;Receive external search results fed back by external search engines;

获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果。Obtain the user history record corresponding to the retrieval request, and sort the internal retrieval result and the external retrieval result according to the retrieval keyword, the user history record and the preset business ranking information, and obtain the target retrieval result.

上述数据搜索存储介质,接收携带检索关键字的检索请求,根据检索关键字对预设索引数据库进行内部检索,利用内部检索得到内部检索结果,使得内部索引数据只在内部进行检索和流转,保证了内部索引数据的安全性,同时利用携带检索关键字的检索请求向外部搜索引擎获取外部检索结果,将内部检索结果和外部检索结果同时搜索出来,获取与检索请求对应的用户历史记录,根据检索关键字、用户历史记录以及预设的业务排序信息对内部检索结果和外部检索结果进行排序,得到目标检索结果,整个过程,通过检索结果内部和外部互通进行检索结果输出,由于内部索引数据和外部索引数据都在各自的索引数据库中进行存储,且分别在内部数据库和外部数据库中进行检索,内部索引数据和外部索引数据都不会落地到不同的索引环境中,因此能够保证索引数据在安全的索引环境中流转,能够提高索引数据的安全性。The above data searches the storage medium, receives the retrieval request carrying the retrieval keyword, performs an internal retrieval on the preset index database according to the retrieval keyword, and uses the internal retrieval to obtain the internal retrieval result, so that the internal index data is only retrieved and circulated internally, ensuring that the internal retrieval is performed. The security of the internal index data, and at the same time, the external search results are obtained from the external search engine using the search request carrying the search keyword, and the internal search results and the external search results are simultaneously searched to obtain the user history corresponding to the search request. According to the search key Words, user history records and preset business sorting information sort the internal search results and external search results to obtain the target search results. The whole process, through the internal and external intercommunication of the search results, outputs the search results. Due to the internal index data and external index The data are stored in their respective index databases and retrieved in the internal and external databases respectively. Neither the internal index data nor the external index data will land in different indexing environments, so it can ensure that the index data is in a safe index. Circulation in the environment can improve the security of index data.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

根据检索关键字对预设索引数据库进行内部检索,得到待筛选检索结果;Perform an internal search on the preset index database according to the search keywords to obtain the search results to be screened;

获取与检索请求对应的用户信息,根据用户信息进行权限等级验证,确定用户权限等级;Obtain the user information corresponding to the retrieval request, verify the authority level according to the user information, and determine the user authority level;

获取待筛选检索结果中各检索结果的等级标识,根据用户权限等级和等级标识对待筛选检索结果进行筛选,得到内部检索结果。Obtain the grade identification of each search result in the search results to be filtered, and filter the search results to be screened according to the user authority level and grade identification to obtain the internal search result.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

发送携带链接认证信息的链接请求至外部搜索引擎;Send a link request carrying link authentication information to an external search engine;

当外部搜索引擎对链接认证信息验证通过时,接收外部搜索引擎反馈的链接成功提示。When the external search engine passes the verification of the link authentication information, a link success message from the external search engine is received.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

根据检索关键字对内部检索结果和外部检索结果进行排序,得到第一排序结果;Sort the internal search results and external search results according to the search keywords to obtain the first sorting result;

根据用户历史记录对第一排序结果进行调整,得到第二排序结果;Adjust the first sorting result according to the user history to obtain the second sorting result;

根据预设业务排序信息对第二排序结果进行调整,得到目标检索结果。The second sorting result is adjusted according to the preset service sorting information to obtain the target search result.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

对检索关键字进行拆分,得到与检索关键字对应的待匹配关键字;Splitting the retrieval keywords to obtain the to-be-matched keywords corresponding to the retrieval keywords;

根据待匹配关键字对内部检索结果和外部检索结果进行匹配,确定内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置;Match the internal search result and the external search result according to the keyword to be matched, and determine the hit keywords of the internal search result and the external search result and the position of each hit keyword;

根据内部检索结果和外部检索结果的命中关键词以及各命中关键词的位置,对内部检索结果和外部检索结果进行排序,得到第一排序结果。According to the hit keywords of the internal search results and the external search results and the positions of the hit keywords, the internal search results and the external search results are sorted to obtain a first sorting result.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

根据用户历史记录确定用户偏好特征,根据用户偏好特征对第一排序结果进行调整,得到第二排序结果。The user preference feature is determined according to the user history record, and the first sorting result is adjusted according to the user preference feature to obtain the second sorting result.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:

获取内部检索结果和外部检索结果携带的搜索标识和业务类型标识,并根据预设业务排序信息确定业务类型优先级;Obtain the search identifier and service type identifier carried by the internal search results and the external search results, and determine the priority of the service type according to the preset service ranking information;

根据业务类型优先级、搜索标识和业务类型标识对第二排序结果进行调整,得到目标检索结果。The second sorting result is adjusted according to the service type priority, the search identifier and the service type identifier to obtain the target retrieval result.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the various embodiments provided in this application may include at least one of non-volatile and volatile memory. The non-volatile memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, and the like. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, the RAM may be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM).

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (10)

1. A method of searching data, the method comprising:
receiving a retrieval request carrying retrieval keywords;
carrying out internal retrieval on a preset index database according to the retrieval key words to obtain internal retrieval results, and sending retrieval requests carrying the retrieval key words to an external search engine;
receiving an external retrieval result fed back by the external search engine;
and acquiring a user history record corresponding to the retrieval request, and sequencing the internal retrieval result and the external retrieval result according to the retrieval key word, the user history record and preset service sequencing information to obtain a target retrieval result.
2. The method according to claim 1, wherein the performing an internal search on the pre-indexed database according to the search key to obtain an internal search result comprises:
carrying out internal retrieval on a preset index database according to the retrieval key words to obtain retrieval results to be screened;
acquiring user information corresponding to the retrieval request, verifying the authority level according to the user information, and determining the authority level of the user;
and obtaining the grade identification of each retrieval result in the retrieval results to be screened, and screening the retrieval results to be screened according to the user permission grade and the grade identification to obtain internal retrieval results.
3. The method according to claim 1, wherein before sending the search request carrying the search key to an external search engine, further comprising:
sending a link request carrying link authentication information to an external search engine;
and when the link authentication information is verified by the external search engine, receiving a link success prompt fed back by the external search engine.
4. The method according to claim 1, wherein the ranking the internal search result and the external search result according to the search keyword, the user history record, and preset service ranking information to obtain a target search result comprises:
sorting the internal retrieval result and the external retrieval result according to the retrieval key word to obtain a first sorting result;
adjusting the first sorting result according to the user history record to obtain a second sorting result;
and adjusting the second sorting result according to preset service sorting information to obtain a target retrieval result.
5. The method according to claim 4, wherein the sorting the internal search result and the external search result according to the search key to obtain a first sorting result comprises:
splitting the search keyword to obtain a keyword to be matched corresponding to the search keyword;
matching the internal retrieval result and the external retrieval result according to the keywords to be matched, and determining hit keywords of the internal retrieval result and the external retrieval result and positions of the hit keywords;
and sequencing the internal retrieval result and the external retrieval result according to the internal retrieval result, the hit keywords of the external retrieval result and the positions of the hit keywords to obtain a first sequencing result.
6. The method of claim 4, wherein adjusting the first ranking result according to the user history record to obtain a second ranking result comprises:
and determining user preference characteristics according to the user history record, and adjusting the first sequencing result according to the user preference characteristics to obtain a second sequencing result.
7. The method of claim 4, wherein the adjusting the second ranking result according to preset service ranking information to obtain a target retrieval result comprises:
acquiring search identifiers and service type identifiers carried by the internal retrieval result and the external retrieval result, and determining service type priority according to preset service sequencing information;
and adjusting the second sequencing result according to the service type priority, the search identifier and the service type identifier to obtain a target retrieval result.
8. A data search apparatus, characterized in that the apparatus comprises:
the first receiving module is used for receiving a retrieval request carrying retrieval keywords;
the retrieval module is used for carrying out internal retrieval on a preset index database according to the retrieval key words to obtain internal retrieval results and sending retrieval requests carrying the retrieval key words to an external search engine;
the second receiving module is used for receiving the external retrieval result fed back by the external search engine;
and the sequencing module is used for acquiring the user history record corresponding to the retrieval request, and sequencing the internal retrieval result and the external retrieval result according to the retrieval key word, the user history record and preset service sequencing information to obtain a target retrieval result.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010603841.7A 2020-06-29 2020-06-29 Data search method, apparatus, computer equipment and storage medium Pending CN111767445A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010603841.7A CN111767445A (en) 2020-06-29 2020-06-29 Data search method, apparatus, computer equipment and storage medium
PCT/CN2020/136045 WO2021115474A1 (en) 2020-06-29 2020-12-14 Data search method, apparatus, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010603841.7A CN111767445A (en) 2020-06-29 2020-06-29 Data search method, apparatus, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111767445A true CN111767445A (en) 2020-10-13

Family

ID=72722928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010603841.7A Pending CN111767445A (en) 2020-06-29 2020-06-29 Data search method, apparatus, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN111767445A (en)
WO (1) WO2021115474A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817910A (en) * 2021-01-29 2021-05-18 贵州惠智电子技术有限责任公司 Multi-mode information tracing system based on information security
WO2021115474A1 (en) * 2020-06-29 2021-06-17 平安科技(深圳)有限公司 Data search method, apparatus, computer device, and storage medium
CN113645348A (en) * 2021-08-09 2021-11-12 上海传英信息技术有限公司 Control method, mobile terminal and storage medium
CN113656679A (en) * 2021-08-27 2021-11-16 支付宝(杭州)信息技术有限公司 User searching method and device
CN114020800A (en) * 2021-11-03 2022-02-08 深圳市高德信通信股份有限公司 A data processing method and device for big data
CN114201497A (en) * 2021-12-17 2022-03-18 建信金融科技有限责任公司 Resource retrieval method, device, electronic device and storage medium
CN114265884A (en) * 2021-12-27 2022-04-01 招银云创信息技术有限公司 Data query method and device, computer equipment and storage medium
CN116304384A (en) * 2023-03-02 2023-06-23 车巴达(苏州)网络科技有限公司 Point-of-interest searching method, device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699440A (en) * 2009-11-24 2010-04-28 中国电信股份有限公司 Service-based retrieving method and service-based retrieving system
CN102033910A (en) * 2010-11-19 2011-04-27 福建富士通信息软件有限公司 Enterprise search engine technology based on multiple data resources
CN102542010A (en) * 2010-12-08 2012-07-04 微软公司 Searching linked content using an external search system
CN103365915A (en) * 2012-04-10 2013-10-23 北京易盟天地信息技术有限公司 Search result ranking method based on search engine and database query system
CN106649302A (en) * 2015-10-28 2017-05-10 腾讯科技(深圳)有限公司 Search sequencing method and device
CN107533561A (en) * 2015-04-16 2018-01-02 微软技术许可有限责任公司 Use enterprise search and the context-sensitive commending contents of common search

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010024116A1 (en) * 2008-08-26 2010-03-04 インターナショナル・ビジネス・マシーンズ・コーポレーション Search device, search method and search program using open search engine
CN106817407A (en) * 2016-12-23 2017-06-09 四川九鼎瑞信软件开发有限公司 A kind of education informations resource supplying method and system
CN108009784B (en) * 2017-06-15 2019-10-25 中工国际工程股份有限公司 A kind of inside and outside collaborative office management system based on project document
CN109885762A (en) * 2019-01-25 2019-06-14 平安科技(深圳)有限公司 Information retrieval method, device, storage medium and computer equipment
CN111767445A (en) * 2020-06-29 2020-10-13 平安科技(深圳)有限公司 Data search method, apparatus, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699440A (en) * 2009-11-24 2010-04-28 中国电信股份有限公司 Service-based retrieving method and service-based retrieving system
CN102033910A (en) * 2010-11-19 2011-04-27 福建富士通信息软件有限公司 Enterprise search engine technology based on multiple data resources
CN102542010A (en) * 2010-12-08 2012-07-04 微软公司 Searching linked content using an external search system
CN103365915A (en) * 2012-04-10 2013-10-23 北京易盟天地信息技术有限公司 Search result ranking method based on search engine and database query system
CN107533561A (en) * 2015-04-16 2018-01-02 微软技术许可有限责任公司 Use enterprise search and the context-sensitive commending contents of common search
CN106649302A (en) * 2015-10-28 2017-05-10 腾讯科技(深圳)有限公司 Search sequencing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姜秀玉: "计算机基础入门与提高", 31 March 2019, 电子科技大学出版社, pages: 432 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021115474A1 (en) * 2020-06-29 2021-06-17 平安科技(深圳)有限公司 Data search method, apparatus, computer device, and storage medium
CN112817910A (en) * 2021-01-29 2021-05-18 贵州惠智电子技术有限责任公司 Multi-mode information tracing system based on information security
CN112817910B (en) * 2021-01-29 2022-11-11 贵州惠智电子技术有限责任公司 Multi-mode information tracing system based on information security
CN113645348A (en) * 2021-08-09 2021-11-12 上海传英信息技术有限公司 Control method, mobile terminal and storage medium
CN113656679A (en) * 2021-08-27 2021-11-16 支付宝(杭州)信息技术有限公司 User searching method and device
CN113656679B (en) * 2021-08-27 2024-03-12 支付宝(杭州)信息技术有限公司 User searching method and device
CN114020800A (en) * 2021-11-03 2022-02-08 深圳市高德信通信股份有限公司 A data processing method and device for big data
CN114201497A (en) * 2021-12-17 2022-03-18 建信金融科技有限责任公司 Resource retrieval method, device, electronic device and storage medium
CN114265884A (en) * 2021-12-27 2022-04-01 招银云创信息技术有限公司 Data query method and device, computer equipment and storage medium
CN116304384A (en) * 2023-03-02 2023-06-23 车巴达(苏州)网络科技有限公司 Point-of-interest searching method, device, computer equipment and storage medium
CN116304384B (en) * 2023-03-02 2023-10-27 车巴达(苏州)网络科技有限公司 Point-of-interest searching method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
WO2021115474A1 (en) 2021-06-17

Similar Documents

Publication Publication Date Title
CN111767445A (en) Data search method, apparatus, computer equipment and storage medium
US10817499B2 (en) Multi-user search system with methodology for personal searching
US11176124B2 (en) Managing a search
JP5575902B2 (en) Information retrieval based on query semantic patterns
WO2020057022A1 (en) Associative recommendation method and apparatus, computer device, and storage medium
US8812493B2 (en) Search results ranking using editing distance and document information
US8478749B2 (en) Method and apparatus for determining relevant search results using a matrix framework
US7984035B2 (en) Context-based document search
US9195744B2 (en) Protecting information in search queries
US9946753B2 (en) Method and system for document indexing and data querying
US20090198676A1 (en) Indexing Documents for Information Retrieval
US10606853B2 (en) Systems and methods for intelligent prospect identification using online resources and neural network processing to classify organizations based on published materials
US7958111B2 (en) Ranking documents
US20160034514A1 (en) Providing search results based on an identified user interest and relevance matching
Reinanda et al. Mining, ranking and recommending entity aspects
CN104217030B (en) A kind of method and apparatus that user's classification is carried out according to server search daily record data
US10747759B2 (en) System and method for conducting a textual data search
CN111324687A (en) Data processing method and device in knowledge base, computer equipment and storage medium
US10789293B2 (en) Automatic search dictionary and user interfaces
US11366814B2 (en) Systems and methods for federated search with dynamic selection and distributed relevance
CN113127596A (en) Full-text retrieval method, system, electronic equipment and storage medium
US20250124076A1 (en) Query Categorization Based on Image Results
CN119271830A (en) Image retrieval method, device, system and medium
CN118585492A (en) Periodical selection method, device, storage medium and computer equipment
TW201502814A (en) System and method for searching information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40032289

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination