CN114547070A - Economic data query method, device and storage medium - Google Patents

Economic data query method, device and storage medium Download PDF

Info

Publication number
CN114547070A
CN114547070A CN202210104051.3A CN202210104051A CN114547070A CN 114547070 A CN114547070 A CN 114547070A CN 202210104051 A CN202210104051 A CN 202210104051A CN 114547070 A CN114547070 A CN 114547070A
Authority
CN
China
Prior art keywords
search results
keyword
search
economic
database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210104051.3A
Other languages
Chinese (zh)
Inventor
刘兵
刘威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xishima Data Technology Co ltd
Original Assignee
Shenzhen Xishima Data 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 Shenzhen Xishima Data Technology Co ltd filed Critical Shenzhen Xishima Data Technology Co ltd
Priority to CN202210104051.3A priority Critical patent/CN114547070A/en
Publication of CN114547070A publication Critical patent/CN114547070A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2425Iterative querying; Query formulation based on the results of a preceding query
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/248Presentation of query results

Landscapes

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

Abstract

The embodiment of the application discloses an economic data query method, a device and a storage medium, which are applied to an economic data query system and comprise an intelligent search engine, an object storage database, an economic word stock and a macro economic database, wherein the method comprises the following steps: the method comprises the steps that an intelligent search engine obtains a first keyword set, wherein the first keyword set comprises at least one keyword; the economics word stock determines a relevant vocabulary corresponding to each keyword in the first keyword set, and the relevant vocabulary and the first keyword set form a second keyword set, wherein the relevant vocabulary comprises at least one of the following words: synonyms, near synonyms, vocabulary codes; the macro economic database searches according to the second keyword set to obtain a first search result set, and sends the first search result set to the object storage database; the object store database generates a second set of search results from the first set of search results. By adopting the method and the device, the economic data query efficiency can be improved.

Description

