Invention content
The main purpose of the present invention is to provide a kind of methods of exhibiting and device of keyword ranking, to solve the prior art
In cannot to keyword ranking carry out differentiation displaying the problem of.
To achieve the goals above, one side according to the ... of the embodiment of the present invention provides a kind of exhibition of keyword ranking
Show that method, this method include:Obtain the inquiry request for searching keyword ranking, wherein carried in inquiry request to be checked
The keyword and query time of inquiry;Precedence data of the searching keyword in query time in the database;Read precedence data
Show color;The precedence data of keyword is shown according to preset format using displaying color.
Further, searching keyword includes in the precedence data of query time in the database:It obtains in inquiry request
Granularity of query;Query time is divided into multiple periods according to granularity of query;Obtain the ranking subdata of each period;
Show that keyword and precedence data include according to preset format using displaying color:Using table key is shown according to the period
The precedence data of word, and use the corresponding cell of displaying color filling precedence data.
Further, the displaying color for reading precedence data includes:Read the first displaying color of each ranking subdata
Color is shown with the second of the period;Show that the precedence data of keyword includes according to the period using table:In ranking subnumber
According to the first display area using first displaying color filling, the period the second display area using second displaying color fill out
It fills.
Further, it reads the first of each ranking subdata and shows that color includes:Judge the first row of first time period
Whether the second row name subdata of name subdata and second time period is identical, wherein the period includes first time period and second
Period, ranking subdata includes first row name subdata and second row name subdata, under the finish time of first time period
One moment was the initial time of second time period;If first row name subdata is different with second row name subdata, first is read
First displaying sub-color of ranking subdata and the second displaying sub-color of second row name subdata;The first of ranking subdata
Display area shows that color filling includes using first:The first exhibition of first row name subdata is filled using the first displaying sub-color
Show subregion, the second displaying subregion of second row name subdata is filled using the second displaying sub-color.
Further, while showing the precedence data of keyword according to preset format using displaying color, displaying
Method further includes:If precedence data is more than the first predetermined threshold value or is less than the second predetermined threshold value, prompt message is generated, wherein
First predetermined threshold value is more than the second predetermined threshold value;Prompt message is shown while showing the precedence data of keyword.
To achieve the goals above, one side according to the ... of the embodiment of the present invention provides a kind of exhibition of keyword ranking
Showing device, the device include:Acquisition module, for obtaining the inquiry request for searching keyword ranking, wherein inquiry request
In carry keyword and query time to be checked;Enquiry module, for searching keyword in the database in query time
Precedence data;Read module, the displaying color for reading precedence data;Display module, for using displaying color according to
The precedence data of preset format displaying keyword.
Further, enquiry module includes:First acquisition submodule, for obtaining the granularity of query in inquiry request;It draws
Sub-module, for query time to be divided into multiple periods according to granularity of query;Second acquisition submodule, it is each for obtaining
The ranking subdata of period;Display module includes:Submodule is shown, for showing keyword according to the period using table
Precedence data, and use the corresponding cell of displaying color filling precedence data.
Further, read module includes:Reading submodule, the first displaying color for reading each ranking subdata
Color is shown with the second of the period;Show that submodule includes:Module is filled, for the first display area in ranking subdata
Using the first displaying color filling, the second displaying color filling is used in the second display area of period.
Further, reading submodule includes:Judgment module, for judge first time period first row name subdata and
Whether the second row name subdata of second time period is identical, wherein the period includes first time period and second time period, ranking
Subdata includes first row name subdata and second row name subdata, and the subsequent time of the finish time of first time period is second
The initial time of period;If first determining module is read different with second row name subdata for first row name subdata
First displaying sub-color of first row name subdata and the second displaying sub-color of second row name subdata, wherein the first displaying
Sub-color is different with the second displaying sub-color;Filling module includes:Submodule is filled, for being filled using the first displaying sub-color
First displaying subregion of first row name subdata, the second displaying of second row name subdata is filled using the second displaying sub-color
Subregion.
Further, while showing the precedence data of keyword according to preset format using displaying color, displaying
Device further includes:First reminding module is given birth to if being more than the first predetermined threshold value for precedence data or being less than the second predetermined threshold value
At prompt message, wherein the first predetermined threshold value is more than the second predetermined threshold value;Second reminding module, in displaying keyword
Prompt message is shown while precedence data.
Using the present invention, when receiving user's inquiry request, check keyword to be checked among inquiry request and
Query time corresponding to the keyword inquires key further according to keyword and corresponding query time among presetting database
Then the ranking of word exports the precedence data of keyword, the displaying color corresponding to the precedence data is read from the first table,
Then precedence data and corresponding displaying color are shown with the second table, different precedence datas can be directed to using not
With displaying color show, be conducive to the variation that user checks ranking.Through the invention, by different keyword ranking and phase
The displaying color answered is combined, and user only need to can check that ranking changes by showing color, to reach good vision
The effect of displaying.Through the invention, it solves the problems, such as that in the prior art keyword ranking cannot be carried out differentiation displaying, it is real
The effect that differentiation displaying is carried out for different precedence datas is showed.
Specific implementation mode
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects
It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way
Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein.In addition, term " comprising " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit
Process, method, system, product or equipment those of are not necessarily limited to clearly to list step or unit, but may include without clear
It is listing to Chu or for these processes, method, product or equipment intrinsic other steps or unit.
An embodiment of the present invention provides a kind of methods of exhibiting of keyword ranking.
Fig. 1 is the flow chart of the methods of exhibiting of keyword ranking according to the ... of the embodiment of the present invention.As shown in Figure 1, this method
May include that steps are as follows:
Step S102 obtains the inquiry request for searching keyword ranking, wherein carried in inquiry request to be checked
Keyword and query time.
Step S104, in the database precedence data of the searching keyword in query time.
Step S106 reads the displaying color of precedence data.
Step S108 shows the precedence data of keyword using displaying color according to preset format.
Wherein, before executing step S102, the first table can be created, preserved in the first table precedence data and its
Corresponding displaying color.
Using the present invention, when receiving user's inquiry request, check keyword to be checked among inquiry request and
Query time corresponding to the keyword inquires key further according to keyword and corresponding query time among presetting database
Then the ranking of word exports the precedence data of keyword, the displaying color corresponding to the precedence data is read from the first table,
Then precedence data and corresponding displaying color are shown with the second table, different precedence datas can be directed to using not
With displaying color show, be conducive to the variation that user checks ranking.Through the invention, by different keyword ranking and phase
The displaying color answered is combined, and user only need to can check that ranking changes by showing color, to reach good vision
The effect of displaying.Through the invention, it solves the problems, such as that in the prior art keyword ranking cannot be carried out differentiation displaying, it is real
The effect that differentiation displaying is carried out for different precedence datas is showed.
In the above embodiment of the present invention, step S104, ranking of the searching keyword in query time in the database
Data may include:Obtain the granularity of query in inquiry request;Query time is divided into multiple periods according to granularity of query;
Obtain the ranking subdata of each period.
In the above-described embodiments, when receiving user's inquiry request, the query time among acquisition inquiry request, and according to
Query time in inquiry request is divided into multiple periods by preset granularity of query, then respectively among acquisition inquiry request
The ranking subdata of each period of keyword.
For example, the user's inquiry request received, the keyword in request is " Nike ", " Li Ning ", " apple " and " vehicle
The period of son ", inquiry is on November 4,1 day to 2014 November in 2014, it is necessary first to according to preset granularity of query (such as 1
It) will be decomposed into November 41 day to 2014 November 2014 above-mentioned period on November 1st, 2014, on November 2nd, 2014,
On November 3rd, 2014 and on November 4th, 2014, as shown in Table 1.
Table 1
Keyword |
Period 1 |
Period 2 |
Period 3 |
Period 4 |
Nike |
On November 1st, 2014 |
On November 2nd, 2014 |
On November 3rd, 2014 |
On November 4th, 2014 |
Li Ning |
On November 1st, 2014 |
On November 2nd, 2014 |
On November 3rd, 2014 |
On November 4th, 2014 |
Apple |
On November 1st, 2014 |
On November 2nd, 2014 |
On November 3rd, 2014 |
On November 4th, 2014 |
Car |
On November 1st, 2014 |
On November 2nd, 2014 |
On November 3rd, 2014 |
On November 4th, 2014 |
In the above-described embodiments, it is single with day by the query time among user's inquiry request according to preset granularity of query
Position is divided into four periods, and the ranking that user is more clearly seen every day of inquired keyword can in this way become
Change so that query result is more accurate.
In the above embodiment of the present invention, step S108 shows keyword using displaying color according to preset format
May include with precedence data:The precedence data of keyword is shown according to the period using table, and uses displaying color filling
The corresponding cell of precedence data.
Specifically, server sends inquiry request to database, its ranking under not same date is counted according to keyword,
Then judge whether ranking of each keyword under not same date changes, if there is a change, then to same keyword
Different displaying colors is not arranged in the corresponding cell of same date.At the same time, for keyword in the top, in table 2
Keyword " apple " corresponding to date lower unit lattice be arranged with soft displaying color, such user just can be more intuitive
The variation for checking keyword ranking.
Table 2
Keyword |
On November 1st, 2014 |
On November 2nd, 2014 |
On November 3rd, 2014 |
On November 4th, 2014 |
Nike |
1 |
10 |
10 |
10 |
Li Ning |
50 |
50 |
50 |
50 |
Apple |
1 |
2 |
2 |
2 |
Car |
5 |
3 |
2 |
2 |
In table 2 in first display area, keyword " Nike " on November 4, in 1 day to 2014 corresponding November in 2014
The color of cell is followed successively by light blue, light grey, light grey, light grey;Keyword " Li Ning " corresponding 1 day November in 2014
Color to the cell on November 4th, 2014 is red;Keyword " apple " corresponding 1 day to 2014 November in 2014
The color of the cell on November 4 is followed successively by light blue, light green color, light green color, light green color;Keyword " car " corresponding 2014
The color of the cell on November on November 4th, 1,1 in is followed successively by light gray, light green color, light green color, light green color.Second
In display area " on November 1st, 2014 ", " on November 2nd, 2014 ", " on November 3rd, 2014 " and " on November 4th, 2014 "
The color of corresponding cell is grey.Wherein, the color of fills unit lattice is to show color.
For example, the user's inquiry request received, the keyword among request is " Nike ", " Li Ning ", " apple " and
The period of " car ", inquiry is on November 4,1 day to 2014 November in 2014, through inquiry " Nike " in query time section
The precedence data on November 4th, 1 day 1 November in 2014 is respectively 1,10,10,10, and " Li Ning " is in query time section 2014
The precedence data on November on November 4th, 1,1 is respectively 50,50,50,50, and " apple " was in query time section 2014
The precedence data on November 4th, 1 day 1 November is respectively 1,2,2,2, and " car " is in query time section on November 1st, 2014
Precedence data on November 4th, 2014 is respectively 5,3,2,2, and the result of above-mentioned inquiry request is then exported to excel tables
In lattice, as shown in table 2.
According to the abovementioned embodiments of the present invention, step S106, the displaying color for reading precedence data may include:It reads each
First displaying color of a ranking subdata and the second displaying color of period.
In the above embodiment of the present invention, step S108 shows the ranking number of keyword using table according to the period
According to can also include:It is opened up using the first displaying color filling, second in the period in the first display area of ranking subdata
Show that region uses the second displaying color filling.
Wherein, the first display area is the cell corresponding to each keyword precedence data.Second display area is table 2
The corresponding unit of middle date (on November 1st, 2014, on November 2nd, 2014, on November 3rd, 2014 and on November 4th, 2014)
Lattice.
In the above-described embodiments, server end can pre-set the threshold value of keyword ranking and the mapping relations of color,
It defines different rankings and corresponds to different colors, realized by the first table (can be table 3).Use wherein in the top is shallow
Color table shows, ranking is indicated more than certain threshold value with dark color, and such as " Li Ning " in table 2, " Lee is inquired among presetting database
Rather " it is 50 in the precedence data on November 4th, 1 day 1 November in 2014, the precedence data corresponding displaying face in table 3
Color be red, then in the second table (can be table 2) that user obtains by Li Ning 1 day to 2014 11 November in 2014
The moon 4, corresponding cell was filled with red, its ranking information can be intuitively checked thereby using family.Wherein, cell
Fill Color is to show color.
Table 3
Precedence data |
Show color a |
Show color b |
1 |
It is light blue |
|
2-4 |
Light green color |
Lilac |
5-10 |
It is light grey |
It is light brown |
11-20 |
Blue |
Yellow |
21-50 |
It is red |
Purple |
51-100 |
Peony |
Dark grey |
Optionally, each precedence data can uniquely correspond to a displaying color, can also be as shown in table 3, and one continuous
Precedence data section corresponds to a displaying color.Further, the precedence data in the same continuous precedence data section can be with
Using different displaying color shows, such as the displaying color a and displaying color b in table 3.
Further, it reads the first of each ranking subdata and shows that color may include:Judge the of first time period
Whether the second row name subdata of one ranking subdata and second time period identical, wherein the period include first time period and
Second time period, ranking subdata include first row name subdata and second row name subdata, the finish time of first time period
Subsequent time be second time period initial time;If first row name subdata is different with second row name subdata, read
First displaying sub-color of first row name subdata and the second displaying sub-color of second row name subdata.
Specifically, if section falls into a continuous precedence data section to the precedence data of same keyword in different times,
Judge whether first row name subdata and second row name subdata are identical, if first row name subdata and second row name subdata are not
Together, then corresponding different displaying color (the first i.e. above-mentioned displaying sub-color and second in the continuous precedence data section is read
Show sub-color);If first row name subdata is identical as second row name subdata, identical displaying color can be read.
It, can be by the variation of the displaying color of the cell of time adjacent segments, to embody the pass by above-described embodiment
Keyword precedence data changes.
Optionally, the first displaying sub-color and the second displaying sub-color can be different, specifically, in table 2, keyword
" car ", in the row corresponding on November 1st, 2014, on November 2nd, 2014, on November 3rd, 2014 and 4 days November in 2014
Name data are followed successively by 5,3,2,2, wherein rear three precedence datas " 3,2,2 " correspond in table 3, keyword " car " as shown in table 2
The color of the cell in corresponding on November 4th, 1 day 1 November in 2014 can also be followed successively by light gray, light green color, shallow
Purple, lilac.
It is in the above-described embodiments by using preset tables of data, different rankings is corresponding with corresponding color, it can
So that system is rapidly handled the inquiry request of user, and finally so that the inquiry request of user obtains quick response.
According to the abovementioned embodiments of the present invention, the first displaying color filling is used in the first display area of ranking subdata
May include:The first displaying subregion that first row name subdata is filled using the first displaying sub-color, uses the second displaying
Second displaying subregion of color filling second row name subdata.
In the above-described embodiments, it in the request in different time periods of the same keyword of user's inquiry, needs to the keyword
Ranking in different time periods count, and judge whether its ranking under different time sections changes, in case of becoming
Change, then different colors is set to cell, better display effect is reached with this, user is facilitated to check ranking information.
According to the abovementioned embodiments of the present invention, in the ranking number for showing keyword according to preset format using displaying color
According to while, methods of exhibiting can also include:If precedence data is more than the first predetermined threshold value or is less than the second predetermined threshold value, give birth to
At prompt message, wherein the first predetermined threshold value is more than the second predetermined threshold value;It is shown while showing the precedence data of keyword
Prompt message.
For example, the first predetermined threshold value be 50, the second predetermined threshold value be 5, as in table 2 keyword " Nike " at " 2014 11
The moon 1 ", corresponding precedence data was " 1 ", then produced the prompt message to this precedence data.
Using the present invention, the first table is established, table content is different rankings and its corresponding different displaying color.
When receiving user's inquiry request, the inquiry corresponding to the keyword to be checked and the keyword among inquiry request is checked
Time, the ranking of the searching keyword among presetting database further according to keyword and corresponding query time, then export are closed
The precedence data of keyword, and the displaying color in the first table corresponding to the ranking is read according to the ranking of keyword, then will
Ranking information and corresponding displaying color are shown with the second table, are conducive to the variation that user checks ranking in this way.Pass through
Different keyword rankings is combined by the present invention with displaying color accordingly, and user only need to be by showing that color can check
Ranking changes, to achieve the effect that good visual presence.
Fig. 2 is the schematic diagram of the displaying device of keyword ranking according to the ... of the embodiment of the present invention, as shown in Fig. 2, displaying dress
It sets and may include:Acquisition module 20, enquiry module 40, read module 60 and display module 80.
Wherein, acquisition module 20, for obtaining the inquiry request for searching keyword ranking, wherein in inquiry request
Carry keyword and query time to be checked;Enquiry module 40, for searching keyword in the database in query time
Precedence data;Read module 60, the displaying color for reading precedence data;Display module 80, for using displaying color
The precedence data of keyword is shown according to preset format.
Wherein, which can also include table creation module, for creating the first table (as shown in table 3), the
Precedence data and its corresponding displaying color are preserved in one table.
It is to be checked among acquisition inquiry request when acquisition module receives user's inquiry request using the present invention
Query time corresponding to keyword and the keyword, enquiry module is according to keyword and corresponding query time in preset data
Then the ranking of searching keyword among library exports the precedence data of keyword, read module is according to keyword from the first table
The middle displaying color read corresponding to the precedence data, then display module according to precedence data and corresponding displaying color with the
Two tables are shown.Through the invention, different keyword rankings is combined with displaying color accordingly, is looked into conducive to user
The variation for seeing ranking solves the problems, such as that differentiation displaying cannot be carried out to keyword ranking in the prior art, realizes and be directed to
Different precedence datas carries out the effect of differentiation displaying.
In the above embodiment of the present invention, enquiry module may include:First acquisition submodule is asked for obtaining inquiry
Granularity of query in asking;Division module, for query time to be divided into multiple periods according to granularity of query;Second obtains son
Module, the ranking subdata for obtaining each period.
According to the abovementioned embodiments of the present invention, display module may include:Show submodule, for using table according to when
Between section displaying keyword precedence data, and use the corresponding cell of displaying color filling precedence data.
Above-described embodiment using the present invention, mainly different displaying colors is arranged to ranking information carrys out body to display module
The variation of existing ranking, for the keyword that ranking is poor, weight color strength tune has caused user's note that ranking is preferably then soft
Color table shows;Variation simultaneously for same keyword also embodies its variation with the differentiation of different displaying colors.
According to the abovementioned embodiments of the present invention, read module may include:Reading submodule, for reading each ranking
First displaying color of data and the second displaying color of period.
In the above embodiment of the present invention, displaying submodule may include:Module is filled, in ranking subdata
First display area uses the second displaying color filling using the first displaying color filling, in the second display area of period.
As shown in table 2, keyword " apple " is in corresponding color on November 41 day to 2014 November 2014 date point
Not Wei light blue, light green color, light green color, light green color, be conducive to user in this way and check same keyword ranking in different time periods
Information.
In the above-described embodiments, reading submodule may include:Judgment module, the first row for judging first time period
Whether the second row name subdata of name subdata and second time period is identical, wherein the period includes first time period and second
Period, ranking subdata includes first row name subdata and second row name subdata, under the finish time of first time period
One moment was the initial time of second time period;First determining module, if being used for first row name subdata and second row name subnumber
According to difference, then the first displaying sub-color of first row name subdata and the second displaying sub-color of second row name subdata are read,
Wherein, the first displaying sub-color is different with the second displaying sub-color.
According to the abovementioned embodiments of the present invention, filling module may include:Submodule is filled, for using the first displaying
First displaying subregion of color filling first row name subdata fills second row name subdata using the second displaying sub-color
Second displaying subregion.
Further, while showing the precedence data of keyword according to preset format using displaying color, displaying
Device can also include:First reminding module, if being more than the first predetermined threshold value for precedence data or being less than the second predetermined threshold value,
Then generate prompt message, wherein the first predetermined threshold value is more than the second predetermined threshold value;Second reminding module, for crucial in displaying
Prompt message is shown while the precedence data of word.
It can be seen from the above description that the present invention realizes following technique effect:
Using the present invention, when receiving user's inquiry request, check keyword to be checked among inquiry request and
Query time corresponding to the keyword inquires key further according to keyword and corresponding query time among presetting database
Then the ranking of word exports the precedence data of keyword, the displaying color corresponding to the precedence data is read from the first table,
Then precedence data and corresponding displaying color are shown with the second table, different precedence datas can be directed to using not
With displaying color show, be conducive to the variation that user checks ranking.Through the invention, by different keyword ranking and phase
The displaying color answered is combined, and user only need to can check that ranking changes by showing color, to reach good vision
The effect of displaying.Through the invention, it solves the problems, such as that in the prior art keyword ranking cannot be carried out differentiation displaying, it is real
The effect that differentiation displaying is carried out for different precedence datas is showed.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
Be performed by computing device in the storage device, either they are fabricated to each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific
Hardware and software combines.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because
According to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.