CN106599082B - Retrieval method, related device and electronic equipment - Google Patents

Retrieval method, related device and electronic equipment Download PDF

Info

Publication number
CN106599082B
CN106599082B CN201611043637.4A CN201611043637A CN106599082B CN 106599082 B CN106599082 B CN 106599082B CN 201611043637 A CN201611043637 A CN 201611043637A CN 106599082 B CN106599082 B CN 106599082B
Authority
CN
China
Prior art keywords
retrieval
frequency
search
file
keyword
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
CN201611043637.4A
Other languages
Chinese (zh)
Other versions
CN106599082A (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 Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201611043637.4A priority Critical patent/CN106599082B/en
Publication of CN106599082A publication Critical patent/CN106599082A/en
Application granted granted Critical
Publication of CN106599082B publication Critical patent/CN106599082B/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/951Indexing; Web crawling techniques

Abstract

The embodiment of the invention discloses a retrieval method, a related device and electronic equipment, wherein the method comprises the following steps: acquiring retrieval information input by a user; judging whether a high-frequency word stock file is stored in the electronic equipment, wherein the high-frequency word stock file is as follows: the method comprises the steps that a file is obtained from a server and generated by the server according to search keywords obtained in a preset time period and the search frequency of each search keyword; if the judgment result is yes, then: determining a first retrieval keyword matched with the retrieval information according to the retrieval information and the high-frequency word bank file; sending the first search keyword to a server; and acquiring a retrieval result obtained by the server by using the first retrieval keyword for retrieval. According to the embodiment of the invention, the first retrieval keyword is determined, and the retrieval result of the server for retrieving the first retrieval keyword is obtained, so that the retrieval efficiency and the retrieval accuracy are improved, and the user experience is improved.

Description

Retrieval method, related device and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a retrieval method, a related device and electronic equipment.
Background
At present, a high-frequency thesaurus file is usually stored in a server, and the high-frequency thesaurus file comprises a plurality of labels, and each label corresponds to at least one related high-frequency word. When a user carries out retrieval operation through a client, the user inputs a retrieval word at the client, the client uploads the retrieval word input by the user to a server, the server obtains the retrieval word and then compares the retrieval word with a high-frequency word bank in a retrieval service end, if the high-frequency word bank file comprises the retrieval word input by the user, a label corresponding to the retrieval word in the high-frequency word bank file is determined according to the retrieval word, and retrieval results corresponding to all the high-frequency words under the same label are retrieved and displayed. For example, the high-frequency thesaurus file may include a label of "may day", and the high-frequency words "may day", "a concert of may day", "a song loving" and the like corresponding to the label of "may day". When a user inputs 'May day' through a client, the client uploads a search word 'May day' input by the user to a search server, after the server acquires the search word 'May day', the server compares the search word with high-frequency words in a high-frequency word bank, searches keywords consistent with the input search information, acquires a label 'May day' corresponding to the keywords, and then searches by taking the high-frequency words under the same label as the search keywords, namely searches by respectively taking 'May day', 'May day' concert ',' May day 'song' and 'song love' and transmits the search result to the client through a network.
It should be noted that, in the prior art in which the server searches all the search keywords corresponding to the tags related to the search terms input by the user and transmits the search results to the client, when there are many search high-frequency terms under the same tag, the search speed is slow, and the accuracy of the search is not high.
Disclosure of Invention
The embodiment of the invention provides a retrieval method, a related device and electronic equipment, which can quickly and accurately acquire a retrieval result which a user wants to retrieve.
A first aspect of an embodiment of the present invention provides a retrieval method, which is applied to an electronic device, and includes:
acquiring retrieval information input by a user;
judging whether a high-frequency word stock file is stored in the electronic equipment, wherein the high-frequency word stock file is as follows: the method comprises the steps that a file is obtained from a server and generated by the server according to search keywords obtained in a preset time period and the search frequency of each search keyword;
if the judgment result is yes, then:
determining a first retrieval keyword matched with the retrieval information according to the retrieval information and the high-frequency word bank file;
sending the first search keyword to a server;
and acquiring a retrieval result obtained by the server by using the first retrieval keyword for retrieval.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the method further includes:
and judging whether the electronic equipment stores a high-frequency word stock file, if not, then:
sending request information for requesting to download the high-frequency word bank file to the server;
and receiving the high-frequency word bank file sent to the electronic equipment by the server in response to the request.
With reference to the first aspect, in a second possible implementation manner of the first aspect, the determining whether the electronic device stores a high-frequency thesaurus file is performed, and if not, the:
sending the retrieval information to a server;
and acquiring a retrieval result obtained by the server by using the retrieval information for retrieval.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the determining, according to the retrieval information and the high-frequency thesaurus file, a first retrieval keyword that matches the retrieval information includes:
judging whether a high-frequency search keyword matched with the search information exists in the high-frequency word bank file or not according to the search information, if so, then:
determining a first label corresponding to the high-frequency search keyword; the high-frequency thesaurus file comprises: at least one label and a high-frequency search keyword related to each label;
displaying high-frequency search keywords related to the first label in the high-frequency word bank file;
obtaining the selection operation of a user on the high-frequency retrieval key word corresponding to the first label;
and determining the high-frequency search keyword selected by the selection operation as a first search keyword.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the method further includes:
judging whether the high-frequency word bank file has a high-frequency search keyword matched with the search information, if not,
the search information is determined as a first search keyword.
A second aspect of the embodiments of the present invention provides a retrieval method, which is applied to a server, and includes:
generating a high-frequency word bank file according to search keywords acquired from electronic equipment within a preset time period and the search frequency of each search keyword;
acquiring a first retrieval keyword sent by the electronic equipment, wherein the first retrieval keyword is determined by the electronic equipment according to retrieval information input by a user and the high-frequency word bank file and is matched with the retrieval information;
searching in a database by using the first search keyword;
and sending the retrieval result to the electronic equipment.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes:
and if request information for requesting to download the high-frequency word stock file sent by the electronic equipment is received, sending the high-frequency word stock file to the electronic equipment.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the method further includes:
if receiving retrieval information sent by the electronic equipment;
and searching by using the search information, and sending the obtained search result to the electronic equipment.
A third aspect of an embodiment of the present invention provides a search apparatus applied to an electronic device, including:
a first acquisition unit configured to acquire search information input by a user;
a first determining unit, configured to determine whether a high-frequency thesaurus file is stored in the electronic device, where the high-frequency thesaurus file is: the method comprises the steps that a file is obtained from a server and generated by the server according to search keywords obtained in a preset time period and the search frequency of each search keyword;
a first determining unit, configured to, if a determination result of the first determining unit is yes: determining a first retrieval keyword matched with the retrieval information according to the retrieval information and the high-frequency word bank file;
the first sending unit is used for sending the first search keyword to a server;
and the second acquisition unit is used for acquiring a retrieval result obtained by the server by using the first retrieval keyword for retrieval.
With reference to the third aspect, in a first possible implementation manner of the third aspect, the retrieving apparatus further includes:
the second sending unit is used for sending request information for requesting to download the high-frequency word stock file to the server when the judgment result of the first judging unit is negative;
and the third acquiring unit is used for receiving the high-frequency word stock file sent to the electronic equipment by the server in response to the request sent by the second sending unit.
With reference to the third aspect, in a second possible implementation manner of the third aspect, the retrieving apparatus further includes:
a third sending unit, configured to send the search information to a server if the determination result of the first determining unit is negative;
and the fourth acquisition unit is used for acquiring a retrieval result obtained by the server by using the retrieval information to perform retrieval.
With reference to the third aspect or the first possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the first determining unit includes:
a second judging unit, configured to judge whether a high-frequency search keyword matching the search information exists in the high-frequency thesaurus file according to the search information;
a second determining unit, configured to determine, if a determination result of the second determining unit is yes, a first tag corresponding to the high-frequency search keyword; the high-frequency thesaurus file comprises: at least one label and a high-frequency search keyword related to each label;
the first display unit is used for displaying high-frequency search keywords related to the first label in the high-frequency word stock file;
a fifth obtaining unit, configured to obtain a selection operation of a user on a high-frequency search keyword corresponding to the first tag;
and the third determining unit is used for determining the high-frequency search keyword selected by the selecting operation as the first search keyword.
With reference to the third possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, the method further includes:
a fourth determination unit, configured to determine the search information as the first search keyword if the determination result of the second determination unit is negative.
A fourth aspect of the embodiments of the present invention provides a search apparatus, which is applied to a server, and includes:
the system comprises a first processing unit, a second processing unit and a searching unit, wherein the first processing unit is used for generating a high-frequency word stock file according to searching keywords acquired from electronic equipment within a preset time period and the searching frequency of each searching keyword;
a sixth acquiring unit, configured to acquire a first search keyword sent by the electronic device, where the first search keyword is a search keyword that is determined by the electronic device according to search information input by a user and the high-frequency thesaurus file and matches the search information;
the second processing unit is used for searching in a database by using the first search keyword;
and the fourth sending unit is used for sending the retrieval result retrieved by the second processing unit to the electronic equipment.
With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the method further includes:
and the third processing unit is used for sending the high-frequency word stock file to the electronic equipment if receiving request information which is sent by the electronic equipment and used for requesting to download the high-frequency word stock file.
With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the method further includes:
the fourth processing unit is used for receiving the retrieval information sent by the electronic equipment; and searching by using the search information, and sending the obtained search result to the electronic equipment.
A fifth aspect of an embodiment of the present invention provides an electronic device, including: a processor, a memory, a display, a communication interface and a bus;
wherein the processor, the memory, the display and the communication interface are coupled through the bus;
the memory is to store computer-executable program code, the executable program code comprising instructions; the instructions, when executed by the processor, cause the electronic device to perform the first aspect or the various possible retrieval methods of the first aspect.
A sixth aspect of an embodiment of the present invention provides a server, including: a processor, a memory, a communication interface, and a bus;
wherein the processor, the memory, and the communication interface are coupled by the bus;
the memory is to store computer-executable program code, the executable program code comprising instructions; the instructions, when executed by the processor, cause the electronic device to perform the second aspect or the various possible retrieval methods of the second aspect described above.
By adopting the technical scheme provided by the embodiment of the invention, when the electronic equipment acquires the retrieval information input by the user, the electronic equipment determines the target retrieval keyword matched with the retrieval information according to the retrieval information and the high-frequency word bank file stored in the electronic equipment; then sending a target retrieval keyword to a server; and finally, obtaining a retrieval result obtained by the server using the target retrieval keyword to perform retrieval. According to the embodiment of the invention, the target retrieval keywords are determined, and the retrieval result of the server for retrieving the target retrieval keywords is obtained, so that the retrieval efficiency and the retrieval accuracy are improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a retrieval method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a retrieval method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a retrieval apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a retrieval apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a retrieval method, a related device and electronic equipment, which can quickly and accurately acquire a retrieval result expected by a user.
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is a part of the embodiment of the present invention, but not a whole embodiment. 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 invention.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and 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, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
In the embodiment of the present invention, the apparatus may be referred to as a User Equipment (User Equipment, abbreviated as "UE"), a Mobile Terminal (Mobile Terminal), and other devices. The device is used as a client to obtain retrieval information input by a user, determine a target retrieval keyword according to the retrieval information, send the determined target retrieval keyword to a server, and then obtain a retrieval result retrieved by the server according to the target retrieval keyword. For example, the device may be a mobile phone (or called a mobile phone), a tablet computer, a notebook computer, a desktop computer, or other devices with information acquisition and communication functions, and may acquire search information input by a user and search results of a server.
Fig. 1 is a schematic flow chart of a retrieval method according to an embodiment of the present invention. The retrieval method shown in fig. 1 may include the following steps:
101. and acquiring retrieval information input by a user.
The search information may be obtained through a search input field, for example, search information input by a user through handwriting or an input method may be obtained in the search input field, or voice search information input by the user may be obtained through a voice input method. For example, the user may input "may be" may "as search information in the search input field.
102. Judging whether a high-frequency word stock file is stored in the electronic equipment, wherein the high-frequency word stock file is as follows: the method comprises the steps of obtaining a file which is generated by the server according to search keywords obtained in a preset time period and the search frequency of each search keyword, wherein the search keywords are obtained from the server.
It should be noted that the high-frequency lexicon file may be obtained from the server, specifically, the high-frequency lexicon file may be obtained from the server at a preset time, for example, the high-frequency lexicon file may be obtained from the server at a fixed time every day, for example, the high-frequency lexicon file may be obtained from the server at 7 o 'clock every day, or the high-frequency lexicon file may be obtained from the server at 6 o' clock every monday morning. It can be understood that the time may not be fixed, for example, when the electronic device is in an idle state or in a better network state, the high-frequency thesaurus file may be acquired from the server; or when the high-frequency word stock file in the server is changed, the server pushes the updated high-frequency word stock file to the electronic equipment; or when the high-frequency word stock file in the server changes, the updating file of the high-frequency word stock is obtained from the server, and the electronic equipment updates the high-frequency word stock file according to the obtained updating file.
103. If the judgment result is yes, then: and determining a first retrieval keyword matched with the retrieval information according to the retrieval information and the high-frequency word bank file.
If the high-frequency word matched with the retrieval information exists in the high-frequency word bank, determining a first label corresponding to the retrieval information, wherein the high-frequency word bank is used for storing the first label, and if the high-frequency word matched with the retrieval information exists in the high-frequency word bank, the first label is set for each high-frequency word in the high-frequency word bank. And then all high-frequency words with the same labels as the retrieval information are acquired and displayed, and the user can select from the displayed high-frequency words and select the high-frequency words more related to the retrieval purpose as first retrieval keywords. For example, if the search information input by the user is "may day" and there is a high-frequency word "may day" in the high-frequency thesaurus file, the high-frequency word having the same label as that of may day is searched, for example, the high-frequency word having the same label as that of may day may include: the method includes the steps of 'a concert in may day', 'a song in may day' and 'song loving', if a user actually wants to search for the concert in may day, the user can select the concert in may day in a display interface, and then the concert in may day is used as a first search keyword.
Optionally, if the high-frequency thesaurus file does not have the high-frequency search keyword matched with the search information, determining the search information as the first search keyword.
104. And sending the first search keyword to a server.
For example, if the first search keyword determined in step 103 is "a concert of may", the first search keyword "a concert of may be sent to the server", and the server searches the database for information related to the "concert of may".
105. And acquiring a retrieval result obtained by the server by using the first retrieval keyword for retrieval.
Taking the description of step 104 as an example, the retrieval result obtained by the server using the first retrieval keyword "concert of May day" is obtained. In this way, the keywords actually searched by the server are reduced, the search amount is reduced, the information amount fed back from the server to the electronic equipment is reduced, the search efficiency is improved, and the search accuracy is improved because the target search keywords are more relevant to the result expected by the user.
By adopting the technical scheme provided by the embodiment of the invention, when the electronic equipment acquires the retrieval information input by the user, the electronic equipment determines the first retrieval keyword matched with the retrieval information according to the retrieval information and the high-frequency word bank file stored in the electronic equipment; then sending a first search keyword to a server; and finally, obtaining a retrieval result obtained by the server by using the first retrieval keyword to perform retrieval. According to the embodiment of the invention, the first retrieval keyword is determined, and the retrieval result of the server for retrieving the first retrieval keyword is obtained, so that the retrieval efficiency and the retrieval accuracy are improved, and the user experience is improved.
Optionally, in some possible embodiments of the present invention, if the high-frequency thesaurus file is not stored in the electronic device, sending request information requesting to download the high-frequency thesaurus file to the server, and receiving the high-frequency thesaurus file sent by the server to the electronic device in response to the request.
For example, the file name of the high-frequency thesaurus file may be set as "high-frequency thesaurus", if the electronic device does not search for a file with the file name of "high-frequency thesaurus", it is determined that the electronic device does not store the high-frequency thesaurus file, the electronic device transmits request information requesting downloading of the high-frequency thesaurus file to the server, and when the server transmits the file with the file name of "high-frequency thesaurus" to the electronic device in response to the request, the electronic device receives the file with the file name of "high-frequency thesaurus". By the implementation, the electronic equipment is provided with a way for acquiring the high-frequency word stock file.
Optionally, in some possible embodiments of the present invention, according to search information, if there is no first tag matching the search information in the high-frequency thesaurus file, a keyword corresponding to the search information is used as a first search keyword. For example, if there is no high-frequency word in the high-frequency thesaurus file that is the same as the search information "may day," then "may day" is used as the first search keyword. The retrieval accuracy can be improved by adopting the embodiment.
Please refer to fig. 2, which is a flowchart illustrating a retrieval method according to an embodiment of the present invention. The retrieval method shown in fig. 2, applied to a server, may include the following steps:
201. and generating a high-frequency word stock file according to the retrieval keywords acquired from the electronic equipment within a preset time period and the retrieval frequency of each retrieval keyword.
For example, the retrieval information of the last month or the last week may be counted, for example, a keyword with the top 5 retrieval frequencies may be defined as a high-frequency word in the high-frequency thesaurus file.
202. And acquiring a first retrieval keyword sent by the electronic equipment, wherein the first retrieval keyword is determined by the electronic equipment according to retrieval information input by a user and the high-frequency word bank file and is matched with the retrieval information.
For example, if the search information input by the user is "may day", and if the first search keyword determined from the search information and the high-frequency thesaurus file is "concert of may day", the keyword "concert of may day" is acquired from the electronic device.
203. And searching in a database by using the first search keyword.
For example, if the first search keyword is "a concert of may", the database is searched using "a concert of may".
204. And sending the retrieval result to the electronic equipment.
Taking the description in step 203 as an example, a search result obtained by searching with "a concert of may day" as a search keyword is sent to the electronic device.
Optionally, if request information for requesting downloading of a high-frequency thesaurus file sent by the electronic device is received, the high-frequency thesaurus file is sent to the electronic device. Namely: if the high-frequency thesaurus file is not stored in the electronic equipment, the electronic equipment can send a request for acquiring the high-frequency thesaurus file, and according to the request, the server can send the high-frequency thesaurus file to the electronic equipment in real time or at a preset time point or in a better network state. In this way, a way for acquiring the high-frequency word stock file is provided for the electronic equipment. The high-frequency word stock file can be conveniently, quickly and accurately obtained by the electronic equipment in real time.
Optionally, if the retrieval information sent by the electronic device is received; and searching by using the search information, and sending the obtained search result to the electronic equipment. For example, if the high-frequency thesaurus file is not stored in the electronic device, the search information "song of may day" input by the user may be received, and the search may be performed with "song of may day", and the search result may be sent to the electronic device. The retrieval accuracy can be improved by adopting the embodiment.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a retrieval apparatus according to an embodiment of the present invention, and as shown in fig. 3, a retrieval apparatus 300 according to an embodiment of the present invention may include: a first acquisition unit 301, a first judgment unit 302, a first determination unit 303, a first transmission unit 304, and a second acquisition unit 305.
The first obtaining unit 301 is configured to execute the method in step 101 in fig. 1 in the embodiment of the method of the present invention, and the embodiment of the first obtaining unit 301 may refer to the description corresponding to step 101 in fig. 1 in the embodiment of the method of the present invention, which is not described herein again.
The first determining unit 302 is configured to execute the method in step 102 in fig. 1 in the method embodiment of the present invention, and the implementation manner of the first determining unit 302 may refer to the description corresponding to step 102 in fig. 1 in the method embodiment of the present invention, which is not described herein again.
The first determining unit 303 is configured to execute the method in step 103 in fig. 1 in the embodiment of the method of the present invention, and the description of the embodiment of the first determining unit 303 corresponding to step 103 in fig. 1 may be referred to, and is not repeated herein.
The first sending unit 304 is configured to execute the method in step 104 in fig. 1 in the method embodiment of the present invention, and the implementation manner of the first sending unit 303 may refer to the description corresponding to step 104 in fig. 1 in the method embodiment of the present invention, which is not described herein again.
The second obtaining unit 305 is configured to execute the method in step 105 in fig. 1 in the method embodiment of the present invention, and the implementation manner of the second obtaining unit 305 may refer to the corresponding description in step 105 in fig. 1 in the method embodiment of the present invention, which is not described herein again.
By adopting the technical scheme provided by the embodiment of the invention, when the electronic equipment acquires the retrieval information input by the user, the electronic equipment determines the first retrieval keyword matched with the retrieval information according to the retrieval information and the high-frequency word bank file stored in the electronic equipment; then sending a first search keyword to a server; and finally, obtaining a retrieval result obtained by the server by using the first retrieval keyword to perform retrieval. According to the embodiment of the invention, the first retrieval keyword is determined, and the retrieval result of the server for retrieving the first retrieval keyword is obtained, so that the retrieval efficiency and the retrieval accuracy are improved, and the user experience is improved.
Optionally, in some possible embodiments of the present invention, the retrieving apparatus further includes: a second sending unit and a third obtaining unit. The second sending unit is used for sending request information for requesting to download the high-frequency word stock file to the server when the judgment result of the first judging unit is negative; and the third acquiring unit is used for receiving the high-frequency word stock file sent to the electronic equipment by the server in response to the request sent by the second sending unit. By the implementation, the electronic equipment is provided with a way for acquiring the high-frequency word stock file.
Optionally, in some possible embodiments of the present invention, the retrieving apparatus may further include: a third sending unit and a fourth acquiring unit. The third sending unit is used for sending the retrieval information to a server when the judgment result of the first judging unit is negative; and the fourth acquisition unit is used for acquiring a retrieval result obtained by the server by using the retrieval information to perform retrieval. The retrieval accuracy can be improved by adopting the embodiment.
Optionally, in some possible embodiments of the present invention, the first determining unit may include: the device comprises a second judging unit, a second determining unit, a first display unit, a fifth acquiring unit and a third determining unit. The second judging unit is used for judging whether a high-frequency search keyword matched with the search information exists in the high-frequency word bank file or not according to the search information; a second determining unit, configured to determine, if a determination result of the second determining unit is yes, a first tag corresponding to the high-frequency search keyword; the high-frequency thesaurus file comprises: at least one label and a high-frequency search keyword related to each label; the first display unit is used for displaying high-frequency search keywords related to the first label in the high-frequency word stock file; a fifth obtaining unit, configured to obtain a selection operation of a user on a high-frequency search keyword corresponding to the first tag; and the third determining unit is used for determining the high-frequency search keyword selected by the selecting operation as the first search keyword. For a detailed description, reference may be made to corresponding descriptions in the foregoing method embodiments, which are not described herein again.
Optionally, in some possible embodiments of the present invention, the retrieving apparatus may further include: a fourth determination unit, configured to determine the search information as the first search keyword if the determination result of the second determination unit is negative. The retrieval accuracy can be improved by adopting the embodiment.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a retrieval apparatus according to an embodiment of the present invention, and as shown in fig. 4, a retrieval apparatus 400 according to an embodiment of the present invention may include: a first processing unit 401, a sixth acquisition unit 402, a second processing unit 403, and a fourth transmission unit 404.
The first processing unit 401 is configured to execute the method in step 201 in fig. 2 in the method embodiment of the present invention, and the embodiment of the first processing unit 401 may refer to the description corresponding to step 201 in fig. 2 in the method embodiment of the present invention, which is not described herein again.
A sixth obtaining unit 402, configured to execute the method in step 202 in fig. 2 in the method embodiment of the present invention, and the implementation manner of the sixth obtaining unit 402 may refer to the description corresponding to step 202 in fig. 2 in the method embodiment of the present invention, which is not described herein again.
The second processing unit 403 is configured to execute the method in step 203 in fig. 2 in the method embodiment of the present invention, and the description of the embodiment of the second processing unit 403 corresponding to step 203 in fig. 2 may refer to the description of the method embodiment of the present invention, which is not repeated herein.
A fourth sending unit 404, configured to execute the method in step 204 in fig. 2 in the embodiment of the method of the present invention, and the implementation of the fourth sending unit 404 may refer to the description corresponding to step 204 in fig. 2 in the embodiment of the method of the present invention, which is not described herein again.
By adopting the technical scheme provided by the embodiment of the invention, the server uses the first retrieval keyword to perform retrieval, so that the retrieval efficiency and the retrieval accuracy are improved, and the user experience is improved.
Optionally, in some possible embodiments of the present invention, the retrieving apparatus may further include: and the third processing unit is used for sending the high-frequency word stock file to the electronic equipment if receiving request information which is sent by the electronic equipment and used for requesting to download the high-frequency word stock file. Alternatively, the third processing unit may transmit the high frequency thesaurus file to the electronic device in real time or at a predetermined time point, or when the network status is good. In this way, a way for acquiring the high-frequency word stock file is provided for the electronic equipment. The high-frequency word stock file can be conveniently, quickly and accurately obtained by the electronic equipment in real time.
Optionally, in some possible embodiments of the present invention, the retrieving apparatus may further include: the fourth processing unit is used for receiving the retrieval information sent by the electronic equipment; and searching by using the search information, and sending the obtained search result to the electronic equipment. The retrieval accuracy can be improved by adopting the embodiment.
Referring to fig. 5, an electronic device 500 according to an embodiment of the present invention has information obtaining and communication functions, and specifically, the electronic device 500 shown in fig. 5 may include: a processor 501, a memory 502, a display 503, a communication interface 504, and a bus 505. Wherein, the display 503 is used for displaying the search information input by the user, and displaying the search result obtained from the server and the related information during the use of the electronic device 500, and the communication interface 504 is used for communicating with the server, such as sending the first search keyword to the server, and obtaining the search result from the server.
The processor 501, memory 502, display 503, and communication interface 504 are coupled by a bus 505. Wherein the memory 302 is to store computer-executable program code, the executable program code comprising instructions; when the processor 501 executes the instruction, the instruction executes the method according to the method embodiment of the present invention, which may refer to the method of steps 101 to 105 in fig. 1, and the description corresponding to the execution process of each step in the above method embodiment, and is not described herein again.
Based on the same inventive concept, the principle of the electronic device provided in the embodiment of the present invention for solving the problem is similar to the retrieval method in the embodiment of the method of the present invention, so the implementation of the electronic device may refer to the implementation of the above method, and is not described herein again for brevity.
By adopting the technical scheme provided by the embodiment of the invention, when the electronic equipment acquires the retrieval information input by the user, the electronic equipment determines a first retrieval keyword matched with the retrieval information according to the retrieval information and a high-frequency word bank file stored in the electronic equipment; then sending a first search keyword to a server; and finally, obtaining a retrieval result obtained by the server by using the first retrieval keyword to perform retrieval. According to the embodiment of the invention, the first retrieval keyword is determined, and the retrieval result of the server for retrieving the first retrieval keyword is obtained, so that the retrieval efficiency and the retrieval accuracy are improved, and the user experience is improved.
Referring to fig. 6, for a server 600 provided in an embodiment of the present invention, which has information obtaining and communication functions, specifically, the electronic device 600 shown in fig. 6 may include: a processor 601, a memory 602, a communication interface 603, and a bus 604. The communication interface 603 is used for communicating with the electronic device as the client, such as receiving a first search keyword sent by the electronic device as the client.
The processor 601, memory 602, and communication interface 603 are coupled by a bus 604. Wherein the memory 602 is used to store computer executable program code, the executable program code comprising instructions; when the processor 601 executes the instruction, the instruction executes the method according to the method embodiment of the present invention, which may refer to the method from step 201 to step 204 in fig. 2, and the corresponding description of the execution process of each step in the above method embodiment, and is not described herein again.
Based on the same inventive concept, the principle of solving the problem of the server provided in the embodiment of the present invention is similar to the retrieval method in the embodiment of the method of the present invention, so the implementation of the server may refer to the implementation of the above method, and for brevity, details are not described here again.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the computer storage medium includes part or all of the steps of any one of the retrieval methods described in the above method embodiments.
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.
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 invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. 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 by the invention.
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 invention 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 storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute all or part of the steps of the above-described method according to the embodiments of the present invention. The storage medium may include: a U disk, a removable hard disk, a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (16)

1. A retrieval method applied to electronic equipment is characterized by comprising the following steps:
acquiring retrieval information input by a user;
judging whether a high-frequency word stock file is stored in the electronic equipment, wherein the high-frequency word stock file is as follows: the method comprises the steps that a file is obtained from a server and generated by the server according to search keywords obtained in a preset time period and the search frequency of each search keyword;
if the judgment result is yes, then:
determining a first retrieval keyword matched with the retrieval information according to the retrieval information and the high-frequency word bank file;
sending the first search keyword to a server;
obtaining a retrieval result obtained by the server by using the first retrieval keyword for retrieval;
determining a first search keyword matched with the search information according to the search information and the high-frequency thesaurus file, wherein the determining comprises the following steps:
judging whether a high-frequency search keyword matched with the search information exists in the high-frequency word bank file or not according to the search information, if so, then:
determining a first label corresponding to the high-frequency search keyword; the high-frequency thesaurus file comprises: at least one label and a high-frequency search keyword related to each label;
displaying high-frequency search keywords related to the first label in the high-frequency word bank file;
obtaining the selection operation of a user on the high-frequency retrieval key word corresponding to the first label;
and determining the high-frequency search keyword selected by the selection operation as a first search keyword.
2. The method of claim 1, further comprising:
and judging whether the electronic equipment stores a high-frequency word stock file, if not, then:
sending request information for requesting to download the high-frequency word bank file to the server;
and receiving the high-frequency word bank file sent to the electronic equipment by the server in response to the request.
3. The method of claim 1, wherein the determining whether the electronic device stores a high frequency thesaurus file is performed by:
sending the retrieval information to a server;
and acquiring a retrieval result obtained by the server by using the retrieval information for retrieval.
4. The method of claim 1, further comprising:
judging whether the high-frequency word bank file has a high-frequency search keyword matched with the search information, if not,
the search information is determined as a first search keyword.
5. A retrieval method is applied to a server and is characterized by comprising the following steps:
generating a high-frequency word bank file according to search keywords acquired from electronic equipment within a preset time period and the search frequency of each search keyword;
acquiring a first retrieval keyword sent by the electronic equipment, wherein the first retrieval keyword is a retrieval keyword which is determined by the electronic equipment according to retrieval information input by a user and the high-frequency word bank file and is matched with the retrieval information, and specifically, when the high-frequency retrieval keyword matched with the retrieval information exists in the high-frequency word bank file, the high-frequency retrieval keyword which is related to the first label in the high-frequency word bank file is displayed by determining the first label corresponding to the high-frequency retrieval keyword, so that the first retrieval keyword is obtained by selecting the high-frequency retrieval keyword corresponding to the first label by the user;
searching in a database by using the first search keyword;
and sending the retrieval result to the electronic equipment.
6. The method of claim 5, further comprising:
and if request information for requesting to download the high-frequency word stock file sent by the electronic equipment is received, sending the high-frequency word stock file to the electronic equipment.
7. The method of claim 6, further comprising:
if receiving retrieval information sent by the electronic equipment;
and searching by using the search information, and sending the obtained search result to the electronic equipment.
8. A search device applied to an electronic device, comprising:
a first acquisition unit configured to acquire search information input by a user;
a first determining unit, configured to determine whether a high-frequency thesaurus file is stored in the electronic device, where the high-frequency thesaurus file is: the method comprises the steps that a file is obtained from a server and generated by the server according to search keywords obtained in a preset time period and the search frequency of each search keyword;
a first determining unit, configured to, if a determination result of the first determining unit is yes: determining a first retrieval keyword matched with the retrieval information according to the retrieval information and the high-frequency word bank file;
the first sending unit is used for sending the first search keyword to a server;
a second obtaining unit, configured to obtain a search result obtained by the server using the first search keyword to perform a search;
wherein the first determination unit includes:
a second judging unit, configured to judge whether a high-frequency search keyword matching the search information exists in the high-frequency thesaurus file according to the search information;
a second determining unit, configured to determine, if a determination result of the second determining unit is yes, a first tag corresponding to the high-frequency search keyword; the high-frequency thesaurus file comprises: at least one label and a high-frequency search keyword related to each label;
the first display unit is used for displaying high-frequency search keywords related to the first label in the high-frequency word stock file;
a fifth obtaining unit, configured to obtain a selection operation of a user on a high-frequency search keyword corresponding to the first tag;
and the third determining unit is used for determining the high-frequency search keyword selected by the selecting operation as the first search keyword.
9. The retrieval device of claim 8, wherein the retrieval device further comprises:
the second sending unit is used for sending request information for requesting to download the high-frequency word stock file to the server when the judgment result of the first judging unit is negative;
and the third acquiring unit is used for receiving the high-frequency word stock file sent to the electronic equipment by the server in response to the request sent by the second sending unit.
10. The retrieval device of claim 8, wherein the retrieval device further comprises:
a third sending unit, configured to send the search information to a server if the determination result of the first determining unit is negative;
and the fourth acquisition unit is used for acquiring a retrieval result obtained by the server by using the retrieval information to perform retrieval.
11. The retrieval device of claim 8, further comprising:
a fourth determination unit, configured to determine the search information as the first search keyword if the determination result of the second determination unit is negative.
12. A retrieval device applied to a server is characterized by comprising:
the system comprises a first processing unit, a second processing unit and a searching unit, wherein the first processing unit is used for generating a high-frequency word stock file according to searching keywords acquired from electronic equipment within a preset time period and the searching frequency of each searching keyword;
a sixth obtaining unit, configured to obtain a first search keyword sent by the electronic device, where the first search keyword is a search keyword that is determined by the electronic device according to search information input by a user and the high-frequency thesaurus file and matches the search information, and specifically, when a high-frequency search keyword that matches the search information exists in the high-frequency thesaurus file, the sixth obtaining unit obtains a selection operation of the user on the high-frequency search keyword corresponding to the first tag by determining a first tag corresponding to the high-frequency search keyword, and displaying the high-frequency search keyword related to the first tag in the high-frequency thesaurus file;
the second processing unit is used for searching in a database by using the first search keyword;
and the fourth sending unit is used for sending the retrieval result retrieved by the second processing unit to the electronic equipment.
13. The retrieval device of claim 12, further comprising:
and the third processing unit is used for sending the high-frequency word stock file to the electronic equipment if receiving request information which is sent by the electronic equipment and used for requesting to download the high-frequency word stock file.
14. The retrieval device of claim 13, further comprising:
the fourth processing unit is used for receiving the retrieval information sent by the electronic equipment; and searching by using the search information, and sending the obtained search result to the electronic equipment.
15. An electronic device, comprising: a processor, a memory, a display, a communication interface and a bus;
wherein the processor, the memory, the display and the communication interface are coupled by the bus;
the memory is to store computer-executable program code, the executable program code comprising instructions; the instructions, when executed by the processor, cause the electronic device to perform the retrieval method of any of claims 1-4.
16. A server, comprising: a processor, a memory, a communication interface, and a bus;
wherein the processor, the memory, and the communication interface are coupled by the bus;
the memory is to store computer-executable program code, the executable program code comprising instructions; the instructions, when executed by the processor, cause the electronic device to perform the retrieval method of any of claims 5-7.
CN201611043637.4A 2016-11-21 2016-11-21 Retrieval method, related device and electronic equipment Active CN106599082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611043637.4A CN106599082B (en) 2016-11-21 2016-11-21 Retrieval method, related device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611043637.4A CN106599082B (en) 2016-11-21 2016-11-21 Retrieval method, related device and electronic equipment

Publications (2)

Publication Number Publication Date
CN106599082A CN106599082A (en) 2017-04-26
CN106599082B true CN106599082B (en) 2020-07-14

Family

ID=58592977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611043637.4A Active CN106599082B (en) 2016-11-21 2016-11-21 Retrieval method, related device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106599082B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107247798B (en) * 2017-06-27 2021-05-25 北京京东尚科信息技术有限公司 Method and device for constructing search word bank
CN108897843B (en) * 2018-06-27 2021-12-24 吉安职业技术学院 Text self-adaptive recommendation method based on center method
CN111680208B (en) * 2020-04-22 2023-05-30 平安直通咨询有限公司 Cross-platform communication keyword retrieval method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1462954A2 (en) * 2003-03-28 2004-09-29 Hitachi Software Engineering Co., Ltd. Key word frequency calculation method and program for carrying out the same
CN1755671A (en) * 2004-09-30 2006-04-05 北京大学 Automatic error correction method for query words in search engine
CN101119518A (en) * 2007-09-17 2008-02-06 腾讯科技(深圳)有限公司 Wireless search system and method
CN102110126A (en) * 2009-12-29 2011-06-29 潘晓梅 Information retrieval method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1462954A2 (en) * 2003-03-28 2004-09-29 Hitachi Software Engineering Co., Ltd. Key word frequency calculation method and program for carrying out the same
CN1755671A (en) * 2004-09-30 2006-04-05 北京大学 Automatic error correction method for query words in search engine
CN101119518A (en) * 2007-09-17 2008-02-06 腾讯科技(深圳)有限公司 Wireless search system and method
CN102110126A (en) * 2009-12-29 2011-06-29 潘晓梅 Information retrieval method and device

Also Published As

Publication number Publication date
CN106599082A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
US20190370305A1 (en) Method and apparatus for providing search results
CN108804450B (en) Information pushing method and device
CN107577807B (en) Method and device for pushing information
KR102172163B1 (en) Method and apparatus for generating information
US20130282709A1 (en) Method and system for query suggestion
US20200356572A1 (en) Search ranking method and apparatus, electronic device and storage medium
JP5466190B2 (en) Server and recommendation method for recommending application to user
EP3355204A1 (en) Information search method and device
EP3012749A1 (en) Application information searching method and device
CN109933708A (en) Information retrieval method, device, storage medium and computer equipment
CN110968765B (en) Book searching method, computing device and computer storage medium
CN106599082B (en) Retrieval method, related device and electronic equipment
JP2013077152A (en) Application recommendation device and application recommendation method
CN107609192A (en) The supplement searching method and device of a kind of search engine
CN109582155B (en) Recommendation method and device for inputting association words, storage medium and electronic equipment
CN110059172B (en) Method and device for recommending answers based on natural language understanding
CN112330382A (en) Item recommendation method and device, computing equipment and medium
CN109656592B (en) Card management method, device, terminal and computer readable storage medium
CN109446417B (en) Intelligent retrieval method and device
CN114756570A (en) Vertical search method, device and system for purchase scene
CN107679186A (en) The method and device of entity search is carried out based on entity storehouse
CN107908662B (en) Method and device for realizing search system
CN113590756A (en) Information sequence generation method and device, terminal equipment and computer readable medium
CN106844406B (en) Search method and search device
CN108363707B (en) Method and device for generating webpage

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