Scenario-based search method and system

Through the scenario-based search method, the dynamic pre-built search phrase builder is used to identify the scene of the search term and construct the search phrase, which solves the problem of flexible search requirements in data processing technology and improves search accuracy and development efficiency.

CN114625935BActive Publication Date: 2024-10-01SHENZHEN SEKORM COMPONENT NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210192786.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2024-10-01
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

In the era of data processing technology, when users actively search, due to the variety of data types and the huge amount of data, it is difficult to accurately extract data related to user searches. In addition, in the face of flexible and changing search needs, data extraction rules need to be adjusted repeatedly.

Method used

Adopting a scenario-based search method, by loading a dynamically pre-built search phrase builder, it receives input search terms, identifies its corresponding scenarios, and extracts and constructs search phrases based on the scenarios, simplifying the description of search requirements, standardizing the construction of search sentences, and accurately Extract relevant data.

Benefits of technology

It realizes flexible and changeable search requirements, avoids developers from repeatedly writing the same code, improves work efficiency and code uniformity, and accurately extracts data related to user searches.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114625935B_ABST
    Figure CN114625935B_ABST
Patent Text Reader

Abstract

The present invention discloses a scenario-based search method and system, which realizes flexible and changeable search requirements by loading a search phrase builder that is dynamically pre-built according to industry data. When an input search term is received, the search phrase builder can be called to identify the scenario corresponding to the search term, extract corresponding scenario search data according to the scenario, and build a search phrase according to the search term and the scenario search data, thereby describing the search requirements in a relatively simple way, standardizing the construction of search statements, accurately extracting data related to user searches, and avoiding developers from writing the same code and repeating work in a project, thereby improving the work efficiency of developers and the uniformity of code.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of search technology, and in particular to a scenario-based search method and system. Background Art

[0002] In today's DT (data processing technology) era of information explosion, people are surrounded by all kinds of information. There are two main ways for people to obtain information: passive acquisition and active acquisition. Passive acquisition is the recommendation method, and active acquisition is the search method. When users actively search, due to the variety of data and the huge amount of data, it is particularly important to accurately extract data related to the user's search. In the process of data extraction, facing the flexible and changeable search needs, the data extraction rules need to be repeatedly adjusted. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a scenario-based search method and system to address at least one defect in the prior art.

[0004] The technical solution adopted by the present invention to solve the technical problem is: constructing a scenario-based search method, comprising the following steps:

[0005] S10: Loading a search phrase builder that is dynamically pre-built based on industry data;

[0006] S20: receiving an input search term;

[0007] S30: calling the search phrase builder to identify the scenario corresponding to the search term;

[0008] S40: extracting corresponding scene search data according to the scene;

[0009] S50: Constructing a search phrase according to the search word and the scene search data.

[0010] Preferably, in the scenario-based search method of the present invention, the search phrase builder stores search scenario words and scenario search data configured according to different industry data;

[0011] After step S20, the following steps are also included:

[0012] S21: Segment the search words to obtain keywords;

[0013] Step S30 includes:

[0014] The search phrase builder is called to read the stored search scenario word-element, and scene recognition is performed on the keyword according to the search scenario word-element to identify the scene corresponding to the search term.

[0015] Preferably, in the scenario-based search method of the present invention, the search scenario word-element includes a scenario code, a name, an alias, a former name and an abbreviation.

[0016] Preferably, in the scenario-based search method described in the present invention, the scenario search data includes search indexes, search dimensions and search methods corresponding to the search scenarios respectively.

[0017] Preferably, in the scenario-based search method described in the present invention, the search dimension is bound to the search scenario in a one-to-one or one-to-many manner.

[0018] Preferably, in the scenario-based search method of the present invention, step S50 comprises: converting the keyword into a search value, and constructing a search phrase according to the search value and the scenario search data.

[0019] Preferably, in the scenario-based search method of the present invention, step S10 includes:

[0020] S101: Introduce search component;

