CN106599082A - Retrieval method, related device and electronic equipment - Google Patents
Retrieval method, related device and electronic equipment Download PDFInfo
- Publication number
- CN106599082A CN106599082A CN201611043637.4A CN201611043637A CN106599082A CN 106599082 A CN106599082 A CN 106599082A CN 201611043637 A CN201611043637 A CN 201611043637A CN 106599082 A CN106599082 A CN 106599082A
- Authority
- CN
- China
- Prior art keywords
- retrieval
- high frequency
- search key
- server
- electronic equipment
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; 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
Technical field
The present invention relates to field of computer technology, more particularly to a kind of search method, relevant apparatus and electronic equipment.
Background technology
At present, high frequency words library file is generally preserved in server, high frequency words library file includes multiple labels, each mark
Sign the high frequency words of at least one correlation of correspondence.When user carries out search operaqtion by client, user is examined in client input
The term of user input is uploaded onto the server by rope word, client, server get after term with retrieval service end in
High frequency dictionary be compared, if including the term of user input in high frequency words library file, according to term determine
The label corresponding with term in high frequency words library file, the corresponding retrieval of all high frequency words under retrieval and display same label
As a result.For example, the label of " May ", and height corresponding with " May " label can be included in high frequency words library file
Frequency word " May ", " concert of May ", " song of May ", " song love ing " etc..When user passes through client
During input " May ", the term " May " of user input is uploaded retrieval service end by client, and server gets inspection
After rope word " May ", it is compared with the high frequency words in high frequency dictionary, retrieves the key word consistent with the retrieval information of input,
And its corresponding label " May " is obtained, is then examined as search key using each high frequency words under same label
Rope, i.e., enter line retrieval simultaneously respectively with " May ", " concert of May ", " song of May " and " song love ing "
Retrieval result is sent to client by network.
It should be noted that server by related corresponding each search key of label of the term of user input all
Enter line retrieval and retrieval result is sent to the prior art of client, when the retrieval high frequency words under same label are more, inspection
The speed of rope is slower, and the accuracy retrieved is not high.
The content of the invention
A kind of search method, relevant apparatus and electronic equipment are embodiments provided, rapidly, accurately can be obtained
Take the retrieval result that family wishes to retrieve.
The first aspect of the embodiment of the present invention provides a kind of search method, is applied to electronic equipment, including:
Obtain the retrieval information of user input;
Whether high frequency words library file is preserved in judging the electronic equipment, and the high frequency words library file is:From server
Obtain, by the server according to the inspection of the search key obtained in preset time period and each search key
The file that rope frequency is generated;
If it is judged that be it is yes, then:
Determine that the first retrieval with the retrieval information matches is closed according to the retrieval information and the high frequency words library file
Keyword;
First search key is sent to server;
Obtain the server and enter the retrieval result that line retrieval is obtained using first search key.
With reference in a first aspect, in the first possible embodiment of first aspect, methods described also includes:
It is described judge the electronic equipment in whether preserve high frequency words library file, if it is judged that be it is no, then:
The solicited message that high frequency words library file is downloaded in request is sent to the server;
Receive the server response high frequency words library file for asking to the electronic equipment to send.
It is with reference in a first aspect, in second possible embodiment of first aspect, described to judge the electronic equipment
In whether preserve high frequency words library file, if it is not, then:
The retrieval information is sent to server;
Obtain the server and enter the retrieval result that line retrieval is obtained using the retrieval information.
With reference to the first possible embodiment of first aspect or first aspect, the third in first aspect may
Embodiment in, it is described determined according to the retrieval information and the high frequency words library file with the retrieval information matches the
One search key, including:
According to the retrieval information, judge in the high frequency words library file with the presence or absence of the height with the retrieval information matches
Frequency search key, if the determination result is YES, then:
Determine corresponding first label of the high frequency search key;The high frequency words library file includes:At least one mark
Sign, and the high frequency search key related to each label;
Show related to first label high frequency search key in the high frequency words library file;
Obtain selection operation of the user to the corresponding high frequency search key of first label;
The high frequency search key that the selection operation is chosen is defined as into the first search key.
With reference to the third possible embodiment of first aspect, in the 4th kind of possible embodiment of first aspect
In, methods described also includes:
It is described to judge in the high frequency words library file with the presence or absence of the high frequency search key with the retrieval information matches,
If judged result is no,
The retrieval information is defined as into the first search key then.
Embodiment of the present invention second aspect provides a kind of search method, is applied to server, including:
According to the retrieval of the search key and each search key obtained from electronic equipment in preset time period
Frequency generates high frequency words library file;
The first search key that the electronic equipment sends is obtained, first search key is set by the electronics
It is crucial with the retrieval of the retrieval information matches that standby retrieval information and the high frequency words library file according to user input determines
Word;
Enter line retrieval in data base using first search key;
Retrieval result is sent to into the electronic equipment.
With reference to second aspect, in the first possible embodiment of second aspect, also include:
If receiving the solicited message of the request download high frequency words library file that the electronic equipment sends, to the electronics
Equipment sends the high frequency words library file.
With reference to the first possible embodiment of second aspect, in second possible embodiment of second aspect
In, also include:
If receiving the retrieval information that the electronic equipment sends;
Then enter line retrieval using the retrieval information, the retrieval result for obtaining is sent to the electronic equipment.
The embodiment of the present invention third aspect provides a kind of retrieval device, is applied to electronic equipment, including:
First acquisition unit, for obtaining the retrieval information of user input;
First judging unit, for judging high frequency words library file, the high frequency words whether are preserved in the electronic equipment
Library file is:Obtain from server, by the server according to the search key obtained in preset time period and each institute
State the file that the retrieval frequency of search key is generated;
First determining unit, if for first judging unit judged result for be when,:According to the retrieval letter
Breath and the high frequency words library file determine the first search key with the retrieval information matches;
First transmitting element, for sending first search key to server;
Second acquisition unit, enters inspection that line retrieval obtain using first search key for obtaining the server
Hitch fruit.
With reference to the third aspect, in the first possible embodiment of the third aspect, the retrieval device also includes:
Second transmitting element, for first judging unit judged result for it is no when, to the server send please
Seek the solicited message for downloading high frequency words library file;
3rd acquiring unit, responds the request of the second transmitting element transmission to institute for receiving the server
State the high frequency words library file of electronic equipment transmission.
With reference to the third aspect, in second possible embodiment of the third aspect, the retrieval device also includes:
3rd transmitting element, for first judging unit judged result for it is no when, send the inspection to server
Rope information;
4th acquiring unit, enters retrieval knot that line retrieval obtain using the retrieval information for obtaining the server
Really.
With reference to the first possible embodiment of the third aspect or the third aspect, the third in the third aspect may
Embodiment in, first determining unit includes:
Second judging unit, for according to the retrieval information, judge in the high frequency words library file with the presence or absence of with institute
State the high frequency search key of retrieval information matches;
Second determining unit, if the judged result for second judging unit is yes, determines that the high frequency retrieval is closed
Corresponding first label of keyword;The high frequency words library file includes:At least one label and the height related to each label
Frequency search key;
First display unit, the high frequency retrieval for showing related to first label in the high frequency words library file are closed
Keyword;
5th acquiring unit, grasps for obtaining selection of the user to the corresponding high frequency search key of first label
Make;
3rd determining unit, it is crucial for the high frequency search key that the selection operation is chosen is defined as the first retrieval
Word.
With reference to the third possible embodiment of the third aspect, in the 4th kind of possible embodiment of the third aspect
In, also include:
4th determining unit, for second judging unit judged result for it is no when, by the retrieval information determine
For the first search key.
Embodiment of the present invention fourth aspect provides a kind of retrieval device, is applied to server, including:
First processing units, for according to the search key and each institute obtained from electronic equipment in preset time period
The retrieval frequency for stating search key generates high frequency words library file;
6th acquiring unit, for obtaining the first search key that the electronic equipment sends, first retrieval is closed
Keyword is determining with the retrieval according to the retrieval information and the high frequency words library file of user input by the electronic equipment
The search key of information matches;
Second processing unit, for entering line retrieval in data base using first search key;
4th transmitting element, for the retrieval result that the second processing unit is retrieved is sent to the electronic equipment.
With reference to fourth aspect, in the first possible embodiment of fourth aspect, also include:
3rd processing unit, if the request of high frequency words library file is downloaded for receiving the request that the electronic equipment sends
Information, then send the high frequency words library file to the electronic equipment.
With reference to the first possible embodiment of fourth aspect, in second possible embodiment of fourth aspect
In, also include:
Fourth processing unit, if for receiving the retrieval information that the electronic equipment sends;Then using the retrieval letter
Cease the retrieval result for into line retrieval, obtaining and be sent to the electronic equipment.
A kind of electronic equipment is provided in terms of the embodiment of the present invention the 5th, including:Processor, memorizer, display, communication
Interface and bus;
Wherein, the processor, the memorizer, the display and the communication interface are connected by bus coupling
Connect;
The memorizer is used to store computer executable program code, and the executable program code includes instruction;When
When instructing described in the computing device, the instruction makes the electronic equipment perform above-mentioned first aspect or first aspect
Various possible search methods.
A kind of server is provided in terms of the embodiment of the present invention the 6th, including:Processor, memorizer, communication interface and total
Line;
Wherein, the processor, the memorizer and the communication interface are of coupled connections by the bus;
The memorizer is used to store computer executable program code, and the executable program code includes instruction;When
When instructing described in the computing device, the instruction makes the electronic equipment perform above-mentioned second aspect or second aspect
Various possible search methods.
As can be seen that technical scheme provided in an embodiment of the present invention is adopted, when electronic equipment gets the inspection of user input
During rope information, electronic equipment is determined and retrieval information according to the high frequency words library file preserved in retrieval information and electronic equipment
The target retrieval key word of matching;Then target retrieval key word is sent to server;Finally obtain server and use the mesh
Mark search key enters the retrieval result that line retrieval is obtained.The embodiment of the present invention is by determination target retrieval key word, and obtains
The retrieval result that server enters line retrieval to target retrieval key word is taken, the accuracy of recall precision and retrieval is improve, is lifted
Consumer's Experience.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to using needed for embodiment description
Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill of field, on the premise of not paying creative work, can be with other according to these accompanying drawings acquisitions
Accompanying drawing.
Fig. 1 is a kind of schematic flow sheet of search method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of search method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of retrieval device provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of retrieval device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of server provided in an embodiment of the present invention.
Specific embodiment
A kind of search method, relevant apparatus and electronic equipment are embodiments provided, rapidly, accurately can be obtained
Take retrieval result desired by family.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The embodiment of a part of the invention, rather than the embodiment of whole.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment obtained under the premise of creative work is not made by member, should all belong to the model of present invention protection
Enclose.
It is described in detail individually below.
Term " first ", " second ", " the 3rd " in description and claims of this specification and above-mentioned accompanying drawing and "
Four " it is etc. for distinguishing different objects, rather than for describing particular order.Additionally, term " comprising " and " having " and it
Any deformation, it is intended that cover and non-exclusive include.For example contain the process of series of steps or unit, method, be
System, product or equipment are not limited to the step of listing or unit, but alternatively also include the step of not listing or list
Unit, or alternatively also include other intrinsic for these processes, method, product or equipment step or unit.
In embodiments of the present invention, device can be referred to as user equipment (User Equipment, referred to as " UE "), movement
The equipment such as terminal (Mobile Terminal).The device obtains the retrieval information of user input as client, and according to retrieval
Information determines target retrieval key word, and the target retrieval key word of determination is sent to server, then obtains server
According to the retrieval result that target retrieval keyword retrieval is obtained.For example, device can be mobile phone (or referred to as mobile phone), flat board
The equipment with acquisition of information and communication function such as computer, notebook computer, desktop computer, can obtain the retrieval letter of user input
Breath, and obtain the retrieval result of server.
Fig. 1 is referred to, is a kind of schematic flow sheet of search method provided in an embodiment of the present invention.Retrieval shown in Fig. 1
Method, may comprise steps of:
101st, obtain the retrieval information of user input.
Wherein, retrieve information to obtain by retrieving input field, such as user's handss can be obtained in retrieval input field
The retrieval information write input or be input into by input method, it is also possible to which the voice inspection of user input is obtained by phonetic entry mode
Rope information.Such as, user input " May " conduct can retrieve information in retrieval input field.
102nd, high frequency words library file whether is preserved in judging the electronic equipment, the high frequency words library file is:From clothes
Business device is obtained, by the server according to the search key obtained in preset time period and each search key
Retrieval frequency generate file.
It should be noted that high frequency words library file can be obtained from server, specifically, can according to pre-set when
Between from server obtain high frequency words library file, such as can daily the set time from server acquisition high frequency words library file, such as
Can set and high frequency words library file be obtained from server at daily 7 o'clock, or 6:00 AM clock obtains high frequency from server on every Mondays
Dictionary file.May be appreciated, it is also possible to not the set time, such as, idle state or network can be in electronic equipment
When state is preferable, high frequency words library file is obtained from server;When can also work as the high frequency words library file in server and having change, clothes
Business device pushes the high frequency words library file after updating to electronic equipment;Or the high frequency words library file in server is when changing, from
Server obtains the more new file of high frequency dictionary, and electronic equipment updates high frequency words library file according to the more new file for obtaining.
103rd, if it is judged that be it is yes, then:According to the retrieval information and the high frequency words library file determine with it is described
First search key of retrieval information matches.
If it is judged that being yes, the high frequency words for having with the retrieval information matches are searched whether in high frequency dictionary,
If there are the high frequency words with retrieval information matches in high frequency dictionary, it is determined that the first label corresponding with retrieval information, need
It is noted that a label can be arranged for each high frequency words in high frequency dictionary, different high frequency words can be correspondingly identical
Label.Then obtain and show all high frequency words that there is same label with retrieval information, user can be from showing
Selected in high frequency words, the high frequency words more relevant with retrieval purpose are selected as the first search key.For example, if using
The retrieval information of family input is " May ", has " May " this high frequency words, then search and five in high frequency words library file
The moon, day had the high frequency words of same label, and such as, the high frequency words with the May with same label can include:" May
Concert ", " song of May " and " song love ing ", if user is actual to want that what is searched is the concert of May, can
To choose " concert of May " in display interface, then by " concert of May " as the first search key.
Optionally, if there is no the high frequency search key with the retrieval information matches in high frequency words library file, will
The retrieval information is defined as the first search key.
104th, first search key is sent to server.
For example, if the first search key determined by step 103 is " concert of May ", to service
Device sends the first search key " concert of May ", and server is retrieved in data base and " concert of May " phase
The information of pass.
105th, obtain the server and enter the retrieval result that line retrieval is obtained using first search key.
By taking the description of step 104 as an example, obtain server and retrieved using the first search key " concert of May "
The retrieval result for obtaining.The key word of server actual retrieval is reduced in this way, retrieval amount is reduced, so as to also subtract
Lack from server to electronic equipment feedack amount, improve recall precision, as target retrieval key word is wished with user
The result that prestige is obtained is more related, so the accuracy of retrieval is also improved.
As can be seen that technical scheme provided in an embodiment of the present invention is adopted, when electronic equipment gets the inspection of user input
During rope information, electronic equipment is determined and retrieval information according to the high frequency words library file preserved in retrieval information and electronic equipment
First search key of matching;Then the first search key is sent to server;Server is obtained finally using described the
One search key enters the retrieval result that line retrieval is obtained.The embodiment of the present invention is by the first search key of determination, and obtains
The retrieval result that server enters line retrieval to the first search key is taken, the accuracy of recall precision and retrieval is improve, is lifted
Consumer's Experience.
Optionally, in some possible embodiments of the invention, if high frequency words library file is not preserved in electronic equipment,
The solicited message for asking to download high frequency words library file is then sent to the server, and receives the server and respond described asking
The high frequency words library file for sending is sought to the electronic equipment.
Such as, the file entitled " high frequency dictionary " of high frequency words library file can be set, if not searching in the electronic device
To the file of file entitled " high frequency dictionary ", then do not preserve high frequency words library file in judging electronic equipment, then electronic equipment to
Server sends the solicited message that high frequency words library file is downloaded in request, asks to send text to electronic equipment when server response is described
During the file of part entitled " high frequency dictionary ", electronic equipment receives the file of the file entitled " high frequency dictionary ".By this reality
Apply mode the approach for obtaining high frequency words library file is provided for electronic equipment.
Optionally, in some possible embodiments of the invention, according to retrieval information, if in the high frequency words library file
There is no the first label with retrieval information matches, then it is the retrieval information corresponding key word is crucial as the first retrieval
Word.For example, if not existing in high frequency words library file and retrieval information " May " identical high frequency words, by " May "
As the first search key.The accuracy of retrieval can be improved using this embodiment.
Fig. 2 is referred to, is a kind of schematic flow sheet of search method provided in an embodiment of the present invention.Retrieval shown in Fig. 2
Method, is applied to server, may comprise steps of:
201st, according to the search key and each search key obtained from electronic equipment in preset time period
Retrieval frequency generates high frequency words library file.
For example, the retrieval information of nearest one month or a nearest week can be counted, can such as define by
Retrieval frequency is the key word of first 5 as the high frequency words in high frequency words library file.
202nd, the first search key that the electronic equipment sends is obtained, first search key is by the electricity
The retrieval with the retrieval information matches that sub- equipment is determined according to the retrieval information and the high frequency words library file of user input
Key word.
For example, if the retrieval information of user input is " May ", if according to retrieval information and high frequency words library file
It is determined that the first search key be " concert of May ", then from electronic equipment obtain " concert of May " this
Key word.
203rd, enter line retrieval in data base using first search key.
For example, if the first search key is " concert of May ", " concert of May " is used to exist
Enter line retrieval in data base.
204th, retrieval result is sent to into the electronic equipment.
By taking the description in step 203 as an example, then line retrieval will be entered as search key with " concert of May " and obtained
Retrieval result be sent to electronic equipment.
Optionally, if receiving the solicited message of the request download high frequency words library file that the electronic equipment sends, to
The electronic equipment sends the high frequency words library file.I.e.:If high frequency words library file is not preserved in electronic equipment, electronics sets
Standby to send the request for obtaining high frequency words library file, according to the request, server can be in real time or when predetermined
Between point or when network state is preferable to electronic equipment send high frequency words library file.Carry for electronic equipment in this way
Supply to obtain the approach of high frequency words library file.It is easy to electronic equipment accurately to obtain high frequency words library file real-time.
Optionally, if receiving the retrieval information that the electronic equipment sends;Then enter line retrieval using the retrieval information,
The retrieval result for obtaining is sent to the electronic equipment.If high frequency words library file is not for example preserved in electronic equipment,
With the retrieval information " song of May " of receiving user's input, and line retrieval can be entered with " song of May ", and will retrieval
As a result it is sent to electronic equipment.The accuracy of retrieval can be improved using this embodiment.
Refer to Fig. 3, Fig. 3 is a kind of structural representation of retrieval device that one embodiment of the present of invention is provided, such as Fig. 3
Shown, a kind of retrieval device 300 that one embodiment of the present of invention is provided can include:First acquisition unit 301, first judges
Unit 302, the first determining unit 303, the first transmitting element 304, and second acquisition unit 305.
Wherein, first acquisition unit 301, the method for performing step 101 in the inventive method embodiment Fig. 1, first
The embodiment of acquiring unit 301 may be referred to the corresponding description of step 101 in the inventive method embodiment Fig. 1, and here is no longer
Repeat.
First judging unit 302, the method for performing step 102 in the inventive method embodiment Fig. 1, first judges single
The embodiment of unit 302 may be referred to the corresponding description of step 102 in the inventive method embodiment Fig. 1, will not be described here.
First determining unit 303, the method for performing step 103 in the inventive method embodiment Fig. 1, first determines list
The embodiment of unit 303 may be referred to the corresponding description of step 103 in the inventive method embodiment Fig. 1, will not be described here.
First transmitting element 304, the method for performing step 104 in the inventive method embodiment Fig. 1, first sends single
The embodiment of unit 303 may be referred to the corresponding description of step 104 in the inventive method embodiment Fig. 1, will not be described here.
Second acquisition unit 305, the method for performing step 105 in the inventive method embodiment Fig. 1, second obtains single
The embodiment of unit 305 may be referred to the corresponding description of step 105 in the inventive method embodiment Fig. 1, will not be described here.
As can be seen that technical scheme provided in an embodiment of the present invention is adopted, when electronic equipment gets the inspection of user input
During rope information, electronic equipment is determined and retrieval information according to the high frequency words library file preserved in retrieval information and electronic equipment
First search key of matching;Then the first search key is sent to server;Server is obtained finally using described the
One search key enters the retrieval result that line retrieval is obtained.The embodiment of the present invention is by the first search key of determination, and obtains
The retrieval result that server enters line retrieval to the first search key is taken, the accuracy of recall precision and retrieval is improve, is lifted
Consumer's Experience.
Optionally, in some possible embodiments of the invention, retrieval device also includes:Second transmitting element and the 3rd
Acquiring unit.Wherein, the second transmitting element, for first judging unit judged result for it is no when, to the server
Send the solicited message that high frequency words library file is downloaded in request;3rd acquiring unit, for receiving server response described the
The high frequency words library file that the request that two transmitting elements send is sent to the electronic equipment.By this embodiment
The approach for obtaining high frequency words library file is provided for electronic equipment.
Optionally, in some possible embodiments of the invention, retrieval device can also include:3rd transmitting element and
4th acquiring unit.Wherein, the 3rd transmitting element, for first judging unit judged result for it is no when, to server
Send the retrieval information;4th acquiring unit, obtains for obtaining the server and entering line retrieval using the retrieval information
Retrieval result.The accuracy of retrieval can be improved using this embodiment.
Optionally, in some possible embodiments of the invention, the first determining unit can include:Second judges single
Unit, the second determining unit, the first display unit, the 5th acquiring unit and the 3rd determining unit.Wherein, the second judging unit, uses
With the presence or absence of the high frequency retrieval with the retrieval information matches in the high frequency words library file according to the retrieval information, is judged
Key word;Second determining unit, if the judged result for second judging unit is yes, determines that the high frequency retrieval is crucial
Corresponding first label of word;The high frequency words library file includes:At least one label and the high frequency related to each label
Search key;First display unit, for showing high frequency inspection related to first label in the high frequency words library file
Rope key word;5th acquiring unit, grasps for obtaining selection of the user to the corresponding high frequency search key of first label
Make;3rd determining unit, for the high frequency search key that the selection operation is chosen is defined as the first search key.Tool
Body description may refer to the corresponding description in previous methods embodiment, repeat no more here.
Optionally, in some possible embodiments of the invention, retrieval device can also also include:4th determines list
Unit, for second judging unit judged result for it is no when, the retrieval information is defined as into the first search key.Adopt
The accuracy of retrieval can be improved with this embodiment.
Refer to Fig. 4, Fig. 4 is a kind of structural representation of retrieval device that one embodiment of the present of invention is provided, such as Fig. 4
Shown, a kind of retrieval device 400 that one embodiment of the present of invention is provided can include:First processing units the 401, the 6th are obtained
Unit 402, second processing unit 403, and the 4th transmitting element 404.
Wherein, first processing units 401, the method for performing step 201 in the inventive method embodiment Fig. 2, first
The embodiment of processing unit 401 may be referred to the corresponding description of step 201 in the inventive method embodiment Fig. 2, and here is no longer
Repeat.
6th acquiring unit 402, the method for performing step 202 in the inventive method embodiment Fig. 2, the 6th obtains single
The embodiment of unit 402 may be referred to the corresponding description of step 202 in the inventive method embodiment Fig. 2, will not be described here.
Second processing unit 403, the method for performing step 203 in the inventive method embodiment Fig. 2, second processing list
The embodiment of unit 403 may be referred to the corresponding description of step 203 in the inventive method embodiment Fig. 2, will not be described here.
4th transmitting element 404, the method for performing step 204 in the inventive method embodiment Fig. 2, the 4th sends single
The embodiment of unit 404 may be referred to the corresponding description of step 204 in the inventive method embodiment Fig. 2, will not be described here.
Using technical scheme provided in an embodiment of the present invention, server enters line retrieval using the first search key, improves
Recall precision and the accuracy of retrieval, improve Consumer's Experience.
Optionally, in some possible embodiments of the invention, retrieval device can also include:3rd processing unit,
If the solicited message of high frequency words library file is downloaded for receiving the request that the electronic equipment sends, to the electronic equipment
Send the high frequency words library file.Optionally, the 3rd processing unit can be in real time or in predetermined time point or in net
High frequency words library file is sent to electronic equipment when network state is preferable.Acquisition high frequency words are provided for electronic equipment in this way
The approach of library file.It is easy to electronic equipment accurately to obtain high frequency words library file real-time.
Optionally, in some possible embodiments of the invention, retrieval device can also include:Fourth processing unit,
If for receiving the retrieval information that the electronic equipment sends;Then enter line retrieval using the retrieval information, the retrieval for obtaining
As a result it is sent to the electronic equipment.The accuracy of retrieval can be improved using this embodiment.
Fig. 5 is referred to, is a kind of electronic equipment provided in an embodiment of the present invention 500, with acquisition of information and communication function,
Specifically, the electronic equipment 500 shown in Fig. 5 can include:Processor 501, memorizer 502, display 503, communication interface 504
With bus 505.Wherein, display 503 is used for the retrieval information for showing user input, and shows from server the retrieval for obtaining
As a result with 500 use of electronic equipment during relevant information, communication interface 504 for being communicated with server, such as will
First search key is sent to server, and obtains retrieval result from server.
Processor 501, memorizer 502, display 503 and communication interface 504 are of coupled connections by bus 505.Wherein, institute
Memorizer 302 is stated for storing computer executable program code, the executable program code includes instruction;When the process
When device 501 performs the instruction, the method that the instruction performs the inventive method embodiment, may be referred in Fig. 1 step 101 to
In the method for step 105, and said method embodiment, the corresponding description of each step implementation procedure, will not be described here.
Based on same inventive concept, principle and the side of the present invention of the electronic equipment solve problem provided in the embodiment of the present invention
Search method in method embodiment is similar, therefore the enforcement of the electronic equipment may refer to the enforcement of said method, be succinctly to retouch
State, repeat no more here.
Using technical scheme provided in an embodiment of the present invention, when electronic equipment gets the retrieval information of user input,
Electronic equipment determines first with retrieval information matches according to the high frequency words library file preserved in retrieval information and electronic equipment
Search key;Then the first search key is sent to server;Server is obtained finally crucial using the described first retrieval
Word enters the retrieval result that line retrieval is obtained.The embodiment of the present invention is by determining the first search key, and acquisition server pair
First search key enters the retrieval result of line retrieval, improves the accuracy of recall precision and retrieval, improves Consumer's Experience.
Fig. 6 is referred to, is a kind of server 600 provided in an embodiment of the present invention, with acquisition of information and communication function, tool
Body ground, the electronic equipment 600 shown in Fig. 6 can include:Processor 601, memorizer 602, communication interface 603 and bus 604.Its
In, communication interface 603 is received the electronic equipment as client for communicating with the electronic equipment as client, such as
First search key for sending etc..
Processor 601, memorizer 602 and communication interface 603 are of coupled connections by bus 604.Wherein, the memorizer
602 are used to store computer executable program code, and the executable program code includes instruction;When the processor 601 is held
During the row instruction, the method that the instruction performs the inventive method embodiment, in may be referred to Fig. 2, step 201 is to step 204
Method, and the corresponding description of each step implementation procedure in said method embodiment will not be described here.
Based on same inventive concept, the principle and the inventive method of the server solve problem provided in the embodiment of the present invention
Search method in embodiment is similar, therefore the enforcement of the server may refer to the enforcement of said method, is succinct description,
Here repeat no more.
The embodiment of the present invention also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium can be stored with journey
Sequence, described program include the part or all of step of any one search method described in said method embodiment when performing.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion described in detail in certain embodiment
Point, may refer to the associated description of other embodiment.
It should be noted that for aforesaid each method embodiment, in order to be briefly described, therefore which is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention do not limited by described sequence of movement because
According to the present invention, some steps may adopt other orders or while carry out.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily this
It is bright necessary.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way
Realize.For example, device embodiment described above is only schematic, the division of such as said units, is only one kind
Division of logic function, can have when actually realizing other dividing mode, such as multiple units or component can with reference to or can
To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other
Coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication connection by some interfaces, device or unit,
Can be electrical or other forms.
The above-mentioned unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can local to be located at one, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, during each functional unit in various embodiments of the present invention can be integrated in a processing unit, or
Unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated unit
Both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If above-mentioned integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit
When, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part for contributing to prior art in other words or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, use so that a computer including some instructions
Equipment (can be personal computer, server or network equipment etc., can be specifically the processor in computer equipment) is held
The all or part of step of row each embodiment said method of the invention.Wherein, aforesaid storage medium may include:USB flash disk, shifting
Dynamic hard disk, magnetic disc, CD, read only memory (ROM, Read-Only Memory) or random access memory (RAM,
Random Access Memory) etc. it is various can be with the medium of store program codes.
The above, above example only to illustrate technical scheme, rather than a limitation;Although with reference to front
State embodiment to be described in detail the present invention, it will be understood by those within the art that:Which still can be to front
State the technical scheme described in each embodiment to modify, or equivalent is carried out to which part technical characteristic;And these
Modification is replaced, and does not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (10)
1. a kind of search method, is applied to electronic equipment, it is characterised in that include:
Obtain the retrieval information of user input;
Whether high frequency words library file is preserved in judging the electronic equipment, and the high frequency words library file is:Obtain from server
, by the server according to the retrieval of the search key obtained in preset time period and each search key frequency
The file that rate is generated;
If it is judged that be it is yes, then:
The first search key with the retrieval information matches is determined according to the retrieval information and the high frequency words library file;
First search key is sent to server;
Obtain the server and enter the retrieval result that line retrieval is obtained using first search key.
2. method according to claim 1, it is characterised in that methods described also includes:
It is described judge the electronic equipment in whether preserve high frequency words library file, if it is judged that be it is no, then:
The solicited message that high frequency words library file is downloaded in request is sent to the server;
Receive the server response high frequency words library file for asking to the electronic equipment to send.
3. method according to claim 1, it is characterised in that it is described judge the electronic equipment in whether preserve high frequency
Dictionary file, if it is not, then:
The retrieval information is sent to server;
Obtain the server and enter the retrieval result that line retrieval is obtained using the retrieval information.
4. method according to claim 1 and 2, it is characterised in that described according to the retrieval information and the high frequency words
Library file determines the first search key with the retrieval information matches, including:
According to the retrieval information, judge in the high frequency words library file with the presence or absence of the high frequency inspection with the retrieval information matches
Rope key word, if the determination result is YES, then:
Determine corresponding first label of the high frequency search key;The high frequency words library file includes:At least one label, with
And the high frequency search key related to each label;
Show related to first label high frequency search key in the high frequency words library file;
Obtain selection operation of the user to the corresponding high frequency search key of first label;
The high frequency search key that the selection operation is chosen is defined as into the first search key.
5. method according to claim 4, it is characterised in that methods described also includes:
It is described to judge in the high frequency words library file with the presence or absence of the high frequency search key with the retrieval information matches, if sentencing
Disconnected result be it is no,
The retrieval information is defined as into the first search key then.
6. a kind of search method, is applied to server, it is characterised in that include:
According to the retrieval frequency of the search key and each search key obtained from electronic equipment in preset time period
Generate high frequency words library file;
The first search key that the electronic equipment sends is obtained, first search key is by the electronic equipment root
The search key with the retrieval information matches determined according to the retrieval information and the high frequency words library file of user input;
Enter line retrieval in data base using first search key;
Retrieval result is sent to into the electronic equipment.
7. method according to claim 6, it is characterised in that also include:
If receiving the solicited message of the request download high frequency words library file that the electronic equipment sends, to the electronic equipment
Send the high frequency words library file.
8. method according to claim 7, it is characterised in that also include:
If receiving the retrieval information that the electronic equipment sends;
Then enter line retrieval using the retrieval information, the retrieval result for obtaining is sent to the electronic equipment.
9. a kind of retrieval device, is applied to electronic equipment, it is characterised in that include:
First acquisition unit, for obtaining the retrieval information of user input;
First judging unit, for judging high frequency words library file whether is preserved in the electronic equipment, the high frequency words library text
Part is:Obtain from server, by the server according to the search key obtained in preset time period and each inspection
The file that the retrieval frequency of rope key word is generated;
First determining unit, if for first judging unit judged result for be when,:According to the retrieval information and
The high frequency words library file determines the first search key with the retrieval information matches;
First transmitting element, for sending first search key to server;
Second acquisition unit, enters retrieval knot that line retrieval obtain using first search key for obtaining the server
Really.
10. retrieval device according to claim 9, it is characterised in that the retrieval device also includes:
Second transmitting element, for first judging unit judged result for it is no when, to the server send request under
Carry the solicited message of high frequency words library file;
3rd acquiring unit, responds the request of the second transmitting element transmission to the electricity for receiving the server
The high frequency words library file that sub- equipment sends.
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 true CN106599082A (en) | 2017-04-26 |
CN106599082B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107247798A (en) * | 2017-06-27 | 2017-10-13 | 北京京东尚科信息技术有限公司 | The method and apparatus for building search dictionary |
CN108897843A (en) * | 2018-06-27 | 2018-11-27 | 吉安职业技术学院 | A kind of adaptive recommended method of text based on center method |
CN111680208A (en) * | 2020-04-22 | 2020-09-18 | 威比网络科技(上海)有限公司 | Cross-platform communication keyword retrieval method and device, electronic equipment and storage medium |
Citations (4)
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 |
-
2016
- 2016-11-21 CN CN201611043637.4A patent/CN106599082B/en active Active
Patent Citations (4)
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 |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107247798A (en) * | 2017-06-27 | 2017-10-13 | 北京京东尚科信息技术有限公司 | The method and apparatus for building search dictionary |
CN108897843A (en) * | 2018-06-27 | 2018-11-27 | 吉安职业技术学院 | A kind of adaptive recommended method of text based on center method |
CN108897843B (en) * | 2018-06-27 | 2021-12-24 | 吉安职业技术学院 | Text self-adaptive recommendation method based on center method |
CN111680208A (en) * | 2020-04-22 | 2020-09-18 | 威比网络科技(上海)有限公司 | Cross-platform communication keyword retrieval method and device, electronic equipment and storage medium |
CN111680208B (en) * | 2020-04-22 | 2023-05-30 | 平安直通咨询有限公司 | Cross-platform communication keyword retrieval method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106599082B (en) | 2020-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11222273B2 (en) | Service recommendation method, apparatus, and device | |
CN107105031A (en) | Information-pushing method and device | |
CN108153901A (en) | The information-pushing method and device of knowledge based collection of illustrative plates | |
CN109086303A (en) | The Intelligent dialogue method, apparatus understood, terminal are read based on machine | |
CN109819284A (en) | A kind of short video recommendation method, device, computer equipment and storage medium | |
CN109933708A (en) | Information retrieval method, device, storage medium and computer equipment | |
CN108255999A (en) | Content recommendation method and device | |
CN109255000A (en) | A kind of the dimension management method and device of label data | |
CN107678719A (en) | Page display method and device, electronic equipment and storage medium | |
CN107578659A (en) | Generation method, generating means and the terminal of electronics topic | |
CN106599082A (en) | Retrieval method, related device and electronic equipment | |
CN109063104A (en) | Method for refreshing, device, storage medium and the terminal device of recommendation information | |
CN110473042B (en) | Method and device for acquiring information | |
CN110325987A (en) | Context voice driven depth bookmark | |
CN109819002B (en) | Data pushing method and device, storage medium and electronic device | |
CN109284367A (en) | Method and apparatus for handling text | |
CN108140055A (en) | Trigger application message | |
CN105260034B (en) | A kind of character input method and device | |
CN108073708A (en) | Information output method and device | |
CN114065750A (en) | Commodity information matching and publishing method and device, equipment, medium and product thereof | |
CN104572981B (en) | A kind of Webpage method for caching and processing and mobile terminal device | |
CN114428842A (en) | Method and device for expanding question-answer library, electronic equipment and readable storage medium | |
CN108182180B (en) | Method and apparatus for generating information | |
CN108460020A (en) | Method and device for obtaining information | |
CN114265777B (en) | Application program testing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |