[go: up one dir, main page]

CN111125176B - Service data searching method and device, electronic equipment and storage medium - Google Patents

Service data searching method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111125176B
CN111125176B CN201911329348.4A CN201911329348A CN111125176B CN 111125176 B CN111125176 B CN 111125176B CN 201911329348 A CN201911329348 A CN 201911329348A CN 111125176 B CN111125176 B CN 111125176B
Authority
CN
China
Prior art keywords
search
business
service
field
information
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.)
Active
Application number
CN201911329348.4A
Other languages
Chinese (zh)
Other versions
CN111125176A (en
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201911329348.4A priority Critical patent/CN111125176B/en
Publication of CN111125176A publication Critical patent/CN111125176A/en
Application granted granted Critical
Publication of CN111125176B publication Critical patent/CN111125176B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请公开了一种业务数据搜索方法、装置、电子设备和存储介质,涉及搜索引擎领域。具体实现方案为:获取用户搜索信息;根据用户搜索信息和业务索引信息确定搜索结果;其中,业务搜索模块通过如下方式构建:通过业务服务器中通用搜索模块获取业务方的字段配置信息;通过通用搜索模块获取业务方的业务数据;所述字段配置信息和所述业务数据用于将通用搜索模块调整为业务搜索模块。本申请实施例基于通用搜索模块获取各业务方可根据自身业务需求配置字段以及上传的业务数据,以构建业务搜索模块,使业务搜索模块可供不同业务方使用,满足业务方个性化定制需求,进而用户基于业务方部署的业务搜索模块完成精准检索。

This application discloses a business data search method, device, electronic device and storage medium, and relates to the field of search engines. The specific implementation plan is: obtain user search information; determine search results based on user search information and business index information; among them, the business search module is constructed in the following way: obtain the field configuration information of the business party through the general search module in the business server; use general search The module obtains the business data of the business party; the field configuration information and the business data are used to adjust the general search module into a business search module. The embodiment of this application is based on the general search module to obtain the fields that each business party can configure according to their own business needs and the uploaded business data to build a business search module, so that the business search module can be used by different business parties to meet the personalized customization needs of the business party. Then the user completes precise retrieval based on the business search module deployed by the business party.

Description

一种业务数据搜索方法、装置、电子设备和存储介质A business data search method, device, electronic device and storage medium

技术领域Technical field

本申请实施例涉及互联网技术领域,尤其涉及搜索引擎领域,具体涉及了一种业务数据搜索方法、装置、电子设备和存储介质。The embodiments of the present application relate to the field of Internet technology, particularly to the field of search engines, and specifically to a business data search method, device, electronic device and storage medium.

背景技术Background technique

当前互联网大背景下,很多业务方越来越重视与互联网的结合,例如政府部门希望通过互联网落实一系列便民服务和应用。为了让用户快速的找到想要的信息或服务,业务方必须实现对信息服务数据的搜索功能。In the current context of the Internet, many business parties are paying more and more attention to integration with the Internet. For example, government departments hope to implement a series of convenient services and applications through the Internet. In order for users to quickly find the information or services they want, the business party must implement a search function for information service data.

目前,缺乏既能够适应不同业务方的个性化搜索需求,又能避免业务方数据泄露的搜索方案。Currently, there is a lack of search solutions that can not only adapt to the personalized search needs of different business parties, but also avoid business party data leakage.

发明内容Contents of the invention

本申请实施例公开一种业务数据搜索方法、装置、电子设备和存储介质,以达到能够适应不同业务方的个性化搜索需求,同时避免业务方数据泄露的目的。Embodiments of the present application disclose a business data search method, device, electronic device and storage medium, so as to be able to adapt to the personalized search needs of different business parties while avoiding business party data leakage.

第一方面,本申请实施例公开了一种业务数据搜索方法,由业务服务器中的业务搜索模块执行,所述方法包括:In a first aspect, embodiments of the present application disclose a business data search method, which is executed by a business search module in a business server. The method includes:

获取用户搜索信息;Obtain user search information;

根据所述用户搜索信息和业务索引信息确定搜索结果;Determine search results based on the user search information and business index information;

其中,所述业务搜索模块通过如下方式构建:通过所述业务服务器中通用搜索模块中获取业务方的字段配置信息;通过所述通用搜索模块获取业务方的业务数据;所述字段配置信息和所述业务数据用于将所述通用搜索模块调整为所述业务搜索模块。Wherein, the business search module is constructed in the following manner: obtaining the field configuration information of the business party through the general search module in the business server; obtaining the business data of the business party through the general search module; the field configuration information and the The business data is used to adjust the general search module to the business search module.

上述申请中的一个实施例具有如下优点或有益效果:本申请实施例基于通用搜索模块获取各业务方可根据自身业务需求配置字段,及业务方各自上传的业务数据,以构建业务搜索模块,使业务搜索模块可供不同业务方使用,满足业务方个性化定制需求,进而用户基于业务方部署的业务搜索模块完成精准检索。One embodiment in the above-mentioned application has the following advantages or beneficial effects: The embodiment of the present application is based on the general search module to obtain the fields that each business party can configure according to their own business needs, and the business data uploaded by each business party, so as to build a business search module, so that The business search module can be used by different business parties to meet the personalized customization needs of the business party, and then users can complete accurate searches based on the business search module deployed by the business party.

另外,根据本申请上述实施例的业务数据搜索方法,还可以具有如下附加的技术特征:In addition, the business data search method according to the above embodiments of the present application may also have the following additional technical features:

可选的,通过通用搜索模块的初始化接口将获取的字段配置信息写入所述通用搜索模块的字段数据库中;Optionally, write the obtained field configuration information into the field database of the general search module through the initialization interface of the general search module;

通过通用搜索模块的数据处理接口将获取的业务数据写入通用搜索模块的业务数据队列中;Write the acquired business data into the business data queue of the general search module through the data processing interface of the general search module;

通过通用搜索模块的业务管理单元将所述业务数据队列中的业务数据下发至索引单元;Send the business data in the business data queue to the indexing unit through the business management unit of the general search module;

通过所述索引单元从所述字段数据库中获取字段配置信息,并根据获取的字段配置信息和接收的业务数据构建所述业务索引信息。Field configuration information is obtained from the field database through the index unit, and the service index information is constructed according to the obtained field configuration information and the received service data.

上述申请中的一个实施例具有如下优点或有益效果:通过业务管理单元对业务方上传的业务数据进行管理,并将业务数据队列中的业务数据下发至索引单元,便于构建字段和业务数据的索引。One embodiment in the above application has the following advantages or beneficial effects: the business data uploaded by the business party is managed through the business management unit, and the business data in the business data queue is sent to the index unit, which facilitates the construction of fields and business data. index.

可选的,所述字段配置信息包括查询字段和辅助字段;所述辅助字段包括如下至少一项:筛选字段、提权字段、排序字段、聚合字段和标记字段;Optionally, the field configuration information includes query fields and auxiliary fields; the auxiliary fields include at least one of the following: filtering fields, privilege elevating fields, sorting fields, aggregation fields, and marking fields;

根据所述用户搜索词和业务索引信息确定搜索结果,包括:Determining search results based on the user search terms and business index information includes:

根据属于所述查询字段的用户搜索信息和所述业务索引信息确定初步搜索结果;Determine preliminary search results based on user search information belonging to the query field and the business index information;

根据属于所述辅助字段的用户搜索信息对所述初步搜索结果进行处理。The preliminary search results are processed based on user search information belonging to the auxiliary field.

上述申请中的一个实施例具有如下优点或有益效果:基于查询字段可快速找到用户需要的初步搜索结果,而通过辅助字段可实现对初步搜搜结果进行筛选标记,将最相关的搜索结果返回给用户,提升了搜索的准确性。One embodiment in the above application has the following advantages or beneficial effects: the preliminary search results required by the user can be quickly found based on the query field, and the preliminary search results can be filtered and marked through the auxiliary fields, and the most relevant search results can be returned to users, improving search accuracy.

可选的,所述方法还包括:Optionally, the method also includes:

从第三方获取业务搜索模块的资源数据;Obtain resource data of the business search module from a third party;

根据所述业务搜索模块的资源数据,将所述业务搜索模块部署到业务方服务器中。According to the resource data of the business search module, the business search module is deployed to the business server.

上述申请中的一个实施例具有如下优点或有益效果:将业务搜索模块部署在业务方自己的服务器中,避免的业务方数据泄露,保证业务方数据安全。One embodiment in the above application has the following advantages or beneficial effects: the business search module is deployed in the business party's own server to avoid business party data leakage and ensure business party data security.

可选的,根据所述用户搜索信息和业务索引信息确定搜索结果,包括:Optionally, determining search results based on the user search information and business index information includes:

向第三方的查询分析模块发送所述用户搜索信息,用于指示所述查询分析模块对所述用户搜索信息进行分析;Send the user search information to a third-party query analysis module to instruct the query analysis module to analyze the user search information;

根据经分析的用户搜索信息和所述业务索引信息确定搜索结果。上述申请中的一个实施例具有如下优点或有益效果:借助第三方查询分析模块对用户搜索信息进行分析,可实现核心词提取、错别字识别以及黄反识别,进而保证了检索的相关性。Search results are determined based on the analyzed user search information and the business index information. One embodiment in the above application has the following advantages or beneficial effects: using a third-party query analysis module to analyze user search information, core word extraction, typo identification and pornography identification can be achieved, thereby ensuring the relevance of the retrieval.

第二方面,本申请实施例公开了一种业务搜索模块,配置于业务服务器的业务搜索模块中;所述装置包括:In the second aspect, embodiments of the present application disclose a business search module, which is configured in the business search module of the business server; the device includes:

搜索信息获取单元,用于获取用户搜索信息;The search information acquisition unit is used to obtain user search information;

搜索结果确定单元,用于根据所述用户搜索信息和业务索引信息确定搜索结果;A search result determination unit, configured to determine search results based on the user search information and business index information;

其中,所述业务搜索模块通过如下方式构建:通过所述业务服务器中通用搜索模块获取业务方的字段配置信息;通过所述通用搜索模块获取业务方的业务数据;所述字段配置信息和所述业务数据用于将所述通用搜索模块调整为所述业务搜索模块。Wherein, the business search module is constructed in the following manner: obtaining the field configuration information of the business party through the general search module in the business server; obtaining the business data of the business party through the general search module; the field configuration information and the The business data is used to adjust the general search module to the business search module.

第三方面,本申请实施例还提供了一种电子设备,包括:In a third aspect, embodiments of the present application also provide an electronic device, including:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行本申请任意实施例所述的业务数据搜索方法。The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can perform the business data search described in any embodiment of the present application. method.

第四方面,本本申请实施例还提供了一种存储有计算机指令的非瞬时计算机可读存储介质,所述计算机指令用于使所述计算机执行本申请任意实施例所述的业务数据搜索方法。In a fourth aspect, embodiments of the present application also provide a non-transient computer-readable storage medium storing computer instructions, the computer instructions being used to cause the computer to execute the business data search method described in any embodiment of the present application.

上述申请中的一个实施例具有如下优点或有益效果:基于通用搜索模块获取不同的业务方根据自身业务需求配置的字段,同时获取业务方上传的业务数据,并基于各业务方配置的字段和业务数据对应的构建业务索引信息,以便用户搜索,由此保证了业务搜索模块可供不同业务方使用,满足不同业务方的个性化定制需求。而且通过将业务搜索模块部署在业务方自己的服务器中,避免的业务方数据泄露,保证业务方数据安全。One embodiment in the above application has the following advantages or beneficial effects: based on the universal search module, the fields configured by different business parties according to their own business needs are obtained, and the business data uploaded by the business parties are obtained at the same time, and based on the fields and services configured by each business party The business index information is constructed correspondingly to the data for user search, thus ensuring that the business search module can be used by different business parties to meet the personalized customization needs of different business parties. Moreover, by deploying the business search module in the business side's own server, the business side data leakage is avoided and the business side data security is ensured.

上述可选方式所具有的其他效果将在下文中结合具体实施例加以说明。Other effects of the above optional methods will be described below in conjunction with specific embodiments.

附图说明Description of the drawings

附图用于更好地理解本方案,不构成对本申请的限定。其中:The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application. in:

图1是根据本申请实施例的业务数据搜索方法的流程示意图;Figure 1 is a schematic flow chart of a business data search method according to an embodiment of the present application;

图2是根据本申请实施例的业务数据搜索方法的流程示意图;Figure 2 is a schematic flow chart of a business data search method according to an embodiment of the present application;

图3a是根据本申请实施例的业务数据搜索方法的流程示意图;Figure 3a is a schematic flow chart of a business data search method according to an embodiment of the present application;

图3b是根据本申请实施例的业务搜索模块部署示意图;Figure 3b is a schematic diagram of the deployment of a business search module according to an embodiment of the present application;

图4是根据本申请实施例的业务搜索模块的结构示意图;Figure 4 is a schematic structural diagram of a business search module according to an embodiment of the present application;

图5是用来实现本申请实施例的业务数据搜索方法的电子设备的框图。Figure 5 is a block diagram of an electronic device used to implement the business data search method according to the embodiment of the present application.

具体实施方式Detailed ways

以下结合附图对本申请的示范性实施例做出说明,其中包括本申请实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本申请的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and they should be considered to be exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the application. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

图1是本申请实施例的业务数据搜索方法的流程示意图,本实施例可适用于非专业搜索的业务,例如应用、办事服务类APP或小程序的内部搜索,各类网站的站内搜索等。该方法可由一种业务搜索模块来执行,该装置采用软件和/或硬件的方式实现,优选是配置于电子设备中,例如服务器或计算机设备。如图1所示,该方法具体包括如下:Figure 1 is a schematic flowchart of a business data search method according to an embodiment of the present application. This embodiment can be applied to non-professional search services, such as internal search of applications, service APPs or mini-programs, in-site search of various websites, etc. The method can be executed by a service search module, which is implemented in software and/or hardware, and is preferably configured in an electronic device, such as a server or computer device. As shown in Figure 1, the method specifically includes the following:

S101、获取用户搜索信息。S101. Obtain user search information.

可选的,在前端为用户提供搜索框控件,用户可通过在搜索框中输入想要查询的搜索信息。在输入搜索信息时,可选的,通过文字的形式输入或者以语音的形式输入。在此需要说明的是,若用户输入的是语音搜索信息,可先进行语音识别,得到文字搜索信息,然后在进行搜索操作。Optionally, provide the user with a search box control on the front end, and the user can enter the search information they want to query in the search box. When entering search information, you can optionally enter it in text or voice. It should be noted here that if the user inputs voice search information, voice recognition can be performed first to obtain the text search information, and then the search operation can be performed.

S102、根据所述用户搜索信息和业务索引信息确定搜索结果。S102. Determine search results according to the user search information and business index information.

其中,所述业务搜索模块通过如下方式构建:Among them, the business search module is constructed in the following way:

S1.通过业务服务器中通用搜索模块获取业务方的字段配置信息。S1. Obtain the field configuration information of the business party through the general search module in the business server.

在基于通用搜索模块构建业务搜索模块的初始阶段,通用搜索模块获取各业务方可根据自身的业务需求在接口文档中配置相应的字段,可选的,字段包括通用查询字段和自定义字段,其中通用查询字段示例性的为“gid”,对应“文档id”,又如字段“title”,对应“主标题”。在此需要说明的是,在初始阶段业务方可根据自身的业务需求在接口文档中配置相应的字段,由此保证了构建的业务搜索模块可供不同业务方使用,满足业务方个性化定制需求。在业务方配置完字段后,基于通用搜索模块中的初始化接口可从接口文档中获取业务方的字段配置信息。In the initial stage of building a business search module based on the general search module, the general search module obtains that each business party can configure corresponding fields in the interface document according to its own business needs. Optional fields include general query fields and custom fields, where An example of the general query field is "gid", which corresponds to the "document id", and the field "title", which corresponds to the "main title". It should be noted here that in the initial stage, business parties can configure corresponding fields in the interface document according to their own business needs, thus ensuring that the built business search module can be used by different business parties and meet the personalized customization needs of business parties. . After the business party configures the fields, the business party's field configuration information can be obtained from the interface document based on the initialization interface in the universal search module.

进一步的,业务搜索模块还包括字段数据库,示例性的,字段数据库为redis,因此还可通过通用搜索模块的初始化接口将获取的字段配置信息写入通用搜索模块的字段数据库中。Furthermore, the business search module also includes a field database. For example, the field database is redis. Therefore, the obtained field configuration information can also be written into the field database of the general search module through the initialization interface of the general search module.

S2.通过通用搜索模块的获取业务方的业务数据。S2. Obtain the business data of the business party through the general search module.

可选的,通用搜索模块中还包括数据处理接口,因此可通过数据处理接口可获取业务方提交、修改或删除的业务数据。进一步的,通用搜索模块还包括业务数据队列(例如kafka),因此可通过数据处理接口将获取的业务数据写入通用搜索模块的业务数据队列中。Optionally, the general search module also includes a data processing interface, so the business data submitted, modified or deleted by the business party can be obtained through the data processing interface. Furthermore, the general search module also includes a business data queue (such as kafka), so the acquired business data can be written into the business data queue of the general search module through the data processing interface.

S3.所述字段配置信息和所述业务数据用于将所述通用搜索模块调整为所述业务搜索模块。S3. The field configuration information and the service data are used to adjust the general search module to the service search module.

要将通用搜索模块调整为业务搜索模块,首先需要构建所述字段配置信息和所述业务数据之间的索引,而为了快速构建业务索引信息,在通用搜索模块中还包括业务管理单元,通过业务管理单元可将业务数据队列中的业务数据下发至通用搜索模块的索引单元;通过索引单元从字段数据库中获取字段配置信息,并根据获取的字段配置信息和业务数据构建业务索引信息,例如通过倒排索引的方式构建业务索引信息,在构建完业务索引信息后,将所述通用搜索模块调整为所述业务搜索模块。To adjust the general search module to a business search module, you first need to build an index between the field configuration information and the business data. In order to quickly build business index information, the general search module also includes a business management unit, through the business The management unit can deliver the business data in the business data queue to the index unit of the general search module; obtain field configuration information from the field database through the index unit, and construct business index information based on the obtained field configuration information and business data, for example, through The business index information is constructed in an inverted index manner. After the business index information is constructed, the general search module is adjusted to the business search module.

进一步的,在构建好业务索引信息的基础上,构建好的业务搜索模块提供了两种搜索方式,query检索(即搜索词检索)和sug检索(即地点检索输入提示服务)。在利用query检索方式搜索时,获取到用户搜索信息后,将用户搜索信息与配置的字段信息进行匹配,找到与用户搜索信息相关的目标字段,进而根据业务索引信息,确定与目标字段对应的业务数据作为搜索结果。在利用sug检索方式时,根据获取的用户搜索信息在预先缓存的sug词表中查询建议词,根据建议词在缓存系统预先缓存(例如memcache)的内容里进行搜索,其中sug词表中的词可选的从用户搜索信息中挖掘。Furthermore, based on the well-constructed business index information, the well-constructed business search module provides two search methods, query retrieval (i.e., search word retrieval) and sug retrieval (i.e., location retrieval input prompt service). When searching using the query retrieval method, after obtaining the user search information, match the user search information with the configured field information to find the target field related to the user search information, and then determine the business corresponding to the target field based on the business index information. Data as search results. When using the sug retrieval method, the suggested words are queried in the pre-cached sug vocabulary based on the obtained user search information, and the content pre-cached by the cache system (such as memcache) is searched based on the suggested words. Among them, the words in the sug vocabulary are Optionally mine from user search information.

本申请实施例中,基于通用搜索模块获取各业务方可根据自身业务需求配置字段,及业务方各自上传的业务数据,以构建业务搜索模块,使业务搜索模块可供不同业务方使用,满足业务方个性化定制需求,进而用户基于业务方部署的业务搜索模块完成精准检索。In the embodiment of this application, based on the universal search module, the fields that each business party can configure according to their own business needs and the business data uploaded by each business party are obtained to build a business search module, so that the business search module can be used by different business parties to meet the needs of the business. According to the party's personalized customization needs, the user can then complete precise retrieval based on the business search module deployed by the business party.

图2是本申请实施例提供的业务数据搜索方法的流程示意图,本实施例是在上述实施例的基础上进行优化,在本实施例中,通过初始化接口获取到的业务方的字段配置信息包括查询字段和辅助字段(即自定义字段)。Figure 2 is a schematic flow chart of the business data search method provided by the embodiment of the present application. This embodiment is optimized based on the above embodiment. In this embodiment, the field configuration information of the business party obtained through the initialization interface includes Query fields and auxiliary fields (i.e. custom fields).

参见图2,该方法具体包括:Referring to Figure 2, the method specifically includes:

S201、获取用户搜索信息。S201. Obtain user search information.

S202、根据属于所述查询字段的用户搜索信息和所述业务索引信息确定初步搜索结果。S202. Determine preliminary search results based on user search information belonging to the query field and the business index information.

可选的,将用户搜索信息与查询字段进行匹配,确定用户搜索信息与各查询字段进行之间相关性,进而根据相关性确定用户搜索信息所属的目标查询字段,进而基于业务索引信息,确定与目标查询字段相关联的业务数据作为初步搜索结果。Optionally, match the user search information with the query fields, determine the correlation between the user search information and each query field, and then determine the target query field to which the user search information belongs based on the correlation, and then determine based on the business index information. The business data associated with the target query field is used as preliminary search results.

S203、根据属于所述辅助字段的用户搜索信息对所述初步搜索结果进行处理。S203. Process the preliminary search results according to the user search information belonging to the auxiliary field.

本申请实施例中,辅助字段包括如下至少一项:筛选字段、提权字段、排序字段、聚合字段和标记字段。其中,筛选字段用于筛选初步搜索结果,例如,筛选字段为同级的行政区划的名称,则可按照不同的行政区划筛选初步搜索结果;提权字段用于搜索结果进行排序,例如初步搜索结果中,有一个搜索结果中包括提权字段,可将该搜索结果排在首位;排序字段用于对搜索结构进行排序;聚合字段用于将类似的搜索结合进行合并;标记字段用于对搜索结果中的部分字段内容进行标记,例如进行高亮显示。In this embodiment of the present application, the auxiliary fields include at least one of the following: filtering fields, privilege elevating fields, sorting fields, aggregation fields, and marking fields. Among them, the filter field is used to filter preliminary search results. For example, if the filter field is the name of an administrative division at the same level, the preliminary search results can be filtered according to different administrative divisions; the rights elevating field is used to sort the search results, such as the preliminary search results. , one search result includes an elevating field to rank the search result first; a sorting field is used to sort the search structure; an aggregation field is used to combine similar searches; and a tag field is used to rank the search results Mark some fields in the field, for example, highlight them.

将用户搜索信息与辅助字段进行相关性计算,确定用户搜索信息所属的目标辅助字段,基于目标辅助字段对初选结果进行处理,以得到最终的搜索结果。Calculate the correlation between the user search information and the auxiliary fields, determine the target auxiliary field to which the user search information belongs, and process the preliminary results based on the target auxiliary fields to obtain the final search results.

本申请实施例中,基于查询字段可快速找到用户需要的初步搜索结果,而通过辅助字段可实现对初步搜搜结果进行筛选标记,将最相关的搜索结果返回给用户,提升了搜索的准确性。In the embodiment of this application, the preliminary search results needed by the user can be quickly found based on the query field, and the preliminary search results can be filtered and marked through the auxiliary fields, and the most relevant search results are returned to the user, improving the accuracy of the search. .

图3a是本申请实施例提供的业务数据搜索方法的流程示意图,本申请实施例是在上述实施例的基础上进行优化,参见图3a,该方法具体包括:Figure 3a is a schematic flow chart of the business data search method provided by the embodiment of the present application. The embodiment of the present application is optimized on the basis of the above embodiment. See Figure 3a. The method specifically includes:

S301、获取用户搜索信息。S301. Obtain user search information.

S302、向第三方的查询分析模块发送所述用户搜索信息,用于指示所述查询分析模块对所述用户搜索信息进行分析。S302. Send the user search information to a third-party query analysis module to instruct the query analysis module to analyze the user search information.

其中,第三方的查询分析模块可以为现有搜索引擎提供的query分析模块,在对索引库进行搜索得到搜索结果之前,先将用户搜索信息发送到第三方的查询分析模块,指示查询分析模块对所述用户搜索信息进行分析,例如,对用户搜索信息里进行黄反识别、特征词提取、纠错等处理等,得到更加准确的搜索词,以提升搜索的相关性。Among them, the third-party query analysis module can be the query analysis module provided by the existing search engine. Before searching the index database to obtain the search results, the user search information is first sent to the third-party query analysis module, instructing the query analysis module to The user search information is analyzed, for example, pornographic identification, feature word extraction, error correction, etc. are performed on the user search information to obtain more accurate search terms to improve the relevance of the search.

S303、根据经分析的用户搜索信息和所述业务索引信息确定搜索结果。S303. Determine search results based on the analyzed user search information and the business index information.

利用经分析的用户搜索信息和业务索引信息确定搜索结果,具体的搜索过程参见上述说明,在此不再赘述。The analyzed user search information and business index information are used to determine the search results. For the specific search process, please refer to the above description and will not be repeated here.

本申请实施例中,将业务搜索模块部署在业务方自己的服务器上,避免了数据泄露,保证了数据安全,同时,在对索引库进行搜索得到搜索结果之前,利用第三方查询分析模块分析用户搜索信息,进而利用分析后的用户搜索信息进行查询,可以保证搜索结果的相关性及准确性。In the embodiment of this application, the business search module is deployed on the business party's own server to avoid data leakage and ensure data security. At the same time, before searching the index database to obtain the search results, a third-party query analysis module is used to analyze the user Search information, and then use the analyzed user search information to query, can ensure the relevance and accuracy of search results.

在此需要说明的,上述各实施例中的业务搜索模块的部署操作如下:从第三方获取业务搜索模块的资源数据;根据业务搜索模块的资源数据,将业务搜索模块部署到业务方服务器中,由于业务搜索模块部署在业务方自己的服务器上,避免的数据泄露,保证了数据安全。It should be noted here that the deployment operations of the business search module in the above embodiments are as follows: obtain the resource data of the business search module from a third party; deploy the business search module to the business server according to the resource data of the business search module, Since the business search module is deployed on the business party's own server, data leakage is avoided and data security is ensured.

参见图3b,其示出了业务搜索模块部署示意图。在部署时,可选的通过第三方打包下载服务获取业务搜索模块的资源数据,并部署在业务方服务器,业务搜索模块包括3层,分别为API层、在线服务层、离线服务层,其中API层包括初始化接口(init)、数据处理接口(entry)、搜索接口(例如普通的search检索接口、sug检索接口)。Refer to Figure 3b, which shows a schematic diagram of the deployment of the service search module. During deployment, you can optionally obtain the resource data of the business search module through a third-party package download service and deploy it on the business server. The business search module includes three layers, namely the API layer, the online service layer, and the offline service layer. The API The layer includes initialization interface (init), data processing interface (entry), and search interface (such as ordinary search retrieval interface, sug retrieval interface).

在初始化阶段,通过初始化接口完成初始化配置,并将初始配置信息写入配置信息库(conf),例如将业务方在初始化阶段配置的查询字段和辅助字段通过该接口写入配置信息库;在提交建库时,通过数据处理接口获取业务方上传的业务数据,并将业务数据下发到业务数据队列(kafka),业务管理单元(build-index)将业务数据队列中的业务数据下发至索引单元(ES索引库),索引单元根据初始阶段配置的字段配置信息和业务数据构建业务索引信息。在搜索时,可通过search检索接口进行普通的检索词搜索(query检索),或通过sug检索接口进行sug检索。在通过search检索接口搜索时,若预先部署了缓存系统(memcache)并缓存有数据,可将用户搜索信息先在缓存系统里搜索,如果没搜索到在从ES索引库中查询,而通过sug检索接口搜索时,直接从缓存系统里检索。在进行检索过程中,可将用户输入的搜索词加入到预先建立的query词表或sug词表,进一步的,在离线服务层,还可以从query词表中挖掘词组添加到sug词表中。除此之外,在搜索过程中,还会对搜索才进行query分析,可选的,通过第三方提供的查询分析模块(queryparser)进行分析。In the initialization phase, the initial configuration is completed through the initialization interface, and the initial configuration information is written into the configuration information database (conf). For example, the query fields and auxiliary fields configured by the business party in the initialization phase are written into the configuration information database through this interface; after submitting When building the database, the business data uploaded by the business party is obtained through the data processing interface, and the business data is delivered to the business data queue (kafka). The business management unit (build-index) delivers the business data in the business data queue to the index. Unit (ES index library), the index unit builds business index information based on the field configuration information and business data configured in the initial stage. When searching, you can perform ordinary search terms (query search) through the search retrieval interface, or perform sug retrieval through the sug retrieval interface. When searching through the search retrieval interface, if the cache system (memcache) is pre-deployed and has data cached, the user search information can be searched in the cache system first. If it is not found, it can be queried from the ES index library and retrieved through sug. When searching through the interface, it is retrieved directly from the cache system. During the retrieval process, the search terms entered by the user can be added to the pre-established query vocabulary or sug vocabulary. Furthermore, in the offline service layer, phrases can be mined from the query vocabulary and added to the sug vocabulary. In addition, during the search process, query analysis will also be performed on the search results, optionally through the query analysis module (queryparser) provided by a third party.

图4是本申请实施例提供的业务搜索模块的结构示意图,业务搜索模块用于执行上述实施例提供的业务数据搜索方法,参见图4,业务搜索模块包括:Figure 4 is a schematic structural diagram of a business search module provided by an embodiment of the present application. The business search module is used to execute the business data search method provided by the above embodiment. Referring to Figure 4, the business search module includes:

搜索信息获取单元401,用于获取用户搜索信息;Search information acquisition unit 401, used to acquire user search information;

搜索结果确定单元402,用于根据所述用户搜索信息和业务索引信息确定搜索结果;Search result determination unit 402, configured to determine search results according to the user search information and business index information;

其中,所述业务搜索模块通过如下方式构建:通过所述业务服务器中通用搜索模块获取业务方的字段配置信息;通过所述通用搜索模块获取业务方的业务数据;所述字段配置信息和所述业务数据用于将所述通用搜索模块调整为所述业务搜索模块。Wherein, the business search module is constructed in the following manner: obtaining the field configuration information of the business party through the general search module in the business server; obtaining the business data of the business party through the general search module; the field configuration information and the The business data is used to adjust the general search module to the business search module.

可选的,所述业务搜索模块具体通过如下方式构建:Optionally, the business search module is specifically constructed in the following manner:

通过通用搜索模块的初始化接口将获取的字段配置信息写入所述通用搜索模块的字段数据库中;Write the obtained field configuration information into the field database of the general search module through the initialization interface of the general search module;

通过通用搜索模块的数据处理接口将获取的业务数据写入通用搜索模块的业务数据队列中;Write the acquired business data into the business data queue of the general search module through the data processing interface of the general search module;

通过通用搜索模块的业务管理单元将所述业务数据队列中的业务数据下发至所述索引单元;Deliver the business data in the business data queue to the indexing unit through the business management unit of the general search module;

通过所述索引单元从所述字段数据库中获取字段配置信息,并根据获取的字段配置信息和接收的业务数据构建所述业务索引信息。Field configuration information is obtained from the field database through the index unit, and the service index information is constructed according to the obtained field configuration information and the received service data.

可选的,所述字段配置信息包括查询字段和辅助字段;所述辅助字段包括如下至少一项:筛选字段、提权字段、排序字段、聚合字段和标记字段;Optionally, the field configuration information includes query fields and auxiliary fields; the auxiliary fields include at least one of the following: filtering fields, privilege elevating fields, sorting fields, aggregation fields, and marking fields;

相应的,所述搜索结果确定单元具体用于:Correspondingly, the search result determination unit is specifically used to:

根据属于所述查询字段的用户搜索信息和所述业务索引信息确定初步搜索结果;Determine preliminary search results based on user search information belonging to the query field and the business index information;

根据属于所述辅助字段的用户搜索信息对所述初步搜索结果进行处理。The preliminary search results are processed based on user search information belonging to the auxiliary field.

可选的,所述业务搜索模块还用于:Optionally, the business search module is also used to:

从第三方获取业务搜索模块的资源数据;Obtain resource data of the business search module from a third party;

根据所述业务搜索模块的资源数据将所述业务搜索模块部署到业务方服务器中。Deploy the business search module to the business server according to the resource data of the business search module.

可选的,所述装置还包括:Optionally, the device also includes:

资源获取模块,用于从第三方获取业务搜索模块的资源数据;The resource acquisition module is used to obtain resource data of the business search module from a third party;

部署模块,用于根据所述业务搜索模块的资源数据,将所述业务搜索模块部署到业务方服务器中。A deployment module, configured to deploy the business search module to the business server according to the resource data of the business search module.

本申请实施例所提供的业务搜索模块可执行本申请任意实施例所提供的业务数据搜索方法,具备执行方法相应的功能模块和有益效果。本实施例中未详尽描述的内容可以参考本申请任意方法实施例中的描述。The business search module provided by the embodiments of this application can execute the business data search method provided by any embodiment of this application, and has functional modules and beneficial effects corresponding to the execution method. For content that is not described in detail in this embodiment, please refer to the description in any method embodiment of this application.

根据本申请的实施例,本申请还提供了一种电子设备和一种可读存储介质。According to embodiments of the present application, the present application also provides an electronic device and a readable storage medium.

如图5所示,是根据本申请实施例的业务数据搜索方法的电子设备的框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本申请的实现。As shown in Figure 5, it is a block diagram of an electronic device according to the business data search method according to the embodiment of the present application. Electronic devices are intended to refer to various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are examples only and are not intended to limit the implementation of the present application as described and/or claimed herein.

如图5所示,该电子设备包括:一个或多个处理器501、存储器502,以及用于连接各部件的接口,包括高速接口和低速接口。各个部件利用不同的总线互相连接,并且可以被安装在公共主板上或者根据需要以其它方式安装。处理器可以对在电子设备内执行的指令进行处理,包括存储在存储器中或者存储器上以在外部输入/输出装置(诸如,耦合至接口的显示设备)上显示GUI的图形信息的指令。在其它实施方式中,若需要,可以将多个处理器和/或多条总线与多个存储器和多个存储器一起使用。同样,可以连接多个电子设备,各个设备提供部分必要的操作(例如,作为服务器阵列、一组刀片式服务器、或者多处理器系统)。图5中以一个处理器501为例。As shown in Figure 5, the electronic device includes: one or more processors 501, memory 502, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses and can be mounted on a common motherboard or otherwise mounted as desired. The processor may process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used with multiple memories and multiple memories, if desired. Likewise, multiple electronic devices can be connected, each device providing part of the necessary operation (eg, as a server array, a set of blade servers, or a multi-processor system). In Figure 5, a processor 501 is taken as an example.

存储器502即为本申请所提供的非瞬时计算机可读存储介质。其中,所述存储器存储有可由至少一个处理器执行的指令,以使所述至少一个处理器执行本申请所提供的业务数据搜索方法。本申请的非瞬时计算机可读存储介质存储计算机指令,该计算机指令用于使计算机执行本申请所提供的业务数据搜索方法。The memory 502 is the non-transitory computer-readable storage medium provided by this application. The memory stores instructions executable by at least one processor, so that the at least one processor executes the business data search method provided by this application. The non-transitory computer-readable storage medium of this application stores computer instructions, which are used to cause the computer to execute the business data search method provided by this application.

存储器502作为一种非瞬时计算机可读存储介质,可用于存储非瞬时软件程序、非瞬时计算机可执行程序以及模块,如本申请实施例中的业务数据搜索方法对应的程序指令/模块(例如,附图4所示的搜索信息获取单元401、搜索结果确定单元402)。处理器501通过运行存储在存储器502中的非瞬时软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例中的业务数据搜索方法。As a non-transitory computer-readable storage medium, the memory 502 can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions/modules corresponding to the business data search method in the embodiment of the present application (for example, The search information acquisition unit 401 and the search result determination unit 402 shown in Figure 4). The processor 501 executes various functional applications and data processing of the server by running non-transient software programs, instructions and modules stored in the memory 502, that is, implementing the business data search method in the above method embodiment.

存储器502可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据实现业务数据搜索方法电子设备的使用所创建的数据等。此外,存储器502可以包括高速随机存取存储器,还可以包括非瞬时存储器,例如至少一个磁盘存储器件、闪存器件、或其他非瞬时固态存储器件。在一些实施例中,存储器502可选包括相对于处理器501远程设置的存储器,这些远程存储器可以通过网络连接至实现业务数据搜索方法的电子设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 502 may include a stored program area and a stored data area, wherein the stored program area may store an operating system and an application program required for at least one function; the stored data area may store data created according to the use of the electronic device to implement the business data search method. wait. In addition, memory 502 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 502 optionally includes memories remotely located relative to the processor 501, and these remote memories can be connected to electronic devices that implement the business data search method through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.

实现业务数据搜索方法的电子设备还可以包括:输入装置503和输出装置504。处理器501、存储器502、输入装置503和输出装置504可以通过总线或者其他方式连接,图5中以通过总线连接为例。The electronic device that implements the business data search method may also include: an input device 503 and an output device 504. The processor 501, the memory 502, the input device 503 and the output device 504 can be connected through a bus or other means. In Figure 5, connection through a bus is taken as an example.

输入装置503可接收输入的数字或字符信息,以及产生与实现业务数据搜索方法电子设备的用户设置以及功能控制有关的键信号输入,例如触摸屏、小键盘、鼠标、轨迹板、触摸板、指示杆、一个或者多个鼠标按钮、轨迹球、操纵杆等输入装置。输出装置504可以包括显示设备、辅助照明装置(例如,LED)和触觉反馈装置(例如,振动电机)等。该显示设备可以包括但不限于,液晶显示器(LCD)、发光二极管(LED)显示器和等离子体显示器。在一些实施方式中,显示设备可以是触摸屏。The input device 503 can receive input numeric or character information, and generate key signal input related to user settings and function control of electronic devices that implement the business data search method, such as touch screens, keypads, mice, trackpads, touchpads, and pointing sticks. , one or more input devices such as mouse buttons, trackballs, and joysticks. Output devices 504 may include display devices, auxiliary lighting devices (eg, LEDs), tactile feedback devices (eg, vibration motors), and the like. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.

此处描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、专用ASIC(专用集成电路)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein may be implemented in digital electronic circuitry, integrated circuit systems, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include implementation in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor The processor, which may be a special purpose or general purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device. An output device.

这些计算程序(也称作程序、软件、软件应用、或者代码)包括可编程处理器的机器指令,并且可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。如本文使用的,术语“机器可读介质”和“计算机可读介质”指的是用于将机器指令和/或数据提供给可编程处理器的任何计算机程序产品、设备、和/或装置(例如,磁盘、光盘、存储器、可编程逻辑装置(PLD)),包括,接收作为机器可读信号的机器指令的机器可读介质。术语“机器可读信号”指的是用于将机器指令和/或数据提供给可编程处理器的任何信号。These computing programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine language Calculation program. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or means for providing machine instructions and/or data to a programmable processor ( For example, magnetic disks, optical disks, memories, programmable logic devices (PLD)), including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and may be provided in any form, including Acoustic input, voice input or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)、互联网和区块链网络。The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., A user's computer having a graphical user interface or web browser through which the user can interact with implementations of the systems and technologies described herein), or including such backend components, middleware components, or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communications network). Examples of communication networks include: local area network (LAN), wide area network (WAN), the Internet, and blockchain networks.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。Computer systems may include clients and servers. Clients and servers are generally remote from each other and typically interact over a communications network. The relationship of client and server is created by computer programs running on corresponding computers and having a client-server relationship with each other.