[0021] S102: Initialize the search component and specify a configuration file address; the configuration file includes search scenario words and scenario search data configured according to different industry data;

[0022] S103: Start the search component, load the configuration file, and store the configuration file data in a configuration center;

[0023] S104: Complete loading of the search phrase builder.

[0024] The present invention also constructs a scenario-based search system, including:

[0025] A loading module for loading search phrase builders that are dynamically pre-built based on industry data;

[0026] A receiving module, used for receiving an input search term;

[0027] An identification module, used to call the search phrase builder to identify the scene corresponding to the search term;

[0028] An extraction module, used for extracting corresponding scene search data according to the scene;

[0029] A construction module is used to construct a search phrase according to the search word and the scene search data.

[0030] Preferably, in the scenario-based search system of the present invention, the search phrase builder stores search scenario words and scenario search data configured according to different industry data;

[0031] The system further comprises: a word segmentation module, which is used to perform word segmentation processing on the search words to obtain keywords;

[0032] The recognition module is further used to call the search phrase builder, read the stored search scenario word-element, perform scene recognition on the keyword according to the search scenario word-element, and identify the scene corresponding to the search term.

[0033] Preferably, in the scenario-based search system of the present invention, the loading module includes:

[0034] Import module, used to import search components;

[0035] An initialization module, used to initialize the search component and specify a configuration file address; the configuration file includes search scenario words and scenario search data configured according to different industry data;

[0036] A startup module, used to start the search component and load the configuration file;

[0037] The storage module is used to store configuration file data in the configuration center.

[0038] By implementing the present invention, the following beneficial effects are achieved:

[0039] The present invention realizes flexible and changeable search requirements by loading a search phrase builder that is dynamically pre-built according to industry data. When an input search term is received, the search phrase builder can be called to identify the scenario corresponding to the search term, extract the corresponding scenario search data according to the scenario, and build a search phrase according to the search term and the scenario search data, thereby describing the search requirements in a relatively simple way, standardizing the construction of search statements, accurately extracting data related to user searches, and avoiding developers from writing the same code and repeating work in the project, thereby improving the work efficiency of developers and the uniformity of the code. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0041] Figure 1 This is the method flow of the scenario-based search of the present invention Figure 1 ;

[0042] Figure 2 This is the method flow of the scenario-based search of the present invention Figure 2 ;

[0043] Figure 3 It is a system module block diagram of the scenario-based search of the present invention. DETAILED DESCRIPTION

[0044] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.

[0045] It should be noted that the flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor do they have to be executed in the order described. For example, some operations / steps can be decomposed, while some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0046] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0047] like Figure 1 and 2 As shown, the present invention discloses a scenario-based search method for identifying user search intent and dynamically constructing a search phrase, the method comprising the following steps:

[0048] Step S10: loading a search phrase builder dynamically pre-built based on industry data;

[0049] Step S20: receiving an input search term;

[0050] Step S30: calling a search phrase builder to identify the scenario corresponding to the search term;

[0051] Step S40: extracting corresponding scene search data according to the scene;

[0052] Step S50: construct a search phrase based on the search words and scene search data.

[0053] In some embodiments, step S10: dynamically pre-building a search phrase builder based on industry data further includes:

[0054] Step S101: introducing a search component;

[0055] Step S102: Initialize the search component and specify the address of the configuration file. The configuration file refers to the parameters required to start the search component and is pre-configured by the user of the search component. The address of the configuration file refers to the file address in the project of the user of the search component.

[0056] The configuration file includes search scenario terms and scenario search data configured according to different industry data, and the scenario search data includes search indexes, search dimensions and search methods corresponding to the search scenarios respectively. In addition, the search dimensions are bound to the search scenarios in a one-to-one or one-to-many manner.

[0057] Each search scenario has a corresponding search scenario word, such as brand, model, series and category. The search scenario word includes scenario code, name, alias, former name and abbreviation. For example, in the brand scenario, the brand name is converted into a unique code or standard brand name, which can also be expanded to the brand's alias, former name and abbreviation for identification.

