CN107291953A - A kind of information query method, device, electronic equipment and storage medium - Google Patents
A kind of information query method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN107291953A CN107291953A CN201710629812.6A CN201710629812A CN107291953A CN 107291953 A CN107291953 A CN 107291953A CN 201710629812 A CN201710629812 A CN 201710629812A CN 107291953 A CN107291953 A CN 107291953A
- Authority
- CN
- China
- Prior art keywords
- keyword
- real time
- information
- keywords database
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/957—Browsing optimisation, e.g. caching or content distillation
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiments of the invention provide a kind of information query method, device, electronic equipment and storage medium, wherein, information query method includes:Obtain the keyword of user's input;The keyword is inquired about in default keywords database;When inquiring the keyword in the keywords database, data inquiry request is sent to real time data server, the data inquiry request includes the keyword;Receive the real time information corresponding with the keyword that the real time data server is sent;The real time information is shown in display interface.The embodiment of the present invention realizes the real time information obtained in time with Keywords matching.
Description
Technical field
The present invention relates to technical field of computer information processing, more particularly to a kind of information query method, device, electronics
Equipment and storage medium.
Background technology
With continuing to develop for network and intelligent terminal technology, and 3G, 4G network technology maturation and smart mobile phone
Popularization, mobile Internet turns into new trend.Under such megatrend, instant communication software is able to popularize rapidly, into
For daily communication and the primary communications mode of sharing information.
At present, carry out having formd a kind of main flow from media activity using public's account platform of instant communication software
On-line off-line interactive marketing mode.It is exactly to carry out one-to-many media sexual behaviour activity in simple terms, such as advertiser businessman passes through
Apply public service number and secondary development displaying businessman micro- official website, micro- member, micro- push, micropayments, micro- movable, micro- registration,
Micro sharing, micro- business card etc..
In the prior art, businessman is from the method for media activity using public's account platform progress of instant communication software:
User is paid close attention to after businessman public's account by public's account platform of instant communication software, sends businessman public account platform
The associative key of permission, the letter that the keyword that businessman public account platform is inputted according to user has been stored from system database
The information with the input Keywords matching is obtained in breath, it is businessman public's account that the information of acquisition is returned into instant communication software
The information display interface that platform is provided, user reads the corresponding information of keyword from the information display interface.
In the prior art, the keyword search inputted according to user information corresponding with keyword is from businessman's public's account
Obtained in the database of number Platform Server, in the information of interim storage, be not corresponding with keyword current newest
Real time information.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of information query method, device, electronic equipment and storage medium, with
Realize the real time information obtained in time with Keywords matching.Concrete technical scheme is as follows:
To achieve the above object of the invention, the embodiment of the invention discloses a kind of information query method, including:
Obtain the keyword of user's input;
The keyword is inquired about in default keywords database;
When inquiring the keyword in the keywords database, sending data query to real time data server please
Ask, the data inquiry request includes the keyword;
Receive the real time information corresponding with the keyword that the real time data server is sent;
The real time information is shown in display interface.
Alternatively, it is described to inquire about the keyword in default keywords database, including:
The keyword is inquired about in the keywords database of caching;
When not inquiring the keyword in the keywords database in the caching, in the keywords database of system database
Inquire about the keyword.
Alternatively, it is described to inquire about the keyword in default keywords database, including:
Determine the corresponding sub- keywords database of the keyword;
The keyword is inquired about in sub- keywords database corresponding with the keyword.
Alternatively, after the real time information corresponding with the keyword that the real time data server is sent is received,
Methods described also includes:
The display mode of the real time information is determined, the display mode includes information type and/or the institute of required display
The information format that need to be shown;
It is described to show the real time information in display interface, including:
In display interface the real time information is shown according to described information display mode.
Alternatively, the display mode for determining the real time information, including:
Rule is shown according to presupposed information, option prompt message, the option prompting letter are shown on the display interface
Breath includes multiple options, a kind of display mode of each option correspondence;
The option of user's selection is obtained, the corresponding display mode of option that the user is selected is defined as the real-time letter
The display mode of breath.
To achieve the above object of the invention, the embodiment of the invention also discloses a kind of information query device, including:
Acquisition module, the keyword for obtaining user's input;
Enquiry module, for inquiring about the keyword in default keywords database;
Request module, for when inquiring the keyword in the keywords database, being sent out to real time data server
Data inquiry request is sent, the data inquiry request includes the keyword;
Receiving module, for receiving the real time information corresponding with the keyword that the real time data server is sent;
Display module, for showing the real time information in display interface.
Alternatively, the enquiry module, including:
First inquiry submodule, for inquiring about the keyword in the keywords database of caching;
Second inquiry submodule, for when not inquiring the keyword in the keywords database in the caching, being
The keyword is inquired about in the keywords database of system database.
Alternatively, the enquiry module, including:
Determination sub-module, for determining the corresponding sub- keywords database of the keyword;
Submodule is inquired about, for inquiring about the keyword in sub- keywords database corresponding with the keyword.
Alternatively, described information inquiry unit also includes:
Presentation of information determining module, the display mode for determining the real time information, the display mode includes required
The information type of display and/or the information format of required display;
The display module, specifically for showing the real-time letter according to described information display mode in display interface
Breath.
Alternatively, described information shows determining module, including:
Option determination sub-module is shown, for showing rule according to presupposed information, option is shown on the display interface
Prompt message, the option prompt message includes multiple options, a kind of display mode of each option correspondence;
Presentation of information determination sub-module, the option for obtaining user's selection, the option that the user is selected is corresponding
Display mode is defined as the display mode of the real time information.
To achieve the above object of the invention, the embodiment of the invention also discloses a kind of electronic equipment, including processor, communication connect
Mouth, memory and communication bus, wherein, the processor, the communication interface, the memory are complete by the communication bus
Into mutual communication;
The memory, for depositing computer program;
The processor, for performing during the program deposited on memory, realizes any of above- mentioned information querying method
Method and step.
To achieve the above object of the invention, the embodiment of the invention also discloses a kind of computer-readable recording medium, the meter
Calculation machine readable storage medium storing program for executing internal memory contains computer program, when the computer program is executed by processor, realizes above- mentioned information
The either method step of querying method.
A kind of information query method provided in an embodiment of the present invention, device, electronic equipment and storage medium, to realize in time
Obtain the real time information with Keywords matching.Specifically, obtaining the keyword of user's input, inquired about in default keywords database
The keyword, realizes the detection of input information for the public's account platform for carrying instant communication software with matching, when belonging to the public affairs
Can just be entered during many account designated key words under public's account and obtain information, it is ensured that the security of public's account platform with
Special project.When inquiring the keyword in keywords database, data inquiry request is sent to real time data server, receives real
When data server send real time information corresponding with keyword, real time information is shown in display interface.Realize in real time
According to keyword lookup to key word information corresponding with current time, newest key word information can be fed back to user,
It is not newest information to solve the key word information shown in the prior art to user.In addition, the embodiment of the present invention is also provided
The information display methods of a variety of options, user can select corresponding option according to the demand of oneself, and target information is included
In display interface, the information display requirements for meeting user individual are realized.Certainly, any product or method of the present invention is implemented
It must be not necessarily required to while reaching all advantages of the above.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of information query method flow chart of the embodiment of the present invention;
Fig. 2 is a kind of information interactive process figure of the embodiment of the present invention;
Fig. 3 schemes for a kind of client terminal display of information query method of the embodiment of the present invention;
Fig. 4 is a kind of information query method application scenarios flow chart of the embodiment of the present invention;
Fig. 5 is a kind of information query device structural representation of the embodiment of the present invention;
Fig. 6 is a kind of electronic equipment schematic diagram of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
To achieve the above object of the invention, the embodiment of the invention discloses a kind of information query method, as shown in figure 1, including:
S101, obtains the keyword of user's input.
There is provided the instant communication software of communication function to have built from media operation platform for businessman, each businessman passes through flat at this
Public's account is registered on platform, user obtains the operation of businessman offer by searching for public's account on the instant communication software
Service.
In this step, user inputs keyword under public's account of instant communication software, public's account from
Server is defined by receive information service, the keyword of user input is obtained.
S102, inquires about the keyword in default keywords database.
The self-defined server can edit corresponding by PHP (Hypertext Preprocessor, HyperText Preprocessor)
Function.For example, editor user inputs the detection function of information, keywords database can be set in the self-defined server.The pass
Keyword in keyword storehouse can obtain renewal in real time with being somebody's turn to do by human-edited's word related to the website, or by script
The related newest hot word in website.
It is above-mentioned get user input keyword after, inquired about in the keywords database of the self-defined server either with or without
The keyword consistent with the keyword that user inputs.
S103, when inquiring the keyword in the keywords database, sends data to real time data server and looks into
Request is ask, the data inquiry request includes the keyword.
Real time data server is the server by network access real time data.User Defined server is by accessing
The real time data server can obtain the real time data related to asking.The web that the real time data server is similar to website takes
Business device, passes through web page address and accesses acquisition website real time information.
In embodiments of the present invention, the corresponding first class catalogue dish of each function that can be set according to the self-defined server of businessman
It is single, each first class catalogue menu is connected into a real data server.One real time data server is responsible for inquiry and this
The real time information of all predetermined keywords in the corresponding first class catalogue menu of function.The transmission service of one first class catalogue menu will
The data inquiry request of self-defined server generation, is sent to one with this first class catalogue menu correspondence establishment data cube computation
Real time data server.
If not inquiring the keyword of user input in self-defined server keywords database, illustrate now user
The keyword of input does not meet being required from media businessman on instant communication software platform, then self-defined server is to can be to instant
The display interface output prompt message of communication software, informs that user re-enters or exited.
If inquiring the keyword of user input in self-defined server keywords database, illustrate now user's input
Keyword be from media businessman can recognize that keyword.The self-defined server needs the keyword query inputted according to user
Real time information.
Concretely, found in the keywords database of self-defined server after the keyword, the keyword can determine that
Under that first class catalogue menu of the self-defined server.The self-defined server generation inputs the data of keyword comprising user
Inquiry request.The data inquiry request that the transmission service of the first class catalogue menu generates self-defined server, is sent to being somebody's turn to do
First class catalogue menu sets up a real time data server of data cube computation, asks the real time data server according to the keyword
Inquiry real time information corresponding with the keyword.
S104, receives the real time information corresponding with the keyword that the real time data server is sent.
The real time data related to the keyword found is returned to self-defined server by above-mentioned real time data server,
Self-defined server receives real time information corresponding with the keyword.
S105, shows the real time information in display interface.
After above-mentioned self-defined server receives the corresponding real time information of user's keyword, by the keyword real time information
It is shown on display interface.
A kind of information query method provided in an embodiment of the present invention, to realize the real-time letter obtained in time with Keywords matching
Breath.Specifically, obtaining the keyword of user's input, the keyword is inquired about in default keywords database, realizes and carries IMU
Believe that the detection of input information of public's account platform of software, with matching, can just enter when belonging to public's account designated key word
Enter and obtain information under public's account, it is ensured that the security of public's account platform and special project.When being looked into keywords database
When asking the keyword, to real time data server send data inquiry request, receiving real-time data server send with pass
The corresponding real time information of keyword, shows real time information in display interface.Realize in real time according to keyword lookup to working as
Preceding time corresponding key word information, can feed back to user by newest key word information, solve in the prior art to user
The key word information of display is not newest information.
In order to which clearer performance information is flowed to, there can be a kind of information exchange mistake of the embodiment of the present invention as shown in Figure 2
Cheng Tu.
In embodiments of the present invention, as shown by the arrows in Figure 2,1,2,3,4,5 represent the direction of transfer of information respectively in Fig. 2
For the step of five order correspondences of information exchanging process.Specially:
Step one, user inputs keyword from media platform in the businessman of instant communication software;
Step 2, obtains the keyword of user's input during the self-defined server of businessman, and is looked into default keywords database
Ask the keyword;
Step 3, when inquiring the keyword in the keywords database in the self-defined server of businessman, takes to real time data
Business device sends data inquiry request, asks according to keyword query real time information corresponding with the keyword.
Step 4, the real time data server is according to the keyword query real time information, and by the keyword pair inquired
The real time information answered returns to self-defined server.
Step 5, the self-defined server receives the real-time letter corresponding with the keyword of real time data server transmission
Breath, and the real time information is returned into user.
Alternatively, it is described to be inquired about in default keywords database in a kind of embodiment of information query method of the present invention
The keyword, including:
The keyword is inquired about in the keywords database of caching.
It is settable keywords database in memcache, the memcache that caching can be set in self-defined server.This delays
The keywords database deposited can be the hot word in system core dictionary, or be system statistics user's everyday words.When self-defined service
Device is got after the keyword of user's input, first can search keyword in the keywords database of caching.If searched in the buffer
To after the keyword as the keyword that user inputs, then illustrate that self-defined server can meet the query demand of user.
When not inquiring the keyword in the keywords database in the caching, in the keywords database of system database
Inquire about the keyword.
If the above-mentioned keyword not found in the keywords database of caching as the keyword that user inputs, can
Searched in system database mysql.System database mysql can be the data resource complementary with the database of caching, or
Person can be the database of the database resource comprising caching.
It can be seen that, keyword is searched by the embodiment of the present invention in the buffer, the load of server is significantly reduced, will be all kinds of
Conventional keywords database is stored directly in caching, reduces the interaction with databases, while also improving request response speed
Degree and lookup speed, particularly when there are a large amount of solicited messages, self-defined server performance is significantly improved.
Alternatively, it is described to be inquired about in default keywords database in a kind of embodiment of information query method of the present invention
The keyword, including:
Determine the corresponding sub- keywords database of the keyword.
In embodiments of the present invention, many sub- keywords databases can be set, the plurality of sub- keywords database can be according to the businessman certainly
The function classification that media are set in itself.Specifically the multiple first class catalogue menu correspondences of businessman can be divided into multiple keywords databases, will
Multiple second-level directory menus correspondence of each first class catalogue menu is divided into many sub- keywords databases.Stored in each keywords database
The search keyword being likely to occur in correspondence first class catalogue menu.Store right under the first class catalogue menu in every sub- keywords database
Answer the search keyword being likely to occur in second-level directory menu.
In this step, every sub- keywords database can be specifically divided into 2 parts, every sub- keywords database of part storage
In the keyword commonly used, form multiple first sub- keywords databases, another part stores remaining keyword, form multiple second sons
Keywords database.By the multiple first sub- keywords database storages in the buffer, multiple second sub- keywords databases are stored in system database
In.Or by the keyword storage commonly used in each subdata base in the buffer, it is correspondingly formed the multiple first sub- keywords databases.Will
Whole keywords are stored in system database in each subdata base, are correspondingly formed multiple second subdata bases.
After user inputs keyword, by preset rules first in the self-defined server buffer, detection closes this
Can keyword be positioned at a first sub- keywords database.
If passing through the preset rules, it is impossible to which the first son that the keyword is positioned at into the self-defined server buffer is crucial
Dictionary, then by the preset rules detect by the keyword can alignment system database in a second sub- keywords database.
The keyword is inquired about in sub- keywords database corresponding with the keyword.
It is slow in the self-defined server when the above-mentioned first sub- keywords database that the keyword is successfully positioned to caching
In the first sub- keywords database deposited, search whether exist and the use by multiple search keywords in the first sub- keywords database
The consistent keyword of keyword of family input.If above-mentioned one second son that the keyword is successfully positioned to system database
During keywords database, search whether there is the key inputted with the user by multiple search keywords in the second sub- keywords database
The consistent keyword of word.Success is searched if it there is consistent keyword.If the above-mentioned keyword can not be positioned at system data
During one second sub- keywords database in storehouse, or in the absence of one in the first sub- keywords database or the second sub- keywords database
Keyword is caused, prompt message is can return to, informs whether user re-enters keyword or log off.
It can be seen that, the key consistent with user's input keyword is searched in sub- keywords database by the embodiment of the present invention
Word, can be achieved the purpose of classification searching.In addition, shorten in the keywords database of whole system database search keyword when
Between, improve search efficiency.
Alternatively, in a kind of embodiment of information query method of the present invention, the real time data server hair is being received
After the real time information corresponding with the keyword sent, methods described also includes:
Step one, the display mode of the real time information is determined, the display mode includes the information type of required display
And/or the information format of required display.
In embodiments of the present invention, real time information corresponding with the keyword personalization of inquiry can be showed user.
Specially:
(1) rule is shown according to presupposed information, option prompt message, the option prompting is shown on the display interface
Information includes multiple options, a kind of display mode of each option correspondence;
After key word information is returned to self-defined server by real time data server, the self-defined server can be set
A variety of optional information display methods of user, user can be by way of selecting to determine this presentation of information.The presentation of information
Mode can be set according to the information format of the information type and/or required display shown needed for real time information.Presupposed information is shown
Rule can be how the real time information received is converted into every kind of display side in much information display mode by self-defined server
The rule of formula corresponding informance.
Specifically, a variety of display option prompt messages, Mei Zhongxuan can be exported on display interface in the self-defined server
Item prompt message has an a kind of information display methods of option correspondence.
For example, the presentation of information form of data form, the presentation of information form of two-dimensional coordinate figure, or the optional data of user
Presentation of information form of starting point etc..
Specifically, the self-defined server realizes a variety of option prompt messages by setting session.Such as:This is self-defined
The real time information got is shown that option is pointed out by server according to presupposed information display rule on display interface:1 corresponding number
According to the presentation of information form of form, the presentation of information form of 2 corresponding two-dimensional coordinate figures, the information of the 3 optional data starting points of correspondence
Different options may be selected in display format, user.
It should be noted that the above-mentioned option provided and the corresponding information display methods of the option only embodiment of the present invention
A kind of concrete mode, other Option Forms provided for example letter, additional character, and the corresponding information type of option and/
It is numerous to list herein or the information display methods of the information format of display fall within the protection domain of the embodiment of the present invention.
(2) option of user's selection is obtained, the corresponding display mode of option that the user is selected is defined as the reality
When information display mode.
Step 2, after user have selected option, self-defined server obtains the option of user, and by the corresponding letter of option
Breath display mode is defined as the display mode of the real time information.
It is described to show the real time information in display interface, including:
In display interface the real time information is shown according to described information display mode.
It can be seen that, it can be selected by the embodiment of the present invention according to user, determine the customized information display mode of different user,
Realize the diversified information display methods of self-defined server.
In embodiments of the present invention, there can be a kind of client of information query method of the embodiment of the present invention as shown in Figure 3
Terminal display figure.
In figure 3, the information query method of the embodiment of the present invention is applied on the mobile phone terminal of client, specially hand
The instant communication software of machine terminal is that businessman has been built from media operation platform.The business of 301 expression instant communication softwares in figure
Family is from media platform interface;302 represent input tool column in figure;303 represent the businessman from media platform first class catalogue dish in figure
A, B, C represent the businessman from the menu of media platform first class catalogue menu respectively in a first class catalogue menu in list, figure
Hold;304 expression users click on a second-level directory dish in the second-level directory menu of the first class catalogue menu 303 appearance in figure
Single, B1, B2, B3, B4, B5 represent 5 second-level directory menus in first class catalogue menu B respectively in figure.
In embodiments of the present invention, user pays close attention to business for what businessman built in instant communication software from media operation platform
Family's public's account, you can obtain businessman offer from media services.User enters the businessman of the instant communication software from media
After platform, the instant communication software businessman from media platform interface 301, click on inputted behind input tool column 302 it is crucial
Word.
The self-defined server of businessman of the instant communication software is got after the keyword of user input, in self-defined clothes
The keyword is inquired about in the keywords database of business device caching;When not inquiring the keyword in the keywords database in caching, it is being
The keyword is inquired about in the keywords database of system database.It is specific when searching, first determine the keyword to should businessman from media
One first class catalogue menu 303 of platform, and then the keyword is determined in the businessman from media platform first class catalogue menu
A first class catalogue menu 303 under a second-level directory menu 304, it is crucial in the corresponding son of the second-level directory menu 304
The keyword is inquired about in dictionary.
After the keyword is inquired in the corresponding sub- keywords database of the second-level directory menu 304, taken to real time data
Business device sends data inquiry request, and the data inquiry request includes the keyword.Real time data server is searched according to the request
To the corresponding real time information of the keyword.The corresponding real time information of the keyword found is returned into the businessman to put down from media
Platform server.
The businessman gets the corresponding real time information of the keyword from media platform server.In the businessman from media platform
In server according to presupposed information show rule, instant communication software businessman from media platform interface display interface 301
Option prompt message is shown, option prompt message includes multiple options, a kind of display mode of each option correspondence.User is multiple
An option is selected in option.
The businessman gets the option of user's selection from media platform server, and the option that the user is selected is corresponding aobvious
The mode of showing is defined as the display mode of this real time information.Pressed in the businessman of instant communication software from media platform interface 301
The information display methods selected according to user show this real time information.
In order to preferably embody the information query method of the embodiment of the present invention, there can be the embodiment of the present invention as shown in Figure 4
A kind of information query method application scenarios flow chart.
Because stock market is very high to the requirement of real-time of data, the present embodiment is illustrated by taking stock market as an example.
Specially:
User finds businessman public's account from media platform in instant communication software, pays close attention to public's account.
The businessman of the instant communication software inputs keyword from media platform, such as specific personal share title, personal share code, personal share letter
Spelling or noble metal title etc..The self-defined server of the businessman is obtained after the keyword of user's input, judges whether there is the pass in caching
Keyword, is specially to search the keyword in sub- keywords database is cached according to the keyword.Looked into when in sub- keywords database is cached
When finding the keyword, illustrate the key in the second-level directory menu under the first class catalogue menu that the keyword is specified for the businessman
Word.When not finding the keyword in sub- keywords database is cached, the pass is whether there is in the keywords database for judging system database
Keyword, is specially to search the keyword in the sub- keywords database of system database according to the keyword.When in system database
When the keyword is found in keywords database, illustrate the second-level directory under the first class catalogue menu that the keyword is specified for the businessman
Keyword in menu.
When not finding the keyword in database subsystem keywords database, then all user's inputs of historical data can be searched
The keyword number of times, when all users input the keyword number of times be more than preset value when, can be related to the keyword
First class catalogue menu under the corresponding sub- keywords database of second-level directory menu in the keyword is set to new keyword.When
When the number of times that all users input the keyword is less than preset value, prompt message can be transmitted to immediately in the self-defined server of the businessman
The None- identified keyword is informed from media platform interface by the businessman of communication software.
After the keyword is being found in caching sub- keywords database, data inquiry request can be generated according to the keyword,
And the data inquiry request is sent to real time data server.The real time data server is received after the request, according to this
The keyword carried in request, searches real time information corresponding with the keyword, and real time information in the present embodiment is and the pass
The corresponding real time stock information of keyword.The corresponding real time stock information of the keyword is sent to the self-defined server of businessman.
The self-defined server of the businessman is received after the corresponding real time stock information of the keyword, is shown according to presupposed information
Rule, shows option prompt message on instant communication server display interface, and user is selected after one, instant messaging service
The information display methods that device display interface is selected according to user show the corresponding real time stock information of the keyword.
For example, what user to be obtained is real time stock information corresponding with stock name, stock code or stock simplicity, then
Self-defined server shows 3 options on instant communication server display interface:The presentation of information form of 1 data form;2 two
The presentation of information form of dimension coordinate figure;The presentation of information form of 3 optional data starting points, user may be selected one, to should determine that
Go out the display mode of this real time stock information.
After display mode is determined, in instant communication server display interface according to the information display methods be user
Show real time stock information.
When not finding the keyword in sub- keywords database is cached, in the system database of the self-defined server of businessman
When the keyword is found in sub- keywords database, the data inquiry request is sent to Real-time Data Service by merchant system database
Device.The handling process of the real time data server and final real time information are shown, sub- keywords database is being cached as above-mentioned
In find the keyword handling process and final real time information display mode it is identical, do not repeating herein.
In embodiments of the present invention, stock market inquiry can be by the stock code that is matched in caching, and is counted in real time
According to obtaining real time data on server, it is ensured that obtain real-time, the accuracy of data, facilitate stock certificate data maintenance integrate it is excellent
Change, ensure the accuracy of data.In addition, Consumer's Experience is also improved.
To achieve the above object of the invention, the embodiment of the invention also discloses a kind of information query device, as shown in 5 figures.Fig. 5
For a kind of information query device structural representation of the embodiment of the present invention, including:
Acquisition module 501, the keyword for obtaining user's input;
Enquiry module 502, for inquiring about the keyword in default keywords database;
Request module 503, for when inquiring the keyword in the keywords database, to real time data server
Data inquiry request is sent, the data inquiry request includes the keyword;
Receiving module 504, for receiving the real-time letter corresponding with the keyword that the real time data server is sent
Breath;
Display module 505, for showing the real time information in display interface.
A kind of information query device provided in an embodiment of the present invention, to realize the real-time letter obtained in time with Keywords matching
Breath.Specifically, obtaining the keyword of user's input, the keyword is inquired about in default keywords database, realizes and carries IMU
Believe that the detection of input information of public's account platform of software, with matching, can just enter when belonging to public's account designated key word
Enter and obtain information under public's account, it is ensured that the security of public's account platform and special project.When being looked into keywords database
When asking the keyword, to real time data server send data inquiry request, receiving real-time data server send with pass
The corresponding real time information of keyword, shows real time information in display interface.Realize in real time according to keyword lookup to working as
Preceding time corresponding key word information, can feed back to user by newest key word information, solve in the prior art to user
The key word information of display is not newest information.
It should be noted that the device of the embodiment of the present invention be apply a kind of above-mentioned device of information query method, then on
All embodiments for stating information query method are applied to the device, and can reach same or analogous beneficial effect.
Alternatively, in a kind of embodiment of information query device of the present invention, the enquiry module 501, including:
First inquiry submodule, for inquiring about the keyword in the keywords database of caching;
Second inquiry submodule, for when not inquiring the keyword in the keywords database in the caching, being
The keyword is inquired about in the keywords database of system database.
Alternatively, in a kind of embodiment of information query device of the present invention, the enquiry module 501, in addition to:
Determination sub-module, for determining the corresponding sub- keywords database of the keyword;
Submodule is inquired about, for inquiring about the keyword in sub- keywords database corresponding with the keyword.
Alternatively, in a kind of embodiment of information query device of the present invention, described device also includes:
Presentation of information determining module, the display mode for determining the real time information, the display mode includes required
The information type of display and/or the information format of required display;
The display module 505, specifically for showing described real-time according to described information display mode in display interface
Information.
Alternatively, in a kind of embodiment of information query device of the present invention, described information shows determining module, including:
Option determination sub-module is shown, for showing rule according to presupposed information, option is shown on the display interface
Prompt message, the option prompt message includes multiple options, a kind of display mode of each option correspondence;
Presentation of information determination sub-module, the option for obtaining user's selection, the option that the user is selected is corresponding
Display mode is defined as the display mode of the real time information.
To achieve the above object of the invention, the embodiment of the invention also discloses a kind of electronic equipment, as shown in Figure 6.Fig. 6 is this
The a kind of electronic equipment schematic diagram of inventive embodiments.Including processor 601, communication interface 602, memory 603 and communication bus
604, wherein, the processor 601, the communication interface 602, the memory 603 complete phase by the communication bus 604
Communication between mutually;
The memory 603, for depositing computer program;
The processor 601, for performing during the program deposited on memory 603, realizes following steps:
Obtain the keyword of user's input;
The keyword is inquired about in default keywords database;
When inquiring the keyword in the keywords database, sending data query to real time data server please
Ask, the data inquiry request includes the keyword;
Receive the real time information corresponding with the keyword that the real time data server is sent;
The real time information is shown in display interface.
The communication bus 604 that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral
Component Interconnect, PCI) bus or EISA (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus 604 can be divided into address bus, data/address bus, controlling bus etc..For
It is easy to represent, is only represented in figure with a thick line, it is not intended that only one bus or a type of bus.
The communication that communication interface 602 is used between above-mentioned electronic equipment and other equipment.
Memory 603 can include random access memory (Random Access Memory, RAM), can also include
Nonvolatile memory (Non-Volatile Memory, NVM), for example, at least one magnetic disk storage.Optionally, memory
603 can also be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor 601 can be general processor, including central processing unit (Central Processing
Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital
Signal Processing, DSP), application specific integrated circuit (Application Specific Integrated Circuit,
ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs
Device, discrete gate or transistor logic, discrete hardware components.
A kind of electronic equipment provided in an embodiment of the present invention, to realize the real time information obtained in time with Keywords matching.
Specifically, obtaining the keyword of user's input, the keyword is inquired about in default keywords database, realizes that carrying instant messaging is soft
The detection of the input information of public's account platform of part can just be entered with matching when belonging to public's account designated key word
Information is obtained under public's account, it is ensured that the security of public's account platform and special project.When being inquired in keywords database
During the keyword, data inquiry request, receiving real-time data server is sent and keyword are sent to real time data server
Corresponding real time information, shows real time information in display interface.Realize in real time according to keyword lookup to it is current when
Between corresponding key word information, newest key word information can be fed back to user, solve and shown in the prior art to user
Key word information be not newest information.
To achieve the above object of the invention, the embodiment of the invention also discloses a kind of computer-readable recording medium, the meter
Calculation machine readable storage medium storing program for executing internal memory contains computer program, when the computer program is executed by processor, realizes following method
Step:
Obtain the keyword of user's input;
The keyword is inquired about in default keywords database;
When inquiring the keyword in the keywords database, sending data query to real time data server please
Ask, the data inquiry request includes the keyword;
Receive the real time information corresponding with the keyword that the real time data server is sent;
The real time information is shown in display interface.
A kind of computer-readable recording medium provided in an embodiment of the present invention, is obtained and Keywords matching in time with realizing
Real time information.Specifically, obtaining the keyword of user's input, the keyword is inquired about in default keywords database, realizes and carries
The detection of the input information of public's account platform of instant communication software is with matching, when belonging to public's account designated key word
It can just enter under public's account and obtain information, it is ensured that the security of public's account platform and special project.When in keyword
When the keyword is inquired in storehouse, data inquiry request is sent to real time data server, receiving real-time data server is sent
Real time information corresponding with keyword, real time information is shown in display interface.Realize in real time according to keyword lookup
To key word information corresponding with current time, newest key word information can be fed back to user, solved in the prior art
It is not newest information to the key word information that user shows.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment
Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.Especially for device,
For electronic equipment and storage medium embodiment, because it is substantially similar to embodiment of the method, so fairly simple, the phase of description
Part is closed referring to the part of embodiment of the method to illustrate.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of information query method, it is characterised in that including:
Obtain the keyword of user's input;
The keyword is inquired about in default keywords database;
When inquiring the keyword in the keywords database, data inquiry request, institute are sent to real time data server
Stating data inquiry request includes the keyword;
Receive the real time information corresponding with the keyword that the real time data server is sent;
The real time information is shown in display interface.
2. according to the method described in claim 1, it is characterised in that described that the key is inquired about in default keywords database
Word, including:
The keyword is inquired about in the keywords database of caching;
When not inquiring the keyword in the keywords database in the caching, inquired about in the keywords database of system database
The keyword.
3. according to the method described in claim 1, it is characterised in that described that the key is inquired about in default keywords database
Word, including:
Determine the corresponding sub- keywords database of the keyword;
The keyword is inquired about in sub- keywords database corresponding with the keyword.
4. according to the method described in claim 1, it is characterised in that receive that the real time data server sends with it is described
After the corresponding real time information of keyword, methods described also includes:
The display mode of the real time information is determined, the display mode includes the required information type shown and/or required aobvious
The information format shown;
It is described to show the real time information in display interface, including:
In display interface the real time information is shown according to described information display mode.
5. method according to claim 4, it is characterised in that the display mode of the determination real time information, including:
Rule is shown according to presupposed information, option prompt message, the option prompt message bag are shown on the display interface
Include multiple options, a kind of display mode of each option correspondence;
The option of user's selection is obtained, the corresponding display mode of option that the user is selected is defined as the real time information
Display mode.
6. a kind of information query device, it is characterised in that including:
Acquisition module, the keyword for obtaining user's input;
Enquiry module, for inquiring about the keyword in default keywords database;
Request module, for when inquiring the keyword in the keywords database, number to be sent to real time data server
According to inquiry request, the data inquiry request includes the keyword;
Receiving module, for receiving the real time information corresponding with the keyword that the real time data server is sent;
Display module, for showing the real time information in display interface.
7. device according to claim 6, it is characterised in that the enquiry module, including:
First inquiry submodule, for inquiring about the keyword in the keywords database of caching;
Second inquiry submodule, for when not inquiring the keyword in the keywords database in the caching, in system number
According to inquiring about the keyword in the keywords database in storehouse.
8. device according to claim 6, it is characterised in that the enquiry module, including:
Determination sub-module, for determining the corresponding sub- keywords database of the keyword;
Submodule is inquired about, for inquiring about the keyword in sub- keywords database corresponding with the keyword.
9. a kind of electronic equipment, it is characterised in that including processor, communication interface, memory and communication bus, wherein, it is described
Processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for depositing computer program;
The processor, for performing during the program deposited on memory, realizes any described method steps of claim 1-5
Suddenly.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium internal memory contains computer
Program, the computer program realizes claim 1-5 any described method and steps when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710629812.6A CN107291953A (en) | 2017-07-28 | 2017-07-28 | A kind of information query method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710629812.6A CN107291953A (en) | 2017-07-28 | 2017-07-28 | A kind of information query method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107291953A true CN107291953A (en) | 2017-10-24 |
Family
ID=60103668
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710629812.6A Pending CN107291953A (en) | 2017-07-28 | 2017-07-28 | A kind of information query method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107291953A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108664586A (en) * | 2018-05-07 | 2018-10-16 | 北京中电普华信息技术有限公司 | A kind of acquisition methods and system of information |
CN109165053A (en) * | 2018-08-15 | 2019-01-08 | 康美健康云服务有限公司 | Application software menu configuration method, mobile terminal and computer readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521285A (en) * | 2011-11-28 | 2012-06-27 | 北京百度网讯科技有限公司 | Real-time information checking method and server based on search engine |
CN104598442A (en) * | 2015-01-12 | 2015-05-06 | 沈文策 | Human-computer interaction method for WeChat keywords |
CN105023184A (en) * | 2015-07-10 | 2015-11-04 | 沈文策 | Financial market information query method based on WeChat terminal |
-
2017
- 2017-07-28 CN CN201710629812.6A patent/CN107291953A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521285A (en) * | 2011-11-28 | 2012-06-27 | 北京百度网讯科技有限公司 | Real-time information checking method and server based on search engine |
CN104598442A (en) * | 2015-01-12 | 2015-05-06 | 沈文策 | Human-computer interaction method for WeChat keywords |
CN105023184A (en) * | 2015-07-10 | 2015-11-04 | 沈文策 | Financial market information query method based on WeChat terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108664586A (en) * | 2018-05-07 | 2018-10-16 | 北京中电普华信息技术有限公司 | A kind of acquisition methods and system of information |
CN109165053A (en) * | 2018-08-15 | 2019-01-08 | 康美健康云服务有限公司 | Application software menu configuration method, mobile terminal and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113366524B (en) | Information recommendation method, device, electronic device and storage medium | |
CN113364853B (en) | Business service system, business request method and gateway equipment | |
CN105530175B (en) | Message processing method, device and system | |
AU2008260261B2 (en) | Method and system for sending, routing, and receiving information using concise messages | |
CN113330475B (en) | Information recommendation method, device, electronic equipment and storage medium | |
CN104144255B (en) | The display packing of communication identifier, client and electronic equipment in electronic equipment | |
WO2016101811A1 (en) | Information arrangement method and apparatus | |
CN102831520A (en) | System and method for immediately combining MicroBlog social contact system with electronic commerce | |
CN104639420A (en) | Instant messaging information processing method and system | |
US9424582B2 (en) | System and method for managing customer address information in electronic commerce using the internet | |
CN108401005A (en) | A kind of expression recommendation method and apparatus | |
CN104142975B (en) | Microblog information promotion method, device and system | |
CN116542663A (en) | Method, device, equipment and medium for accessing payment page of aggregation code | |
CN104601712A (en) | Resource push method and system | |
CN113434063A (en) | Information display method, device and equipment | |
CN107291953A (en) | A kind of information query method, device, electronic equipment and storage medium | |
US20090100024A1 (en) | Multi-modal mobile platform | |
US10586264B2 (en) | Systems for electronic exchange of information about available items | |
KR20140015948A (en) | System for distributing information using distribution unit of information and method thereof | |
CN109074552A (en) | Enhancing Contact Cards Based on a Knowledge Graph | |
CN106066878A (en) | A kind of application searches method and application searches server | |
CN114926281A (en) | Method, device, system and medium for gold transaction on bank line | |
CA2990868A1 (en) | Method for establishing interaction relationship, and interaction terminal | |
KR100736275B1 (en) | Information provision method using personalized page in information and communication network | |
CA2990288C (en) | Method for establishing interaction relationship, and interaction terminal |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171024 |