根据本申请实施例的技术方案,基于通用搜索模块获取不同的业务方根据自身业务需求配置的字段,同时获取业务方上传的业务数据,并基于各业务方配置的字段和业务数据对应的构建业务索引信息,以便用户搜索,由此保证了业务搜索模块可供不同业务方使用,满足不同业务方的个性化定制需求。而且通过将业务搜索模块部署在业务方自己的服务器中,避免的业务方数据泄露,保证业务方数据安全。According to the technical solution of the embodiment of this application, the fields configured by different business parties according to their own business needs are obtained based on the universal search module, and the business data uploaded by the business parties are obtained at the same time, and the business is constructed based on the fields configured by each business party and the business data. Index information to facilitate user search, thus ensuring that the business search module can be used by different business parties to meet the personalized customization needs of different business parties. Moreover, by deploying the business search module in the business side's own server, the business side data leakage is avoided and the business side data security is ensured.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发申请中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that various forms of the process shown above may be used, with steps reordered, added or deleted. For example, each step described in the present application can be executed in parallel, sequentially, or in a different order. As long as the desired results of the technical solution disclosed in the present application can be achieved, there is no limitation here.

上述具体实施方式,并不构成对本申请保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本申请的精神和原则之内所作的修改、等同替换和改进等,均应包含在本申请保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the scope of protection of the present application. It will be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions are possible depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application shall be included in the protection scope of this application.