Economic data query method, device and storage medium
Technical Field
The application relates to the technical field of economic data query, in particular to an economic data query method, an economic data query device and a storage medium.
Background
At present, data are stored in different places in the forms of files, images, tables, relational data and the like, and researchers/scholars need to search according to files in different forms in the data searching process, especially beginners and little understanding on economics are needed, so that the searching results are incomplete, the economic data searching efficiency is reduced, and therefore the problem of how to improve the economic data searching efficiency needs to be solved urgently.
Disclosure of Invention
The embodiment of the application provides an economic data query method, an economic data query device and a storage medium, and economic data query efficiency can be improved.
In a first aspect, an embodiment of the present application provides an economic data query method, which is applied to an economic data query system, where the economic data query system includes an intelligent search engine, an object storage database, an economic thesaurus, and a macro-economic database, and the method includes:
the intelligent search engine acquires a first keyword set, wherein the first keyword set comprises at least one keyword;
the economics word stock determines a relevant vocabulary corresponding to each keyword in the first keyword set, and the relevant vocabulary and the first keyword set form a second keyword set, wherein the relevant vocabulary comprises at least one of the following words: synonyms, near synonyms, vocabulary codes;
the macro economic database searches according to the second keyword set to obtain a first search result set, and sends the first search result set to the object storage database;
the object store database generates a second set of search results from the first set of search results.
In a second aspect, the present application provides an economic data query system, which includes an intelligent search engine, an object storage database, an economic thesaurus and a macro economic database, wherein,
the intelligent search engine is used for acquiring a first keyword set, and the first keyword set comprises at least one keyword;
the economic word stock is used for determining a related word corresponding to each keyword in the first keyword set, and forming the related word and the first keyword set into a second keyword set, where the related word includes at least one of the following words: synonyms, near synonyms, vocabulary codes;
the macro economic database is used for searching according to the second keyword set to obtain a first search result set, and sending the first search result set to the object storage database;
and the object storage database is used for generating a second search result set according to the first search result set.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
it can be seen that, in the economic data query method, apparatus, and storage medium described in the embodiments of the present application, the economic data query system includes an intelligent search engine, an object storage database, an economic thesaurus, and a macro-economic database, where the intelligent search engine obtains a first keyword set, the first keyword set includes at least one keyword, the economic thesaurus determines a related vocabulary corresponding to each keyword in the first keyword set, and the related vocabulary and the first keyword set constitute a second keyword set, and the related vocabulary includes at least one of: synonyms, synonyms and vocabulary codes are obtained, the macro economic database is searched according to the second keyword set to obtain a first search result set, the first search result set is sent to the object storage database, and the object storage database generates a second search result set according to the first search result set.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic structural diagram of an economic data query system provided by an embodiment of the present application;
FIG. 2 is a flow chart of a method for querying economic data according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart diagram illustrating another economic data query method provided by an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus (system), product, or device that comprises a list of steps or elements is not limited to the listed steps or elements, but may alternatively include other steps or elements not listed, or inherent to such process, method, product, or device.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device described in the embodiment of the present application may include a smart Phone (e.g., an Android Phone, an iOS Phone, a Windows Phone, etc.), a tablet computer, a palm computer, a car data recorder, a notebook computer, a Mobile Internet device (MID, Mobile Internet Devices), or a wearable device (e.g., a smart watch, a bluetooth headset), which are merely examples, but are not exhaustive, and the electronic device may also include a server, for example, a cloud server.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an Economic data query system for implementing an Economic data query method according to an embodiment of the present application, and as shown in the figure, the Economic data query system includes an intelligent search engine (AI elastic search, AIES), an Object DataBase (ODB), an Economic Word Stock (EWS), and an Eco DataBase (EDB).
Wherein, AIES: an intelligent search engine (AI elastic search) is based on a common search engine, synonym and near synonym analysis is added, corresponding synonym and near synonym are searched from an economic word stock by using the current searched keywords, and all contents are reordered and displayed according to the relevance. ODB: an Object Data Base (Object Data Base) for storing various Data such as documents, images, videos, and the like, which is not limited herein. EWS: the Economics Word Stock stores Economics related words in a relational form, where the stored contents include Economics nouns, paraphrases, codes, units, conversion rates, synonyms, and the like, which are not limited herein. EDB (electro-deposition) and EDB (electro-deposition): a macro Economic DataBase (Economic DataBase) for storing various Economic data, the data may exist as follows: documents, images, videos, etc., without limitation. The intelligent search engine, the object storage database, the economic word stock and the macro economic database can be software modules or hardware modules.
Based on the economic data query system, the following functions can be realized:
the intelligent search engine acquires a first keyword set, wherein the first keyword set comprises at least one keyword;
the economics word stock determines a relevant vocabulary corresponding to each keyword in the first keyword set, and the relevant vocabulary and the first keyword set form a second keyword set, wherein the relevant vocabulary comprises at least one of the following words: synonyms, near synonyms, vocabulary codes;
the macro economic database searches according to the second keyword set to obtain a first search result set, and sends the first search result set to the object storage database;
the object store database generates a second set of search results from the first set of search results.
It can be seen that, through the above embodiment of the application, on one hand, the economic data is searched by one key, the search times are reduced, the data content is systematically displayed, and the difficulty of searching the data by the user is reduced, and on the other hand, the data search range can be effectively expanded, and the related data can be searched out, so that the economic data query efficiency can be improved.
In addition, the economic data query system further has the following functions:
the intelligent search engine is used for acquiring a first keyword set, and the first keyword set comprises at least one keyword;
the economic word stock is used for determining a related word corresponding to each keyword in the first keyword set, and forming the related word and the first keyword set into a second keyword set, where the related word includes at least one of the following words: synonyms, near synonyms, vocabulary codes;
the macro economic database is used for searching according to the second keyword set to obtain a first search result set, and sending the first search result set to the object storage database;
and the object storage database is used for generating a second search result set according to the first search result set.
Optionally, the related vocabulary includes: a lexical code and a proximal vocabulary comprising at least one of: synonyms, near synonyms;
the macro economic database searches according to the second keyword set to obtain a first search result set, and the method comprises the following steps:
the macro economic database determines related data according to the vocabulary codes and generates relational data according to the related data; searching according to the similar words to obtain M search results, wherein M is a positive integer; determining the relational data and the M search results as the first set of search results.
Optionally, the searching according to the second keyword set to obtain a first search result includes:
searching according to the second keyword set to obtain P search results, wherein P is a positive integer;
sequencing the P search results to obtain P sequenced search results;
and selecting the top Q search results from the sorted P search results, and taking the Q search results as the first search result set.
Optionally, the sorting the P search results to obtain P sorted search results includes:
determining the browsing times of each search result in the P search results to obtain P browsing times;
and sequencing the P search results according to the P browsing times to obtain the sequenced P search results.
Optionally, the selecting top Q search results from the sorted P search results includes:
determining a target average value of the P browsing times;
calculating a target mean square error according to the P browsing times and the target mean value;
determining a first reserved quantity corresponding to the P according to a mapping relation between the preset search result quantity and the reserved quantity;
determining a target optimization factor corresponding to the target mean square error;
optimizing the first reserved quantity according to the target optimization factor to obtain Q;
and selecting the top Q search results from the sorted P search results.
Optionally, the object storage database is further configured to obtain a target original file, perform keyword extraction on the target original file to obtain a third keyword set, and perform search according to the third keyword set to obtain a third search result set;
then, in generating a second set of search results from the first set of search results at the object store database, comprising:
the object storage database is specifically configured to generate the second search result set according to the first search result set and the third search result set.
Optionally, in the aspect of generating the second search result set according to the first search result set and the third search result set, the object storage database is specifically configured to:
carrying out duplication elimination operation on the first search result set and the third search result set to obtain A search results, wherein A is a positive integer;
performing heat sorting on the A search results to obtain sorted A search results;
and B search results are selected from the A search results after the sorting, and the B search results are determined as the second search result set.
It can be understood that the functions of each program module of the economic data query system of this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating an economic data query method according to an embodiment of the present application, which is applied to the economic data query system shown in fig. 1, and the economic data query method includes:
201. the intelligent search engine acquires a first keyword set, wherein the first keyword set comprises at least one keyword.
In this embodiment, the first keyword set may include at least one keyword, and the at least one keyword may include at least one economically relevant professional vocabulary. The first set of keywords may be input by a user. The first keyword set may also be pre-stored in the object store database.
In a specific implementation, the intelligent search engine may directly read the first keyword set, or may obtain the first keyword set from the object storage database.
202. The economics word stock determines a relevant vocabulary corresponding to each keyword in the first keyword set, and the relevant vocabulary and the first keyword set form a second keyword set, wherein the relevant vocabulary comprises at least one of the following words: synonyms, near synonyms, lexical codes.
In particular implementations, the related vocabulary can include at least one of: synonyms, lexical codes, paraphrases, economic nouns, units, conversion rates, and the like, are not limited herein. Synonyms corresponding to each keyword can be one or more, and synonyms corresponding to each keyword can be one or more.
Specifically, the economic word stock can determine a related vocabulary corresponding to each keyword in the first keyword set, which is equivalent to expanding each keyword, and the related vocabulary and the first keyword set form a second keyword set, so that the search comprehensiveness can be improved. According to the embodiment of the application, the data searching range can be effectively expanded, the related data can be searched, and the data efficiency is improved by more than 50%.
203. And the macro economic database searches according to the second keyword set to obtain a first search result set, and sends the first search result set to the object storage database.
In a specific implementation, the macro-economic database may search according to the second keyword set to obtain a first search result set, where the first search result set may include at least one search result, and then send the first search result set to the object storage database for storage.
Optionally, the related vocabulary includes: a lexical code and a proximal vocabulary comprising at least one of: synonyms, near synonyms;
in step 203, the macro economic database searches according to the second keyword set to obtain a first search result set, which may be implemented as follows:
the macro economic database determines related data according to the vocabulary codes and generates relational data according to the related data; searching according to the similar words to obtain M search results, wherein M is a positive integer; determining the relational data and the M search results as the first set of search results.
In the embodiment of the present application, the related vocabulary may include a vocabulary code and a similar vocabulary, and the similar vocabulary may include at least one of the following: synonyms, etc., are not defined herein. Synonyms may include synonyms in an economic sense, or synonyms in an economic sense. Synonyms can also include synonyms in an economic sense or synonyms in a non-economic sense.
In a specific implementation, the macro-economic database may determine relevant data according to the vocabulary codes, that is, find out data corresponding to the vocabulary codes, generate relational data according to the relevant data, that is, correlate the relationship between the keywords and the data to obtain the relational data, perform a search according to the similar vocabularies to obtain M search results, where M is a positive integer, and finally determine the relational data and the M search results as the first search result set, so that the search comprehensiveness may be ensured.
Optionally, in the above step, the searching according to the second keyword set to obtain the first search result may include the following steps:
s1, searching according to the second keyword set to obtain P search results, wherein P is a positive integer;
s2, sequencing the P search results to obtain P sequenced search results;
s3, selecting the top Q search results from the sorted P search results, and taking the Q search results as the first search result set.
In a specific implementation, the search may be performed according to the second keyword set to obtain P search results, where P is a positive integer, and then the P search results are ranked to obtain P ranked search results, for example, the search may be performed based on browsing times of the search results to obtain P ranked search results, and then Q top search results are selected from the P ranked search results, and the Q search results are used as the first search result set, so that search results popular to the user may be selected.
Optionally, in the step S2, the sorting the P search results to obtain P sorted search results may include the following steps:
s21, determining the browsing times of each search result in the P search results to obtain P browsing times;
s22, sorting the P search results according to the P browsing times to obtain P sorted search results.
In a specific implementation, the browsing times of each search result in the P search results may be determined to obtain P browsing times, and the P search results may be ranked according to the browsing times in a descending order to obtain the ranked P search results.
Optionally, the step S3 of selecting the top Q search results from the sorted P search results may include the following steps:
s31, determining the target average value of the P browsing times;
s32, calculating a target mean square error according to the P browsing times and the target mean value;
s33, determining a first reserved quantity corresponding to the P according to a mapping relation between the preset search result quantity and the reserved quantity;
s34, determining a target optimization factor corresponding to the target mean square error;
s35, optimizing the first reserved quantity according to the target optimization factor to obtain Q;
and S36, selecting the top Q search results from the sorted P search results.
In the specific implementation, the target mean value of P browsing times can be determined, the target mean square error is calculated according to the P browsing times and the target mean value, the preset number of search results and the preset number of reserved results can be stored in advance, the first reserved number corresponding to P is determined according to the preset mapping relation between the number of search results and the reserved number, namely the number of the search results required to be selected is different, the target optimization factor corresponding to the target mean square error can be determined, the mapping relation between the mean square error and the optimization factor can be stored in advance, the mean square error reflects the quality of the search results to a certain extent, the larger the mean square error is, the smaller the optimization factor is, the smaller the mean square error is, the larger the search result is, the target optimization factor corresponding to the target mean square error can be determined based on the mapping relation, the first reserved number is optimized according to the target optimization factor, and obtaining Q (namely Q is (1+ target optimization factor) × the first reserved quantity, and further selecting the top Q search results from the P search results after sorting, thereby ensuring the quality of the search results.
204. The object store database generates a second set of search results from the first set of search results.
In a specific implementation, the object storage database may process the first search result set to obtain a second search result set, where the processing may include at least one of: screening, combining, sampling, etc., without limitation.
For example, in the embodiment of the present application, the AIES searches for a corresponding original file from the ODB, and returns a document, a picture, a video, and the like searched through a title, a keyword, and a text to the client, so as to form an initial search result; AIES sends vocabulary to EWS service; searching current vocabulary codes, synonyms and similar words by the EWS; the EWS finds out corresponding data from the EDB through encoding, forms relational data according to a relevant form, and returns AIES to form an initial relational data result; the EWS finds out corresponding similar words and synonyms through the current economic vocabulary, sends the similar words and the synonyms to the ODB through text search, and returns results corresponding to ODB search to form derived search results; and the EWS sends the codes of the synonyms and the synonyms to the EDB, and the EDB carries out query and forms a result to return.
According to the embodiment of the application, economic data can be searched by one key, the search times are reduced, data contents are displayed systematically, the difficulty of searching data by a user is reduced, and the number of N times of original data searching is reduced to 1 time.
Optionally, the method may further include the following steps:
the object storage database acquires a target original file, performs keyword extraction on the target original file to obtain a third keyword set, and performs searching according to the third keyword set to obtain a third search result set;
then, in step 204, the object storage database generates a second search result set according to the first search result set, which may be implemented as follows:
the object store database generates the second set of search results from the first set of search results and the third set of search results.
The target original file may be pre-stored in the object storage database, or may be selected by the user.
In a specific implementation, the object storage database may obtain a target original file, perform keyword extraction on the target original file, for example, return documents, pictures, videos, and the like searched through titles, keywords, and texts to a client, form an initial search result to obtain a third keyword set, and perform a search according to the third keyword set to obtain a third search result set.
Optionally, in the foregoing step, the object storage database generates the second search result set according to the first search result set and the third search result set, and may be implemented as follows:
carrying out duplication elimination operation on the first search result set and the third search result set to obtain A search results, wherein A is a positive integer;
performing heat sorting on the A search results to obtain sorted A search results;
and B search results are selected from the A search results after the sorting, and the B search results are determined as the second search result set.
In a specific implementation, deduplication operations may be performed on the first search result set and the third search result set to obtain a search results, where a is a positive integer, then the search results are subjected to heat ranking, for example, in a sequence of high and low heat, to obtain a ranked search result, then B search results are selected from the ranked a search results, and the B search results are determined as the second search result set, where B may be preset or default to the system, and B is a positive integer less than or equal to a.
It can be seen that, in the economic data query method, the economic data query system, and the related apparatus described in the embodiments of the present application, the economic data query system includes an intelligent search engine, an object storage database, an economic thesaurus, and a macro economic database, the intelligent search engine obtains a first keyword set, the first keyword set includes at least one keyword, the economic thesaurus determines a related vocabulary corresponding to each keyword in the first keyword set, and the related vocabulary and the first keyword set constitute a second keyword set, where the related vocabulary includes at least one of: synonyms, synonyms and vocabulary codes are obtained, the macro economic database is searched according to the second keyword set to obtain a first search result set, the first search result set is sent to the object storage database, and the object storage database generates a second search result set according to the first search result set.
Further, referring to fig. 3, fig. 3 is a schematic flowchart of another economic data query method according to an embodiment of the present application, as shown in the figure, applied to the economic data query system shown in fig. 1, where the economic data query method includes:
301. the intelligent search engine acquires a first keyword set, wherein the first keyword set comprises at least one keyword.
302. The economics word stock determines a relevant vocabulary corresponding to each keyword in the first keyword set, and the relevant vocabulary and the first keyword set form a second keyword set, wherein the relevant vocabulary comprises at least one of the following words: synonyms, near synonyms, lexical codes.
303. And the macro economic database searches according to the second keyword set to obtain a first search result set, and sends the first search result set to the object storage database.
304. And the object storage database acquires a target original file, performs keyword extraction on the target original file to obtain a third keyword set, and performs searching according to the third keyword set to obtain a third search result set.
305. The object store database generates the second set of search results from the first set of search results and the third set of search results.
For the detailed description of steps 301 to 305, reference may be made to the corresponding steps of the economic data query method described in fig. 2, which are not described herein again.
Based on the above embodiment of the application, on one hand, the economic data is searched by one key, the search times are reduced, the data content is systematically displayed, the difficulty of searching the data by a user is reduced, and on the other hand, the data searching range can be effectively expanded, and related data can be searched out, so that the economic data query efficiency can be improved.
In accordance with the foregoing embodiments, please refer to fig. 4, where fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and as shown in the drawing, the electronic device includes a processor, a memory, a communication interface, and one or more programs, which are applied to the electronic device, the one or more programs are stored in the memory and configured to be executed by the processor, and in an embodiment of the present application, the programs include instructions for performing the following steps:
the intelligent search engine acquires a first keyword set, wherein the first keyword set comprises at least one keyword;
the economics word stock determines a relevant vocabulary corresponding to each keyword in the first keyword set, and the relevant vocabulary and the first keyword set form a second keyword set, wherein the relevant vocabulary comprises at least one of the following words: synonyms, near synonyms, vocabulary codes;
the macro economic database searches according to the second keyword set to obtain a first search result set, and sends the first search result set to the object storage database;
the object store database generates a second set of search results from the first set of search results.
Optionally, the related vocabulary includes: a lexical code and a proximal vocabulary comprising at least one of: synonyms, near synonyms;
in terms of searching the macro-economic database according to the second keyword set to obtain a first search result set, the above procedure includes instructions for performing the following steps:
the macro economic database determines related data according to the vocabulary codes and generates relational data according to the related data; searching according to the similar words to obtain M search results, wherein M is a positive integer; determining the relational data and the M search results as the first set of search results.
Optionally, in the aspect that the search is performed according to the second keyword set to obtain the first search result, the program includes an instruction for executing the following steps:
searching according to the second keyword set to obtain P search results, wherein P is a positive integer;
sequencing the P search results to obtain P sequenced search results;
and selecting the top Q search results from the sorted P search results, and taking the Q search results as the first search result set.
Optionally, in the aspect of sorting the P search results to obtain P sorted search results, the program includes instructions for executing the following steps:
determining the browsing times of each search result in the P search results to obtain P browsing times;
and sequencing the P search results according to the P browsing times to obtain the sequenced P search results.
Optionally, in the aspect of selecting top Q search results from the sorted P search results, the program includes instructions for performing the following steps:
determining a target average value of the P browsing times;
calculating a target mean square error according to the P browsing times and the target mean value;
determining a first reserved quantity corresponding to the P according to a mapping relation between the preset search result quantity and the reserved quantity;
determining a target optimization factor corresponding to the target mean square error;
optimizing the first reserved quantity according to the target optimization factor to obtain Q;
and selecting the top Q search results from the sorted P search results.
Optionally, the program further includes instructions for performing the following steps:
the object storage database acquires a target original file, performs keyword extraction on the target original file to obtain a third keyword set, and performs searching according to the third keyword set to obtain a third search result set;
then, in an aspect where the object store database generates a second set of search results from the first set of search results, the program includes instructions for:
the object store database generates the second set of search results from the first set of search results and the third set of search results.
Optionally, in an aspect in which the object store database generates the second set of search results from the first set of search results and the third set of search results, the program includes instructions for:
carrying out duplication elimination operation on the first search result set and the third search result set to obtain A search results, wherein A is a positive integer;
performing heat sorting on the A search results to obtain sorted A search results;
and B search results are selected from the A search results after the sorting, and the B search results are determined as the second search result set.
It can be seen that the electronic device described in the embodiments of the present application includes an economic data query system, where the economic data query system includes an intelligent search engine, an object storage database, an economic vocabulary base, and a macro economic database, the intelligent search engine obtains a first keyword set, the first keyword set includes at least one keyword, the economic vocabulary base determines a related vocabulary corresponding to each keyword in the first keyword set, and configures the related vocabulary and the first keyword set into a second keyword set, where the related vocabulary includes at least one of: synonyms, synonyms and vocabulary codes are obtained, the macro economic database is searched according to the second keyword set to obtain a first search result set, the first search result set is sent to the object storage database, and the object storage database generates a second search result set according to the first search result set.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An economic data query method is applied to an economic data query system, wherein the economic data query system comprises an intelligent search engine, an object storage database, an economic word stock and a macro economic database, and the method comprises the following steps:
the intelligent search engine acquires a first keyword set, wherein the first keyword set comprises at least one keyword;
the economics word stock determines a relevant vocabulary corresponding to each keyword in the first keyword set, and the relevant vocabulary and the first keyword set form a second keyword set, wherein the relevant vocabulary comprises at least one of the following words: synonyms, near synonyms, vocabulary codes;
the macro economic database searches according to the second keyword set to obtain a first search result set, and sends the first search result set to the object storage database;
the object store database generates a second set of search results from the first set of search results.
2. The method of claim 1, wherein the related vocabulary comprises: a lexical code and a proximal vocabulary comprising at least one of: synonyms, synonyms;
the macro economic database searches according to the second keyword set to obtain a first search result set, and the method comprises the following steps:
the macro economic database determines related data according to the vocabulary codes and generates relational data according to the related data; searching according to the similar words to obtain M search results, wherein M is a positive integer; determining the relational data and the M search results as the first set of search results.
3. The method of claim 1, wherein searching according to the second keyword set to obtain a first search result comprises:
searching according to the second keyword set to obtain P search results, wherein P is a positive integer;
sequencing the P search results to obtain P sequenced search results;
and selecting the top Q search results from the sorted P search results, and taking the Q search results as the first search result set.
4. The method of claim 3, wherein the sorting the P search results to obtain the sorted P search results comprises:
determining the browsing times of each search result in the P search results to obtain P browsing times;
and sequencing the P search results according to the P browsing times to obtain the sequenced P search results.
5. The method of claim 4, wherein selecting top Q search results from the sorted P search results comprises:
determining a target average value of the P browsing times;
calculating a target mean square error according to the P browsing times and the target mean value;
determining a first reserved quantity corresponding to the P according to a mapping relation between the preset search result quantity and the reserved quantity;
determining a target optimization factor corresponding to the target mean square error;
optimizing the first reserved quantity according to the target optimization factor to obtain Q;
and selecting top Q search results from the sorted P search results.
6. The method according to any one of claims 1-5, further comprising:
the object storage database acquires a target original file, performs keyword extraction on the target original file to obtain a third keyword set, and performs searching according to the third keyword set to obtain a third search result set;
the object store database generates a second set of search results from the first set of search results, including:
the object store database generates the second set of search results from the first set of search results and the third set of search results.
7. The method of claim 6, wherein the object store database generates the second set of search results from the first set of search results and the third set of search results, comprising:
carrying out duplication elimination operation on the first search result set and the third search result set to obtain A search results, wherein A is a positive integer;
performing heat sorting on the A search results to obtain sorted A search results;
and B search results are selected from the A search results after the sorting, and the B search results are determined as the second search result set.
8. An economic data query system, comprising an intelligent search engine, an object storage database, an economic thesaurus and a macro economic database, wherein,
the intelligent search engine is used for acquiring a first keyword set, and the first keyword set comprises at least one keyword;
the economic word stock is used for determining a related word corresponding to each keyword in the first keyword set, and forming the related word and the first keyword set into a second keyword set, where the related word includes at least one of the following words: synonyms, near synonyms, vocabulary codes;
the macro economic database is used for searching according to the second keyword set to obtain a first search result set, and sending the first search result set to the object storage database;
and the object storage database is used for generating a second search result set according to the first search result set.
9. An electronic device comprising a processor, a memory for storing one or more programs and configured for execution by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN202210104051.3A 2022-01-27 2022-01-27 Economic data query method, device and storage medium Pending CN114547070A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210104051.3A CN114547070A (en) 2022-01-27 2022-01-27 Economic data query method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210104051.3A CN114547070A (en) 2022-01-27 2022-01-27 Economic data query method, device and storage medium

Publications (1)

Publication Number Publication Date
CN114547070A true CN114547070A (en) 2022-05-27

Family

ID=81673012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210104051.3A Pending CN114547070A (en) 2022-01-27 2022-01-27 Economic data query method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114547070A (en)

Similar Documents

Publication Publication Date Title
US20220261427A1 (en) Methods and system for semantic search in large databases
CN102368262B (en) Method and equipment for providing searching suggestions corresponding to query sequence
US9195717B2 (en) Image result provisioning based on document classification
US8577882B2 (en) Method and system for searching multilingual documents
CN105095440A (en) Search recommendation method and device
US20140379719A1 (en) System and method for tagging and searching documents
CN103136228A (en) Image search method and image search device
JP2015525929A (en) Weight-based stemming to improve search quality
CN110413875A (en) A kind of method and relevant apparatus of text information push
US20090276420A1 (en) Method and system for extending content
CN108446316B (en) association word recommendation method and device, electronic equipment and storage medium
JP6185379B2 (en) RECOMMENDATION DEVICE AND RECOMMENDATION METHOD
EP2192503A1 (en) Optimised tag based searching
CN113407785B (en) Data processing method and system based on distributed storage system
CN109634436B (en) Method, device, equipment and readable storage medium for associating input method
RU2568276C2 (en) Method of extracting useful content from mobile application setup files for further computer data processing, particularly search
US9454568B2 (en) Method, apparatus and computer storage medium for acquiring hot content
CN108345679B (en) Audio and video retrieval method, device and equipment and readable storage medium
CN106033417B (en) Method and device for sequencing series of video search
CN111753194B (en) Information pushing method and device, electronic equipment and storage medium
JP7395377B2 (en) Content search methods, devices, equipment, and storage media
CN112597274A (en) Document determination method, device, equipment and storage medium based on BM25 algorithm
US20230117678A1 (en) Method and apparatus for presenting search results
JP2012141681A (en) Query segment position determining device
CN114547070A (en) Economic data query method, device 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