[0058] Step S103: Start the search component, load the configuration file, and store the configuration file data in the configuration center, that is, store the search scenario word element, the search index corresponding to the search scenario, the search dimension and the search method in the configuration center;

[0059] Step S104: Complete loading of the search phrase builder.

[0060] This embodiment can realize flexible and changeable search requirements by dynamically configuring the configuration file.

[0061] In some embodiments, the search phrase builder stores search scenario words and scenario search data configured according to different industry data;

[0062] Correspondingly, step S20 also includes S21: segmenting the search words to obtain keywords; in some other embodiments, filtering and / or recombining are performed after segmentation.

[0063] Step S30 includes: calling the search phrase builder, reading the stored search scenario word-element, for example, reading the search scenario word-element from the configuration center, performing scene recognition on the keyword according to the search scenario word-element, and identifying the scene corresponding to the search word. Specifically, the scene recognition component of the search phrase builder is called to perform scene recognition on the keyword according to the search scenario word-element, and the scene recognition component is one of the functional points of the search component.

[0064] Step S50 includes: converting keywords into search values, and constructing search phrases based on the search values ​​and scene search data. For example, when a user searches for Huawei and recognizes that aa is a brand, [aa] will be replaced with the corresponding code, i.e., the search value. Specifically, the search phrase is mainly composed of the search value, search index, search dimension, and search method.

[0065] like Figure 3 As shown, the present invention discloses a scenario-based search system for identifying user search intent and dynamically constructing search phrases, including:

[0066] A loading module for loading search phrase builders that are dynamically pre-built based on industry data;

[0067] A receiving module, used for receiving an input search term;

[0068] The recognition module is used to call the search phrase builder and recognize the scene corresponding to the search term;

[0069] An extraction module, used to extract corresponding scene search data according to the scene;

[0070] A building module for building search phrases based on search terms and contextual search data.

[0071] In some embodiments, the loading module further comprises:

[0072] Import module, used to import search components;

[0073] The initialization module is used to initialize the search component and specify the configuration file address. The configuration file refers to the parameters required to start the search component and is pre-configured by the search component user. The configuration file address refers to the file address in the search component user project.

[0074] The configuration file includes search scenario terms and scenario search data configured according to different industry data, and the scenario search data includes search indexes, search dimensions and search methods corresponding to the search scenarios respectively. In addition, the search dimensions are bound to the search scenarios in a one-to-one or one-to-many manner.

[0075] Each search scenario has a corresponding search scenario word, such as brand, model, series and category. The search scenario word includes scenario code, name, alias, former name and abbreviation. For example, in the brand scenario, the brand name is converted into a unique code or standard brand name, which can also be expanded to the brand's alias, former name and abbreviation for identification.

[0076] The startup module is used to start the search component and load the configuration file;

[0077] The storage module is used to store the configuration file data to the configuration center, that is, to store the search scenario word element, the search index corresponding to the search scenario, the search dimension and the search method to the configuration center to complete the loading of the search phrase builder.

[0078] This embodiment can realize flexible and changeable search requirements by dynamically configuring the configuration file.

[0079] In some embodiments, the search phrase builder stores search scenario words and scenario search data configured according to different industry data;

[0080] The system also includes: a word segmentation module, which is used to segment the search words to obtain keywords; in some other embodiments, the system also includes a filtering module, which is used to filter after word segmentation; and / or a combining module, which is used to recombine after filtering.

[0081] The recognition module is further used to call the search phrase builder, read the stored search scenario word-element, for example, read the search scenario word-element from the configuration center, perform scene recognition on the keyword according to the search scenario word-element, and recognize the scene corresponding to the search word. Specifically, the scene recognition component of the search phrase builder is called to perform scene recognition on the keyword according to the search scenario word-element, and the scene recognition component is one of the functional points of the search component.