Claims (8)

1. A service data searching method, characterized in that it is executed by a service searching module in a service server; the method comprises the following steps:
acquiring user search information;
determining a search result according to the user search information and the service index information;
the service searching module is constructed in the following manner: acquiring field configuration information of a service party through a universal search module in the service server; the field configuration information comprises that each service party configures corresponding fields in an interface document according to own service requirements; acquiring service data of a service party through the universal search module; wherein, the business data is data submitted or modified by a business party; the field configuration information and the service data are used for adjusting the general search module to the service search module;
wherein the method further comprises:
writing the acquired field configuration information into a field database of the universal search module through an initialization interface of the universal search module;
writing the acquired service data into a service data queue of the universal search module through a data processing interface of the universal search module;
the service data in the service data queue is issued to an index unit through a service management unit of a general search module;
acquiring field configuration information from the field database through the index unit, and constructing service index information according to the acquired field configuration information and the received service data;
the field configuration information comprises a query field and an auxiliary field; the auxiliary field includes at least one of: screening field, right-raising field, sorting field, aggregation field and marking field;
determining search results according to the user search word and the business index information, including:
determining a preliminary search result according to the user search information belonging to the query field and the service index information;
processing the preliminary search results according to the user search information belonging to the auxiliary field;
wherein determining preliminary search results according to the user search information belonging to the query field and the business index information comprises: matching the user search information with the query fields, and determining the correlation between the user search information and each query field; determining a target query field to which the user search information belongs according to the correlation; determining service data associated with the target query field as a preliminary search result based on the service index information;
processing the preliminary search results according to the user search information belonging to the auxiliary field, including: performing correlation calculation on the user search information and the auxiliary field, and determining a target auxiliary field to which the user search information belongs; and processing the primary selection result based on the target auxiliary field to obtain a final search result.
2. The method according to claim 1, wherein the method further comprises:
acquiring resource data of a service search module from a third party;
and deploying the service searching module into a service side server according to the resource data of the service searching module.
3. The method of claim 1, wherein determining search results based on the user search information and business index information comprises:
the user search information is sent to a query analysis module of a third party and used for indicating the query analysis module to analyze the user search information;
and determining search results according to the analyzed user search information and the business index information.
4. The service searching device is characterized by being configured in a service searching module of a service server; the device comprises:
a search information acquisition unit configured to acquire user search information;
a search result determining unit for determining a search result according to the user search information and the service index information;
the service searching module is constructed in the following manner: acquiring field configuration information of a service party through a universal search module in the service server; the field configuration information comprises that each service party configures corresponding fields in an interface document according to own service requirements; acquiring service data of a service party through the universal search module, wherein the service data is submitted or modified by the service party; the field configuration information and the service data are used for adjusting the general search module to the service search module;
the service searching module is specifically constructed in the following manner:
writing the acquired field configuration information into a field database of the universal search module through an initialization interface of the universal search module;
writing the acquired service data into a service data queue of the universal search module through a data processing interface of the universal search module;
the service data in the service data queue is issued to an index unit through a service management unit of a general search module;
acquiring field configuration information from the field database through the index unit, and constructing service index information according to the acquired field configuration information and the received service data;
the field configuration information comprises a query field and an auxiliary field; the auxiliary field includes at least one of: screening field, right-raising field, sorting field, aggregation field and marking field;
the search result determining unit is specifically configured to:
determining a preliminary search result according to the user search information belonging to the query field and the service index information;
processing the preliminary search results according to the user search information belonging to the auxiliary field;
wherein determining preliminary search results according to the user search information belonging to the query field and the business index information comprises: matching the user search information with the query fields, and determining the correlation between the user search information and each query field; determining a target query field to which the user search information belongs according to the correlation; determining service data associated with the target query field as a preliminary search result based on the service index information;
processing the preliminary search results according to the user search information belonging to the auxiliary field, including: performing correlation calculation on the user search information and the auxiliary field, and determining a target auxiliary field to which the user search information belongs; and processing the primary selection result based on the target auxiliary field to obtain a final search result.
5. The apparatus of claim 4, wherein the apparatus further comprises:
the resource acquisition module is used for acquiring resource data of the service search module from a third party;
and the deployment module is used for deploying the service searching module into the service side server according to the resource data of the service searching module.
6. The apparatus of claim 4, wherein the search result determination unit is further configured to:
the user search information is sent to a query analysis module of a third party and used for indicating the query analysis module to analyze the user search information;
and determining search results according to the analyzed user search information and the business index information.
7. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the business data search method of any one of claims 1-3.
8. A non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the business data search method of any one of claims 1-3.
CN201911329348.4A 2019-12-20 2019-12-20 Service data searching method and device, electronic equipment and storage medium Active CN111125176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911329348.4A CN111125176B (en) 2019-12-20 2019-12-20 Service data searching method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911329348.4A CN111125176B (en) 2019-12-20 2019-12-20 Service data searching method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111125176A CN111125176A (en) 2020-05-08
CN111125176B true CN111125176B (en) 2023-10-03

