CN114461889B - Data searching method, device, electronic equipment and program product - Google Patents

Data searching method, device, electronic equipment and program product Download PDF

Info

Publication number
CN114461889B
CN114461889B CN202210122904.6A CN202210122904A CN114461889B CN 114461889 B CN114461889 B CN 114461889B CN 202210122904 A CN202210122904 A CN 202210122904A CN 114461889 B CN114461889 B CN 114461889B
Authority
CN
China
Prior art keywords
search
scene
determining
data content
query word
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
CN202210122904.6A
Other languages
Chinese (zh)
Other versions
CN114461889A (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 CN202210122904.6A priority Critical patent/CN114461889B/en
Publication of CN114461889A publication Critical patent/CN114461889A/en
Application granted granted Critical
Publication of CN114461889B publication Critical patent/CN114461889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present disclosure provides a method, an apparatus, an electronic device, and a program product for searching data, which relate to the field of artificial intelligence such as intelligent searching technology and knowledge graph, and include: acquiring a search instruction, wherein the search instruction comprises a query word; determining a target search scene corresponding to the query word from a plurality of preset search scenes according to the query word, and determining a search result in data content corresponding to the target search scene according to the query word; display information corresponding to the target search scene is obtained, a search display page is generated according to the search result and the display information, and the search display page is fed back. The data content for searching can be divided into a plurality of search scenes in advance, so that the search result corresponding to the query word can be determined in the data content included in the target search scene corresponding to the query word, the search result corresponding to the query word can be determined more accurately, the data content range for determining the search result can be narrowed, and the search system can respond to the search instruction of the user more quickly.

Description

Data searching method, device, electronic equipment and program product
Technical Field
The disclosure relates to the field of artificial intelligence such as intelligent search technology and knowledge graph, in particular to a method, a device, electronic equipment and a program product for data search.
Background
In recent years, with the development of network technology, more and more data are in the network, and the requirement on a search system is also higher and higher. A search system refers to a system capable of feeding back content related to a query word input by a user based on the query word.
Typical search systems recall content based on query terms, but some specific industries are more specialized and require higher search systems for these industries.
Therefore, how to improve the searching capability of a searching system applied in some industries with strong professionals is a technical problem that should be solved by those skilled in the art.
Disclosure of Invention
The present disclosure provides a method, apparatus, electronic device, and program product for data searching, thereby improving the search capabilities of search systems applied in some more specialized industries.
According to a first aspect of the present disclosure, there is provided a method of data searching, comprising:
acquiring a search instruction, wherein the search instruction comprises a query word;
Determining a target search scene corresponding to the query word from a plurality of preset search scenes according to the query word, and determining a search result in data content corresponding to the target search scene according to the query word;
and acquiring display information corresponding to the target search scene, generating a search display page according to the search result and the display information, and feeding back the search display page, wherein the search display page is used for displaying the search result.
According to a second aspect of the present disclosure, there is provided an apparatus for data searching, comprising:
the acquisition unit is used for acquiring a search instruction, wherein the search instruction comprises a query word;
a scene determining unit, configured to determine a target search scene corresponding to the query word from a plurality of preset search scenes according to the query word;
the result determining unit is used for determining a search result in the data content corresponding to the target search scene according to the query word;
the feedback unit is used for acquiring display information corresponding to the target search scene, generating a search display page according to the search result and the display information, and feeding back the search display page, wherein the search display page is used for displaying the search result.
According to a third aspect of the present disclosure, there is provided 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 method of the first aspect.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of the first aspect.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising: a computer program stored in a readable storage medium, from which it can be read by at least one processor of an electronic device, the at least one processor executing the computer program causing the electronic device to perform the method of the first aspect.
The method, the device, the electronic equipment and the program product for searching data provided by the disclosure comprise the following steps: acquiring a search instruction, wherein the search instruction comprises a query word; determining a target search scene corresponding to the query word from a plurality of preset search scenes according to the query word, and determining a search result in data content corresponding to the target search scene according to the query word; display information corresponding to the target search scene is obtained, a search display page is generated according to the search result and the display information, the search display page is fed back, and the search display page is used for displaying the search result. According to the data searching method, device, electronic equipment and program product, the data content for searching can be divided into a plurality of search scenes in advance, so that the search results corresponding to the query words can be determined in the data content included in the target search scene corresponding to the query words, the search results corresponding to the query words can be determined more accurately in this way, the data content range for determining the search results can be narrowed, and the search system can respond to the search instructions of users more quickly.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flow chart of a method of data searching shown in an exemplary embodiment of the present disclosure;
FIG. 2 is a flow chart of a method of data searching shown in another exemplary embodiment of the present disclosure;
FIG. 3 is a schematic diagram of ranking search results, as shown in an exemplary embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an apparatus for data searching according to an exemplary embodiment of the present disclosure;
fig. 5 is a schematic structural view of an apparatus for data search according to another exemplary embodiment of the present disclosure;
fig. 6 is a block diagram of an electronic device used to implement an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Search systems are also used in some specific industries, for example in the power industry, where search systems for searching for related content of the power industry may be provided. For example, the system may be applied by a power-related enterprise.
When users use these search systems, there often occurs a problem that they do not know where to find content, and do not know how to find content. For example, some searching systems include a plurality of plates, and the contents corresponding to different plates are different, so that a user cannot know in advance under which plate the content to be searched is, which results in inconvenience to the user in performing an effective search.
In order to solve the technical problems, in the scheme provided by the disclosure, the search scenes are distinguished for the data content in the search system, and then when a user searches, the target search scenes can be determined according to the search query words, and then the data content corresponding to the target search scenes is fed back, so that the data content corresponding to the query words can be determined in the search system quickly, and the user can search the required data content quickly.
Fig. 1 is a flow chart illustrating a method of data searching according to an exemplary embodiment of the present disclosure.
As shown in fig. 1, the method for searching data provided by the present disclosure includes:
Step 101, obtaining a search instruction, wherein the search instruction comprises a query word.
The methods provided by the present disclosure may be performed by an electronic device with computing capabilities, which may be a background server of a search system.
Wherein a user may operate a user terminal to access a search system in which a plurality of tiles may be included, each tile may include a large amount of data content. The search system may further have a search function in which a user can input a query word, and the search system may feed back data contents corresponding to the query word among the data contents of each tile.
In an alternative, the search system may be a search system applied in the power industry, which a user may use to search for power industry related content.
Specifically, an interface of the search system may be displayed in the user terminal, in which a search box is provided, in which the user may input a query word, for example, "latest regulations of the power industry". The user can click the search key in the user terminal, so that the user terminal sends a search instruction to the server, and the search instruction can carry a query word input by the user. For example, the query term may be a power industry related vocabulary.
Further, after receiving the search instruction, the server may acquire the query term therein, and determine a search result corresponding to the query term.
Step 102, determining a target search scene corresponding to the query word from a plurality of preset search scenes according to the query word, and determining a search result in data content corresponding to the target search scene according to the query word.
In practical application, in order to more accurately determine a search result corresponding to a query term, in the scheme provided by the disclosure, existing data content may be divided into a plurality of search scenes. The data content can be uploaded by a user, for example, the latest information in the industry can be uploaded, and project information with larger influence can also be uploaded.
The specific divided search scenes can be set according to requirements, such as a scene in which power projects can exist, a prize evaluation scene, an industry news scene and the like. Each piece of data content may be partitioned into one or more search scenarios based on the details contained therein. For example, a piece of data content may belong to both an industry news scenario and a review scenario.
When determining the search results, the server can determine the corresponding target search scene according to the query words, and then determine the search results in the data content included in the target search scene, so as to more accurately determine the search results corresponding to the query words.
In an alternative implementation manner, each search scene may further include a plurality of keywords, and meanings of the query terms and the keywords may be compared, so as to determine a target search scene corresponding to the query terms.
In another optional implementation manner, the server may further determine a target search scenario corresponding to the query term according to the meaning of the query term and the meaning of each search scenario.
Wherein the target search scene has a plurality of data contents, and the server can determine search results in the data contents according to the query words. For example, if the query term is a first item, search results associated with the first item may be screened out of the data content of the target search scene.
Step 103, obtaining display information corresponding to the target search scene, generating a search display page according to the search result and the display information, and feeding back the search display page, wherein the search display page is used for displaying the search result.
Specifically, each search scene may further have display information, where the display information may include a display style, and may further include content ranking information. Therefore, according to the display information corresponding to the target search scene, how to display the obtained search results can be determined, and then the search display page is generated.
Further, the ranking of each search result may be determined according to the display information, the display style of each search result may be determined according to the display information, each search result may be displayed based on the display style, and then a search display page may be generated.
In practical application, the server may send a search display page to the user terminal, and after the terminal device receives the search display page, the search display page may be displayed, where the content specifically displayed is a search result determined by the server, and the ranking of the search results is determined according to the content ranking information corresponding to the target search scene.
By the method provided by the invention, the search system applied in some industries with stronger profession, such as the power industry, can feed back the required search result to the user more accurately based on the search scene, and is convenient for the user to inquire the required content in the system.
The method for searching data provided by the disclosure comprises the following steps: acquiring a search instruction, wherein the search instruction comprises a query word; determining a target search scene corresponding to the query word from a plurality of preset search scenes according to the query word, and determining a search result in data content corresponding to the target search scene according to the query word; display information corresponding to the target search scene is obtained, a search display page is generated according to the search result and the display information, the search display page is fed back, and the search display page is used for displaying the search result. In the data searching method provided by the disclosure, the data content for searching can be divided into a plurality of search scenes in advance, so that the search result corresponding to the query word can be determined in the data content included in the target search scene corresponding to the query word.
Fig. 2 is a flow chart illustrating a method of data searching according to another exemplary embodiment of the present disclosure.
As shown in fig. 2, the method for searching data provided by the present disclosure includes:
step 201, obtaining a search instruction, wherein the search instruction comprises a query word.
Step 201 is similar to the implementation of step 101.
Step 202, determining a search intention according to the query word, and determining a target search scene corresponding to the query word from a plurality of preset search scenes according to the search intention.
After the server obtains the search instruction, the search intention of the user can be determined according to the query word in the search instruction. In general, the query terms used by different users in searching may be different, but the search intents may be the same, so that in order to more comprehensively determine the target search scene, the electronic device may convert the query terms into the search intents, and then determine the target search scene by using the search intents.
For example, if the query term is "tourist attraction", the search intention is "tourist", "attraction" or the like, and if the query term is "reactor", the search intention may be "power equipment", "substation" or the like.
The correspondence between the search intention and the search scene may be preset, and the target search scene may be determined based on this correspondence and the search intention of the user. For example, a correspondence relationship between a search intention of the electric power industry and a search scenario of the electric power industry may be set.
In an alternative embodiment, the server may determine the first search scenario to which the query term belongs according to the determined search intention and the corresponding relationship between the intention and the search scenario. For example, if the search intention is a power device, the server may determine a search scenario corresponding to the power device as a target search scenario.
After that, the server may determine the search results corresponding to the query word in the data content of the target search scene, and if the number of the search results is small, the server may further determine the association intention according to the search intention, and determine the second search scene associated with the query word according to the association intention and the correspondence between the intention and the search scene.
For example, when the search intention is a power device, the corresponding first search scenario is a power device scenario, and if the number of search results determined in the scenario is small, the server may determine that the association intention generates power and changes power, and then determine the corresponding second search scenario as the target search scenario.
In the implementation mode, richer search results corresponding to the query words can be obtained from the platform, and the problem of too few search results is avoided.
Step 203, determining a search result in the data content corresponding to the target search scene according to the query word.
The server may determine content related to the query term among the data content of the target search scene, with the content as search results. If the target search scenario includes a first search scenario and a second search scenario, the server may determine search results in the first search scenario and the second search scenario.
In another implementation, a total search platform and a sub search platform may also be provided in the server. The number of sub-search platforms may be plural. For example, when such a search platform is applied in one group company, a total search platform may be set, and each branch company may also set a respective branch search platform.
Data content can be provided in both the general search platform and the branch search platform, and can be uploaded to the platform by staff inside an enterprise.
Wherein the user using the function of the search platform has authority information for characterizing in which sub-search platform the user can search.
In this embodiment, when the search result is obtained in the platform, the server may specifically obtain the search authority of the user who sends the search instruction. And determining a target score searching platform with the searching authority in the score searching platforms according to the searching authority.
For example, there are 5 sub-search platforms, and the user has search rights of 2 sub-platforms, the server may determine the 2 sub-search platforms as target sub-search platforms.
Specifically, in order to enable users of branch companies to access a searching platform of a group and further know data contents published by the group in time, in the scheme provided by the disclosure, users inside the enterprise can have searching authority of the total searching platform.
Further, the server can determine the search result in the data content corresponding to the target search scene in the total search platform and the target score search platform; wherein the total search platform is different from the data content stored in the sub search platform.
By the implementation mode, the user can be ensured to search all contents within the authority range, and the user can obtain information needing to browse conveniently.
Step 204, obtaining display information corresponding to the target search scene.
Step 204 corresponds to the corresponding content in step 103.
Step 205, sorting the search results according to the sorting information in the display information.
In an optional implementation manner, the acquired display information corresponding to the target search scene includes ranking information of data content in the target search scene. For example, if 1000 pieces of data content are included in the target search scene, the acquired display information includes ranking information of the 1000 pieces of data content.
Specifically, each search scene has corresponding display information for characterizing ranking information of each data content in the scene.
Further, the search results determined by the server may be ranked according to the ranking information. For example, if the search result includes a result a, a result B, and a result C, and the result a is ranked n1 in the data content, the result B is ranked n2 in the data content, and the result C is ranked n3 in the data content, the result a, the result B, and the result C may be ranked according to the sizes of n1, n2, and n 3.
FIG. 3 is a schematic diagram of ranking search results, as shown in an exemplary embodiment of the present disclosure.
As shown in fig. 3, the server determines a plurality of contents from the data contents of the target search scene as search results 31, and sorts the data contents in the target search scene in advance, so that the search results can be sorted by using the existing sorting information.
And 206, generating a search display page according to the ordered search results.
In practical application, the search display page can be generated according to the ordering of the search results. The display page comprises a plurality of search results, and the display sequence of each search result is the sequence of the search results.
By means of the method, the search results can be displayed in a sequence mode according to the sequence information of the data content in the search scene, so that the search results which are expected to be previewed by the user can be displayed at the position, in front of the search result page, and the user can browse the search results conveniently.
In an alternative embodiment, if the search results are determined from a plurality of search scenarios, the search scenarios may be ranked according to their ranking in each search scenario. The search scenes may also be ranked according to the ranking of the search results in each search scene and the total number of data content in the search scene to which the search results belong, e.g., the search results may be ranked according to the ratio of the search results to the data content in the search scene to which the search results belong.
In order to facilitate users to see the content which may want to be searched in the search result page, in the scheme provided by the disclosure, the ordering of the data content in each search scene is determined based on the historical search record, and specifically, the data content with more browsed times can be arranged at a front position, so that the search speed of the users is improved.
Specifically, the server may obtain a history search record, where the history search record includes a history query word, a history search result corresponding to the history query word, and history operation information corresponding to each history search result; wherein the history operation information includes operation information of a plurality of users on the history operation result.
For example, the history search record includes a query term that is "declared item" and is input by any user when searching in the search platform. The platform determines 100 historical search results based on the query term, and the 100 search results may be included in the historical search record. If the user clicks one of the history search records, the history operation information may be further included in the history search record.
Through the historical search record, the operation information of the user on each search result of the query word can be recorded, and the ordering of the data content in each search scene can be determined through the information.
Specifically, the server may determine a search scenario corresponding to the historical query word, and sort data content in the search scenario according to historical operation information of each historical search result of each historical query word corresponding to the search scenario, to obtain sorting information; wherein the historical search results are part of the data content.
Further, each search scenario has a plurality of data content that may be determined as search results corresponding to the query terms. Accordingly, the data contents can be ordered according to the historical operation information of the data contents in the search scene.
In practical application, the more frequently operated data content is ranked ahead, the longer the data content is browsed, the more ahead the data content is ranked, and based on the mode, the more active data content which is more likely to be the data content which the user wants to search can be ranked ahead, so that the user can acquire the information which the user wants to browse conveniently.
In another embodiment, if the query term belongs to a preset professional vocabulary, after determining the search result, the method further includes:
step 207, obtaining labels of each search result; wherein, part of the data content has a preset label.
The tags for each search result may be set by the user when uploading data content in the platform, e.g., a "professional" tag may be set when the user has uploaded an industry standard. As another example, if a piece of data content is technical content published by an expert within an enterprise, an "authority" tag may be set.
If the current query word belongs to a preset professional vocabulary, the fact that the user wants to search for content with stronger professionals is indicated, and therefore the server can acquire labels of all search results. The professional vocabulary library can be preset, and if the query words are the same as the words in the professional vocabulary library or have the same meaning, the server can acquire the labels of the search results.
Step 208, generating a search display page according to the labels, the display information and the search results of the search results.
When the server generates a search display page based on the search result and the display information, the server may generate the search display page based on the tag, the display information, and the search result included in the search result.
Specifically, the search results with the labels can be arranged at the front position, so that the search intention of a user using the professional vocabulary is met, and the user can browse the search results with the labels first when browsing the search results, so that the content with stronger professionals can be browsed.
Specifically, if a first search result with a professional and/or authoritative tag exists in the search results, the first search result is ranked before other second search results. I.e., the first search result having the expertise and/or authority may be displayed in a position forward of the search display page.
For each first search result, it may be ranked according to display information; for each second search result, it may be ranked according to display information.
The display information may specifically include ranking information of the data content in the target search scene, where the first search results are part of the data content in the target search scene, and thus the first search results have ranking information, e.g., one first search result is ranked 5 and another first search result is ranked 10, and the first search result is ranked before the second first search result.
Similarly, the second search results may also be ranked according to display information.
Thereafter, a search display page may be generated from the ranked first and second search results. And particularly, arranging the first search result after sequencing in front of the second search result after sequencing, so that the search result with stronger specificity is displayed at the position in front of the page.
By the method, the search results can be ordered according to the professional degree of the search results and the information operated by the user, and the more frequent search results which are strong in professional program and operated by the user can be arranged at the position of the front of the page, so that the user can conveniently and quickly browse the needed information. In particular, in the power industry, the content with the higher specificity can be displayed to the user in this way due to the higher specificity.
Step 209, feeding back a search display page for displaying the search result.
Step 209 is similar to the corresponding content in step 103, and will not be described again.
Fig. 4 is a schematic structural view of an apparatus for data search according to an exemplary embodiment of the present disclosure.
As shown in fig. 4, an apparatus 400 for searching data provided by the present disclosure includes:
An obtaining unit 410, configured to obtain a search instruction, where the search instruction includes a query term;
a scene determining unit 420, configured to determine, according to the query term, a target search scene corresponding to the query term from a plurality of preset search scenes;
a result determining unit 430, configured to determine a search result in the data content corresponding to the target search scene according to the query term;
and a feedback unit 440, configured to obtain display information corresponding to the target search scene, generate a search display page according to the search result and the display information, and feed back the search display page, where the search display page is used to display the search result.
According to the data searching device, the data content for searching can be divided into a plurality of search scenes in advance, so that the search results corresponding to the query words can be determined in the data content included in the target search scene corresponding to the query words, the search results corresponding to the query words can be determined more accurately in this way, the data content range for determining the search results can be narrowed, and the searching system can respond to the search instructions of users more quickly.
Fig. 5 is a schematic structural view of an apparatus for data search according to another exemplary embodiment of the present disclosure.
As shown in fig. 5, in the apparatus 500 for data search provided by the present disclosure, the acquisition unit 510 is similar to the acquisition unit 410 shown in fig. 4, the scene determination unit 520 is similar to the scene determination unit 420 shown in fig. 4, the result determination unit 530 is similar to the result determination unit 430 shown in fig. 4, and the feedback unit 540 is similar to the feedback unit 440 shown in fig. 4.
Wherein, the scene determination unit 520 is specifically configured to:
and determining a search intention according to the query word, and determining a target search scene corresponding to the query word from a plurality of preset search scenes according to the search intention.
If the number of the search results is less than the preset number, the target search scene comprises a first search scene to which the query word belongs and a second search scene to which the query word is associated;
the scene determination unit 520 includes:
a first determining module 521, configured to determine, according to the search intention and a correspondence between the intention and a search scene, a first search scene to which the query term belongs;
a second determining module 522, configured to determine an association intention according to the search intention, and determine a second search scene associated with the query term according to the association intention and a correspondence between the intention and the search scene.
The display information comprises ordering information of data content corresponding to the search scene;
the feedback unit 540 includes:
a result sorting module 541, configured to sort the search results according to sorting information in the display information;
the first page generating module 542 is configured to generate a search display page according to the ordered search results.
The apparatus further comprises a pre-ordering unit 550 for:
acquiring a history search record, wherein the history search record comprises history query words, history search results corresponding to the history query words and history operation information corresponding to each history search result; wherein the history operation information comprises operation information of a plurality of users on the history operation result;
determining a search scene corresponding to the historical query word, and sorting data content in the search scene according to historical operation information of each historical search result of each historical query word corresponding to the search scene to obtain sorting information; wherein the historical search results are part of the data content.
If the query term belongs to a preset professional vocabulary, the device further comprises:
A tag acquiring unit 560 configured to acquire tags of the search results; wherein, part of the data content has a preset label;
the feedback unit 540 is specifically configured to:
and generating the search display page according to the labels, the display information and the search results of the search results.
The feedback unit 540 includes:
a first ranking module 543, configured to rank, if a first search result with a professional and/or authoritative tag exists in the search results, the first search result before other second search results;
a second ranking module 544, configured to rank each of the first search results according to the display information, and rank each of the second search results according to the display information;
the second page generating module 545 is configured to generate the search display page according to the sorted first search result and the second search result.
Wherein the result determining unit 530 includes:
the permission acquisition module 531 is configured to acquire a search permission of a user who sends the search instruction;
a platform determining module 532, configured to determine, according to the search rights, a target sub-search platform having the search rights among the sub-search platforms;
A search module 533, configured to determine, according to the query term, the search result in the data content corresponding to the target search scene in the total search platform and the target search platform; wherein the total search platform is different from the data content stored in the sub-search platform.
The disclosure provides a data searching method, a data searching device, electronic equipment and a program product, which are applied to an intelligent searching technology in computer technology to improve the searching capability of a searching system applied in some industries with strong professionals.
In the technical scheme of the disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the user accord with the regulations of related laws and regulations, and the public order colloquial is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
According to an embodiment of the present disclosure, the present disclosure also provides a computer program product comprising: a computer program stored in a readable storage medium, from which at least one processor of an electronic device can read, the at least one processor executing the computer program causing the electronic device to perform the solution provided by any one of the embodiments described above.
Fig. 6 illustrates a schematic block diagram of an example electronic device 600 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the apparatus 600 includes a computing unit 601 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 may also be stored. The computing unit 601, ROM 602, and RAM 603 are connected to each other by a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Various components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, mouse, etc.; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the respective methods and processes described above, such as a method of data search. For example, in some embodiments, the method of data searching may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the method of data searching described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the method of data searching by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service ("Virtual Private Server" or simply "VPS") are overcome. The server may also be a server of a distributed system or a server that incorporates a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (12)

1. A method of data searching, comprising:
acquiring a search instruction, wherein the search instruction comprises a query word;
determining a search intention according to the query word, determining a target search scene corresponding to the query word from a plurality of preset search scenes according to the search intention, determining a search result in data content corresponding to the target search scene according to the query word, wherein a corresponding relation exists between the search intention and the search scene, and the search scene at least comprises a power project scene;
Acquiring display information corresponding to the target search scene, generating a search display page according to the search result and the display information, and feeding back the search display page, wherein the search display page is used for displaying the search result, and the display information comprises display style and ordering information of data content;
if the query term belongs to a preset professional vocabulary, the method further comprises:
obtaining labels of the search results; wherein part of the data content is provided with a preset label which is used for representing that the data content is professional and/or authoritative,
the generating a search display page according to the search result and the display information comprises the following steps:
generating the search display page according to the labels, the display information and the search results of the search results, wherein the search results with the labels in the search display page are arranged before other search results;
if the number of the search results is less than the preset number, the target search scene comprises a first search scene to which the query word belongs and a second search scene to which the query word is associated;
the determining, according to the search intention, a target search scene corresponding to the query term from a plurality of preset search scenes includes:
Determining a first search scene to which the query word belongs according to the search intention and the corresponding relation between the intention and the search scene;
and determining an association intention according to the search intention, and determining a second search scene associated with the query term according to the association intention and the corresponding relation between the intention and the search scene.
2. The method of claim 1, wherein the display information includes ranking information of data content corresponding to the search scene;
the generating a search display page according to the search result and the display information comprises the following steps:
sorting the search results according to the sorting information in the display information;
and generating a search display page according to the ordered search results.
3. The method of claim 2, further comprising:
acquiring a history search record, wherein the history search record comprises history query words, history search results corresponding to the history query words and history operation information corresponding to each history search result; the historical operation information comprises operation information of a plurality of users on historical operation results;
determining a search scene corresponding to the historical query word, and sorting data content in the search scene according to historical operation information of each historical search result of each historical query word corresponding to the search scene to obtain sorting information; wherein the historical search results are part of the data content.
4. The method of claim 1, the generating the search display page according to the tag, the display information, and the search result that the search result has, comprising:
if the first search result with the professional and/or authoritative label exists in the search results, the first search result is arranged before other second search results;
ranking the first search results according to the display information, and ranking the second search results according to the display information;
and generating the search display page according to the ordered first search result and the second search result.
5. The method of any one of claims 1-4, wherein the determining, according to the query term, a search result in the data content corresponding to the target search scene includes:
acquiring the search permission of a user who sends the search instruction;
determining a target score searching platform with searching authority in the score searching platforms according to the searching authority;
determining the search result in the data content corresponding to the target search scene in a total search platform and the target score search platform according to the query word; wherein the total search platform is different from the data content stored in the sub-search platform.
6. An apparatus for data searching, comprising:
the acquisition unit is used for acquiring a search instruction, wherein the search instruction comprises a query word;
a scene determining unit, configured to determine a target search scene corresponding to the query word from a plurality of preset search scenes according to the query word;
the result determining unit is used for determining a search result in the data content corresponding to the target search scene according to the query word;
the feedback unit is used for acquiring display information corresponding to the target search scene, generating a search display page according to the search result and the display information, and feeding back the search display page, wherein the search display page is used for displaying the search result, and the display information comprises display patterns and ordering information of data content;
if the query term belongs to a preset professional vocabulary, the device further comprises:
the label acquisition unit is used for acquiring labels of the search results; the data content is characterized by comprising a data content, wherein part of the data content is provided with a preset label, the label is used for representing that the data content is professional and/or authoritative, and search results with labels in the search display page are arranged before other search results;
The feedback unit is specifically configured to:
generating the search display page according to the labels, the display information and the search results of the search results;
the scene determination unit is specifically configured to:
determining a search intention according to the query word, and determining a target search scene corresponding to the query word from a plurality of preset search scenes according to the search intention, wherein a corresponding relation exists between the search intention and the search scene, and the search scene at least comprises a power project scene;
if the number of the search results is less than the preset number, the target search scene comprises a first search scene to which the query word belongs and a second search scene to which the query word is associated;
the scene determination unit includes:
the first determining module is used for determining a first search scene to which the query word belongs according to the search intention and the corresponding relation between the intention and the search scene;
and the second determining module is used for determining the association intention according to the search intention and determining a second search scene associated with the query word according to the association intention and the corresponding relation between the intention and the search scene.
7. The apparatus of claim 6, wherein the display information includes ranking information of data content corresponding to the search scene;
the feedback unit includes:
the result ordering module is used for ordering the search results according to ordering information in the display information;
and the first page generation module is used for generating a search display page according to the ordered search results.
8. The apparatus of claim 7, further comprising a pre-ordering unit to:
acquiring a history search record, wherein the history search record comprises history query words, history search results corresponding to the history query words and history operation information corresponding to each history search result; the historical operation information comprises operation information of a plurality of users on historical operation results;
determining a search scene corresponding to the historical query word, and sorting data content in the search scene according to historical operation information of each historical search result of each historical query word corresponding to the search scene to obtain sorting information; wherein the historical search results are part of the data content.
9. The apparatus of claim 6, the feedback unit comprising:
The first ordering module is used for ordering the first search results before other second search results if the first search results with the professional and/or authoritative labels exist in the search results;
the second sorting module is used for sorting the first search results according to the display information and sorting the second search results according to the display information;
and the second page generation module is used for generating the search display page according to the ordered first search result and the second search result.
10. The apparatus according to any one of claims 6-9, wherein the result determination unit comprises:
the permission acquisition module is used for acquiring the search permission of the user who sends the search instruction;
the platform determining module is used for determining a target sub-search platform with the search authority in the sub-search platforms according to the search authority;
the searching module is used for determining the searching result in the data content corresponding to the target searching scene in the total searching platform and the target searching platform according to the query word; wherein the total search platform is different from the data content stored in the sub-search platform.
11. 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 method of any one of claims 1-5.
12. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-5.
CN202210122904.6A 2022-02-09 2022-02-09 Data searching method, device, electronic equipment and program product Active CN114461889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210122904.6A CN114461889B (en) 2022-02-09 2022-02-09 Data searching method, device, electronic equipment and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210122904.6A CN114461889B (en) 2022-02-09 2022-02-09 Data searching method, device, electronic equipment and program product

Publications (2)

Publication Number Publication Date
CN114461889A CN114461889A (en) 2022-05-10
CN114461889B true CN114461889B (en) 2023-04-25

Family

ID=81413044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210122904.6A Active CN114461889B (en) 2022-02-09 2022-02-09 Data searching method, device, electronic equipment and program product

Country Status (1)

Country Link
CN (1) CN114461889B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138684A (en) * 2015-09-15 2015-12-09 联想(北京)有限公司 Information processing method and device
CN110457440A (en) * 2019-08-09 2019-11-15 宝宝树(北京)信息技术有限公司 A kind of method, apparatus, equipment and medium feeding back answer
CN111417940A (en) * 2017-12-15 2020-07-14 国际商业机器公司 Evidence search supporting complex answers
CN111581486A (en) * 2020-05-11 2020-08-25 北京字节跳动网络技术有限公司 Information distribution method and device
CN111597433A (en) * 2020-04-10 2020-08-28 北京百度网讯科技有限公司 Resource searching method and device and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6305630B2 (en) * 2015-03-20 2018-04-04 株式会社東芝 Document search apparatus, method and program
CN109344336A (en) * 2018-12-25 2019-02-15 北京时光荏苒科技有限公司 Searching method, search set creation method, device, medium, terminal and server
CN112783410B (en) * 2019-11-07 2023-11-24 北京拉酷网络科技有限公司 Information processing method, medium, device and computing equipment
CN112100454A (en) * 2020-08-17 2020-12-18 百度在线网络技术(北京)有限公司 Searching method, searching device, electronic equipment and readable storage medium
CN113407828A (en) * 2021-06-11 2021-09-17 北京搜狗科技发展有限公司 Searching method, searching device and searching device
CN113590917A (en) * 2021-06-30 2021-11-02 五八有限公司 Data searching method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138684A (en) * 2015-09-15 2015-12-09 联想(北京)有限公司 Information processing method and device
CN111417940A (en) * 2017-12-15 2020-07-14 国际商业机器公司 Evidence search supporting complex answers
CN110457440A (en) * 2019-08-09 2019-11-15 宝宝树(北京)信息技术有限公司 A kind of method, apparatus, equipment and medium feeding back answer
CN111597433A (en) * 2020-04-10 2020-08-28 北京百度网讯科技有限公司 Resource searching method and device and electronic equipment
CN111581486A (en) * 2020-05-11 2020-08-25 北京字节跳动网络技术有限公司 Information distribution method and device

Also Published As

Publication number Publication date
CN114461889A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
CN108121814B (en) Search result ranking model generation method and device
CN110880136A (en) Recommendation method, system, equipment and storage medium for matched product
CN107291835B (en) Search term recommendation method and device
CN116028618A (en) Text processing method, text searching method, text processing device, text searching device, electronic equipment and storage medium
CN114461889B (en) Data searching method, device, electronic equipment and program product
CN116597443A (en) Material tag processing method and device, electronic equipment and medium
CN114491232B (en) Information query method and device, electronic equipment and storage medium
CN113722593B (en) Event data processing method, device, electronic equipment and medium
CN112818221B (en) Entity heat determining method and device, electronic equipment and storage medium
CN113313196B (en) Labeling data processing method, related device and computer program product
CN112818167B (en) Entity retrieval method, entity retrieval device, electronic equipment and computer readable storage medium
CN112784600B (en) Information ordering method, device, electronic equipment and storage medium
CN115454971A (en) Data migration method and device, electronic equipment and storage medium
CN114186147A (en) Data processing method and device, electronic equipment and storage medium
CN114595391A (en) Data processing method and device based on information search and electronic equipment
CN112800315A (en) Data processing method, device, equipment and storage medium
CN113743973A (en) Method and device for analyzing market hotspot trend
CN113656393B (en) Data processing method, device, electronic equipment and storage medium
CN113312521B (en) Content retrieval method, device, electronic equipment and medium
CN113360602B (en) Method, apparatus, device and storage medium for outputting information
CN113268987B (en) Entity name recognition method and device, electronic equipment and storage medium
CN113326416B (en) Method for searching data, method and device for sending search data to client
CN113343090B (en) Method, apparatus, device, medium and product for pushing information
CN114281981B (en) News brief report generation method and device and electronic equipment
US20150169760A1 (en) Using Social Communities to Improve Search Results

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