[0082] The construction module is further used to convert keywords into search values ​​and construct search phrases based on the search values ​​and scenario search data. For example, when a user searches for Huawei and recognizes that aa is a brand, [aa] will be replaced with the corresponding code, i.e., the search value. Specifically, the search phrase is mainly composed of the search value, search index, search dimension, and search method.

[0083] By implementing the present invention, the following beneficial effects are achieved:

[0084] The present invention realizes flexible and changeable search requirements by loading a search phrase builder that is dynamically pre-built according to industry data. When an input search term is received, the search phrase builder can be called to identify the scenario corresponding to the search term, extract the corresponding scenario search data according to the scenario, and build a search phrase according to the search term and the scenario search data, thereby describing the search requirements in a relatively simple way, standardizing the construction of search statements, accurately extracting data related to user searches, and avoiding developers from writing the same code and repeating work in the project, thereby improving the work efficiency of developers and the uniformity of the code.

[0085] It can be understood that the above embodiments only express the preferred implementation modes of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the patent scope of the present invention. It should be pointed out that, for ordinary technicians in this field, the above technical features can be freely combined without departing from the concept of the present invention, and several deformations and improvements can be made, which all belong to the protection scope of the present invention. Therefore, all equivalent changes and modifications made to the scope of the claims of the present invention should belong to the coverage of the claims of the present invention.

Claims

1. A scenario-based search method, characterized in that: The following steps are involved: S10: Loading a search phrase builder that is dynamically pre-built based on industry data; S20: receiving an input search term; S30: calling the search phrase builder to identify the scenario corresponding to the search term; S40: extracting corresponding scene search data according to the scene; S50: constructing a search phrase according to the search word and the scene search data; Wherein, step S10 includes: S101: Introduce search component; S102: Initialize the search component and specify a configuration file address; the configuration file includes search scenario words and scenario search data configured according to different industry data; S103: Start the search component, load the configuration file, and store the configuration file data in a configuration center; S104: Complete loading of the search phrase builder; The search phrase builder stores search scenario words and scenario search data configured according to different industry data; the search scenario words include scenario codes, names, aliases, former names and abbreviations; The scene search data includes a search index, a search dimension and a search method corresponding to the search scene respectively.

2. The scenario-based search method according to claim 1, characterized in that: After step S20, the following steps are also included: S21: Segment the search words to obtain keywords; Step S30 includes: The search phrase builder is called to read the stored search scenario word-element, and scene recognition is performed on the keyword according to the search scenario word-element to identify the scene corresponding to the search term.

3. The scenario-based search method according to claim 1, characterized in that: The search dimension is bound to the search scenario in a one-to-one or one-to-many manner.

4. The scenario-based search method according to claim 2, characterized in that: Step S50 includes: converting the keyword into a search value, and constructing a search phrase according to the search value and the scene search data.

5. A scenario-based search system, characterized in that: include: A loading module for loading search phrase builders that are dynamically pre-built based on industry data; A receiving module, used for receiving an input search term; An identification module, used to call the search phrase builder to identify the scene corresponding to the search term; An extraction module, used for extracting corresponding scene search data according to the scene; A construction module, for constructing a search phrase based on the search term and the scene search data; Wherein, the loading module includes: Import module, used to import search components; An initialization module, used to initialize the search component and specify a configuration file address; the configuration file includes search scenario words and scenario search data configured according to different industry data; A startup module, used to start the search component and load the configuration file; A storage module, used for storing the configuration file data in a configuration center, and completing the loading of the search phrase builder; The search phrase builder stores search scenario words and scenario search data configured according to different industry data; the search scenario words include scenario codes, names, aliases, former names and abbreviations; The scene search data includes a search index, a search dimension and a search method corresponding to the search scene respectively.

6. The scenario-based search system according to claim 5, characterized in that: The system further comprises: a word segmentation module, which is used to perform word segmentation processing on the search words to obtain keywords; The recognition module is further used to call the search phrase builder, read the stored search scenario word-element, perform scene recognition on the keyword according to the search scenario word-element, and identify the scene corresponding to the search term.