Family

ID=70501010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911329348.4A Active CN111125176B (en) 2019-12-20 2019-12-20 Service data searching method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111125176B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559867B (en) * 2020-12-16 2023-11-03 北京百度网讯科技有限公司 Business content output method, device, equipment, storage medium and program product
CN114676127B (en) * 2020-12-24 2025-09-26 浙江宇视科技有限公司 Method, device, medium and electronic equipment for analyzing server business
CN114691677B (en) * 2020-12-31 2025-02-14 深圳云天励飞技术股份有限公司 Data search method, device, electronic device and storage medium
CN113486035B (en) * 2021-07-07 2024-05-07 苏州达家迎信息技术有限公司 Data record batch processing method and device, storage medium and electronic equipment
CN113704604A (en) * 2021-08-24 2021-11-26 山东库睿科技有限公司 Search system and search method
CN115168421A (en) * 2022-07-04 2022-10-11 中国银行股份有限公司 Data management method and related equipment
CN115344771A (en) * 2022-08-16 2022-11-15 企查查科技有限公司 Method, system and storage medium for realizing dynamic highlighting
CN115905322A (en) * 2022-12-20 2023-04-04 江苏微盛网络科技有限公司 Service processing method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042699A (en) * 2007-04-28 2007-09-26 华中科技大学 Safety search engine system based on accessing control
CN101272524A (en) * 2007-03-23 2008-09-24 中国移动通信集团山东有限公司 Search platform for mobile service rapid discovery and search method thereof
US9262420B1 (en) * 2012-04-23 2016-02-16 Google Inc. Third-party indexable text
CN107066595A (en) * 2017-04-19 2017-08-18 济南浪潮高新科技投资发展有限公司 A kind of many application searches method of servicing of big data and system
CN108681593A (en) * 2018-05-16 2018-10-19 青岛海信移动通信技术股份有限公司 Service data retrieval method and device
CN108874924A (en) * 2018-05-31 2018-11-23 康键信息技术(深圳)有限公司 Creation method, device and the computer readable storage medium of search service
CN109344336A (en) * 2018-12-25 2019-02-15 北京时光荏苒科技有限公司 Searching method, search set creation method, device, medium, terminal and server
CN110110234A (en) * 2019-05-13 2019-08-09 重庆天蓬网络有限公司 A kind of real-time search system of big data and method
CN110188100A (en) * 2019-05-17 2019-08-30 中国银行股份有限公司 Data processing method, device and computer storage medium
CN110489417A (en) * 2019-07-25 2019-11-22 深圳壹账通智能科技有限公司 A kind of data processing method and relevant device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11062129B2 (en) * 2015-12-30 2021-07-13 Veritas Technologies Llc Systems and methods for enabling search services to highlight documents

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272524A (en) * 2007-03-23 2008-09-24 中国移动通信集团山东有限公司 Search platform for mobile service rapid discovery and search method thereof
CN101042699A (en) * 2007-04-28 2007-09-26 华中科技大学 Safety search engine system based on accessing control
US9262420B1 (en) * 2012-04-23 2016-02-16 Google Inc. Third-party indexable text
CN107066595A (en) * 2017-04-19 2017-08-18 济南浪潮高新科技投资发展有限公司 A kind of many application searches method of servicing of big data and system
CN108681593A (en) * 2018-05-16 2018-10-19 青岛海信移动通信技术股份有限公司 Service data retrieval method and device
CN108874924A (en) * 2018-05-31 2018-11-23 康键信息技术(深圳)有限公司 Creation method, device and the computer readable storage medium of search service
CN109344336A (en) * 2018-12-25 2019-02-15 北京时光荏苒科技有限公司 Searching method, search set creation method, device, medium, terminal and server
CN110110234A (en) * 2019-05-13 2019-08-09 重庆天蓬网络有限公司 A kind of real-time search system of big data and method
CN110188100A (en) * 2019-05-17 2019-08-30 中国银行股份有限公司 Data processing method, device and computer storage medium
CN110489417A (en) * 2019-07-25 2019-11-22 深圳壹账通智能科技有限公司 A kind of data processing method and relevant device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
企业多业务垂直搜索引擎框架设计与实现;郑富德;《中国优秀硕士学位论文全文数据库 信息科技辑》;I138-2624页 *

Also Published As

Publication number Publication date
CN111125176A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN111125176B (en) Service data searching method and device, electronic equipment and storage medium
CN111104514B (en) Training method and device for document tag model
JP2021166098A (en) Retrieval word recommendation method and apparatus, target model training method and apparatus, electronic device, storage medium, and program
CN112559870B (en) Multi-model fusion method, device, electronic device and storage medium
US20210118409A1 (en) Rendering method and apparatus, electronic device and storage medium
CN112015468A (en) Interface document processing method and device, electronic equipment and storage medium
EP3832492A1 (en) Method and apparatus for recommending voice packet, electronic device, and storage medium
CN112446728B (en) Advertisement recall method, device, equipment and storage medium
CN111522863A (en) A subject concept mining method, device, device and storage medium
JP7241122B2 (en) Smart response method and device, electronic device, storage medium and computer program
CN112860840A (en) Search processing method, device, equipment and storage medium
CN110633281A (en) Method and device for processing multi-type data sources
CN112328710B (en) Entity information processing method, device, electronic equipment and storage medium
US11080284B2 (en) Hybrid search connector
CN111881255B (en) Synonymous text acquisition method and device, electronic equipment and storage medium
CN111523000B (en) Method, apparatus, device and storage medium for importing data
CN112099647A (en) Application operation method and device, electronic equipment and readable storage medium
CN110555486B (en) Model structure delay prediction method and device and electronic equipment
CN110096501A (en) Data search method, device, medium and electronic equipment based on label
CN111581363A (en) Knowledge extraction method, device, equipment and storage medium
CN113220982A (en) Advertisement searching method, device, electronic equipment and medium
CN112580723B (en) Multi-model fusion method, device, electronic equipment and storage medium
CN111460257B (en) Topic generation method, device, electronic equipment and storage medium
CN111177558B (en) Channel service construction method and device
CN110909390B (en) Task auditing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant