CN109582851A - Method for processing search results and device - Google Patents
Method for processing search results and device Download PDFInfo
- Publication number
- CN109582851A CN109582851A CN201811470330.1A CN201811470330A CN109582851A CN 109582851 A CN109582851 A CN 109582851A CN 201811470330 A CN201811470330 A CN 201811470330A CN 109582851 A CN109582851 A CN 109582851A
- Authority
- CN
- China
- Prior art keywords
- real time
- time data
- search result
- search engine
- newest
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000012545 processing Methods 0.000 title claims abstract description 43
- 235000013399 edible fruits Nutrition 0.000 claims description 14
- 238000003860 storage Methods 0.000 claims description 14
- 238000010586 diagram Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 241001269238 Data Species 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000009877 rendering Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000000712 assembly Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000012092 media component Substances 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of method for processing search results and devices, which comprises the inquiry request of search engine front end receiver user, and it is sent to search engine rear end;Search engine rear end obtains the first search result comprising real time data URL according to the inquiry request, and requests newest real time data to third-party server according to the URL;The newest real time data that search engine rear end returns to third-party server is added in first search result, generates the second search result, and second search result is returned to search engine front end;Described search engine front end shows second search result.Utilize the present invention, it is possible to reduce the phenomenon that flashing when real time data shows in search result promotes user experience.
Description
Technical field
The present invention relates to search result display fields, and in particular to a kind of method for processing search results and device.
Background technique
With the development of network technology, the content shown on webpage is more and more abundant, for example, some webpages can be by embedding
Enter application on site or the modes such as insert window are set in the page to show some real time datas, and can be by refreshing automatically
Keep these real time datas synchronous with server end holding.
Search engine refers to according to certain strategy, with specific computer program collects information from internet,
After carrying out tissue and processing to information, retrieval service is provided for user, the system that search result is showed into user.In order to
Family provides better search service, into the search result that user shows sometimes for including the real time data in webpage, example
Such as result of the match, the daily exchange rate.For this purpose, what return was held in front end upon receipt includes real-time in existing search engine
After the search result of data, show described search as a result, and obtaining according to the URL of the real time data from the real-time interface of partner
New data are taken, and are showed using alternative, i.e., replace the relatively older data showed with new data.
The experience that this ways of presentation can bring data variation even to flash to user, especially in the case where network environment is bad,
The phenomenon that this data variation, is more obvious, influences user experience.
Summary of the invention
The embodiment of the present invention provides a kind of method for processing search results and device, to reduce real time data exhibition in search result
The phenomenon that flashing now promotes user experience.
For this purpose, the invention provides the following technical scheme:
A kind of method for processing search results, which comprises
The inquiry request of search engine front end receiver user, and it is sent to search engine rear end;
According to the inquiry request, acquisition includes the first search result of real time data URL for search engine rear end, and according to
The URL requests newest real time data to third-party server;
The newest real time data that search engine rear end returns to third-party server is added in first search result,
The second search result is generated, and second search result is returned into search engine front end;
Search engine front end shows second search result.
Optionally, the method also includes:
If search engine rear end receives the newest real time data of third-party server return within the first time of setting,
It then executes and the newest real time data is added in first search result, generate the second search result, and by described the
Two search results return to the step of search engine front end;
Otherwise, first search result is returned into search engine front end.
Optionally, the method also includes:
After search engine front end receives first search result, newest real time data is requested to search engine rear end;
After search engine front end receives the newest real time data of search engine rear end return, show the first search knot
Fruit, and the newest real time data is added in first search result.
Optionally, the method also includes:
Search engine rear end caches the newest real time data that third-party server returns locally;
After search engine rear end receives search engine front end to the request of newest real time data, obtained most from local cache
New real time data, and the newest real time data is returned into search engine front end.
Optionally, the method also includes:
If described search engine front end does not receive described search engine rear end within the second time of setting and returns most
New real time data then shows first search result.
Optionally, the method also includes:
After described search engine front end receives first search result, show first search result, and simultaneously to
Described search engine rear end and third-party server request newest real time data;
Corresponding real time data in first search result is covered using the newest real time data that request obtains.
Optionally, the method also includes:
After described search engine front end receives first search result, show first search result, and to third
Square server requests newest real time data;
Corresponding real time data in first search result is covered using the newest real time data that request obtains.
A kind of search result processing unit, described device include: front-end module and rear module, the rear module packet
It includes: open platform, data center;
The front-end module is used to receive the inquiry request of user;
The open platform is used to obtain the first search result comprising real time data URL according to the inquiry request, and
Real time data request is sent to the data center, includes the URL in the real time data request;
The data center is used to request newest real time data to third-party server according to the URL, and by third party
The newest real time data that server returns sends the open platform to;
The open platform obtains the second search knot for the real time data to be added in first search result
Fruit, and second search result is returned into search engine front end;
The front-end module is also used to show second search result.
Optionally, the open platform is also used to start timing after sending real time data request to the data center, such as
Fruit receives the newest real time data that the data center returns within the first time of setting, then adds the newest real time data
It is added in first search result, generates the second search result, and the real time data that third-party server returns is sent to
The open platform;Otherwise, first search result is returned into the front-end module.
Optionally, after the front-end module is also used to receive first search result, Xiang Suoshu data center requests are most
New real time data;After the front-end module receives the newest real time data that the data center returns, show first search
As a result and by the final new real time data it is added in first search result.
Optionally, the data center is also used to delay the newest real time data that third-party server returns locally
It deposits;The data center obtains newest after receiving the front-end module to the request of newest real time data from local cache
Real time data, and the newest real time data is returned into the front-end module.
Optionally, the front-end module is also used to start timing after the newest real time data of the data center requests, such as
Fruit does not receive the newest real time data that the data center returns within the second time of setting, then shows the first search knot
Fruit.
Optionally, after the front-end module is also used to receive first search result, show first search result,
And newest real time data is requested to the data center and third-party server simultaneously;Receiving the data center or third party
After the newest real time data that server returns, corresponding reality in first search result is covered using the newest real time data
When data.
Optionally, after the front-end module receives first search result, show first search result, and to
Tripartite's server requests newest real time data;After receiving the newest real time data that the third-party server returns, institute is utilized
It states newest real time data and covers corresponding real time data in first search result.
A kind of electronic equipment, comprising: one or more processors, memory;
For the memory for storing computer executable instructions, the processor is executable for executing the computer
Instruction, to realize mentioned-above method.
A kind of readable storage medium storing program for executing, is stored thereon with instruction, and described instruction is performed to realize mentioned-above method.
Method for processing search results provided in an embodiment of the present invention and device need to spend based on search engine back-end services
Regular hour, which calculates, meets this feature of the document of user demand, the time needed for being calculated using search engine rear end,
After getting search result, if including real time data in search result, from search engine rear end directly to third-party server
Newest real time data is requested, is added to the newest real time data that obtains the newest real time data of partner, and then will acquire and is searched
In hitch fruit, search engine front end is returned to together with search result and is showed, show middle production so as to avoid real time data
The phenomenon that raw data flickering, the user experience is improved.
Further, if the newest real time data that search engine rear end is requested to third-party server cannot be returned in time
It returns, then search result is directly returned to search engine front end by search engine rear end, in addition, search engine rear end can also be by the
Local cache is written in the newest real time data that tripartite's server returns.In this way, search engine front end can be drawn based on above-mentioned search
Hold up rear end the two movement time difference, receive search engine rear end return do not include newest real time data search result
Afterwards, newest real time data is obtained from local cache, and the newest real time data is showed together with described search result, relative to
Newest real time data is requested from partner, that is, third-party server in search engine front end, is greatly saved and obtains newest real time data
Time, avoid splashette phenomenon caused by the newest real time data secondary rendering in front end appearance, even if poor in network environment
In the case of, real time data can also be made to show result with good.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, below will be to institute in embodiment
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only one recorded in the present invention
A little embodiments are also possible to obtain other drawings based on these drawings for those of ordinary skill in the art.
Fig. 1 is a kind of flow chart of method for processing search results of the embodiment of the present invention;
Fig. 2 is that search result shows example in the embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of search result processing unit of the embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of information exchange in search result processing unit of the embodiment of the present invention;
Fig. 5 is another schematic diagram of information exchange in search result processing unit of the embodiment of the present invention;
Fig. 6 is a kind of block diagram of device for method for processing search results shown according to an exemplary embodiment;
Fig. 7 is the structural schematic diagram of server in the embodiment of the present invention.
Specific embodiment
The scheme of embodiment in order to enable those skilled in the art to better understand the present invention with reference to the accompanying drawing and is implemented
Mode is described in further detail the embodiment of the present invention.
Existing search engine in search result include real-time data situations under processing mode there are aiming at the problem that,
The embodiment of the present invention provides a kind of method for processing search results and device, needs to spend based on search engine back-end services certain
Time, which calculates, meets this feature of the document of user demand, the time needed for being calculated using search engine rear end, is getting
After search result, if in search result including real time data, directly requested most to third-party server from search engine rear end
New real time data, to obtain the newest real time data of partner, and then the newest real time data that will acquire is added to search result
In, search engine front end is returned to together with search result and is showed, and shows middle generation data so as to avoid real time data
The phenomenon that flickering, the user experience is improved.
As shown in Figure 1, being a kind of flow chart of method for processing search results of the embodiment of the present invention, comprising the following steps:
Step 101, the inquiry request of search engine front end receiver user, and it is sent to search engine rear end.
The inquiry request can be through web browser sending, for example, user input query closes in query interface
Key word is inquired.
Step 102, search engine rear end obtains the first search knot comprising real time data URL according to the inquiry request
Fruit, and newest real time data is requested to third-party server according to the URL.
The real time data refers to real time data of partner, such as result of the match, the daily exchange rate, real-time road etc..?
In practical application, the corresponding data category of real time data for needing to be obtained in real time can be preset, and listing offer should
Real-time interface, that is, real time data URL of the partner of real time data.Respective classes are being grabbed according to the inquiry request of user
When data, the URL of the real time data is generated, and the URL is backfilling into the data of respective classes of crawl.Specifically, may be used
To be inserted into an address field in the initial data grabbed, for indicating the URL of the real time data.For example, being directed to xml
The search result of format can newly increase a node, nodename realtime_url, in the node in xml document
In be put into the URL of real time data.
Step 103, the newest real time data that search engine rear end returns to third-party server is added to described first and searches
In hitch fruit, the second search result is generated, and second search result is returned into search engine front end.
Specifically, the entities field of corresponding above-mentioned real time data, the newest reality that third-party server is returned can be set
When data be added to the entities field.
For example, in the first search result of xml format, the data of weather forecast were before 3 hours, and took from third party
The data for the newest weather forecast that business device obtains are before 1 minute, using the xml data section new as one of the data before 1 minute
Point is inserted into the first search result.
Step 104, described search engine front end shows second search result.
Search engine front end judges to contain the real-time number in the second search result when showing second search result
According to new node, the new node that just will use real time data showed.
For example, when showing search result, temperature is shown in frame in the search result examples shown in Fig. 2 in relation to weather
The position of degree, if first showing a temperature, such as 16 DEG C according to the prior art, being then changing into newest temperature again, such as 20
℃.If according to the method that the present invention program provides, when showing search result, since search engine front end has been obtained most
New data, therefore directly display 20 DEG C.
As it can be seen that method for processing search results provided in an embodiment of the present invention, when using needed for the calculating of search engine rear end
Between, after getting search result, if in search result including real time data, directly taken from search engine rear end to third party
Business device requests newest real time data, to obtain the newest real time data of partner, and then the newest real time data addition that will acquire
Into search result, search engine front end is returned to together with search result and is showed, is showed so as to avoid real time data
The phenomenon that middle generation data flickering, the user experience is improved.
It should be noted that in practical applications, it is contemplated that the influence of network environment, from search engine rear end to third party
The newest real time data of server request there may come a time when to return in time, therefore, in order to not influence showing for search result,
In another embodiment of the method for the present invention, certain waiting time can be set, for ease of description, be referred to as at the first time,
If search engine rear end receives the newest real time data of third-party server return within the first time, by the reality
When data be added in first search result, it is then that the search result for being added to the real time data is i.e. mentioned-above
Second search result returns to search engine front end;Otherwise, first search result is returned into search engine front end.
Correspondingly, search engine front end can check required real-time number in the search result of search engine rear end return
It according to whether having been got by search engine rear end, for example can be determined by checking above-mentioned entities field, such as entity word
Section is sky, then shows that newest real time data also has not been obtained.If newest real time data also has not been obtained, search engine front end can
To use the prior art, using the real-time interface of script request partner, newest real-time new data is obtained, and will acquire newest
Legacy data in real time new data cover search result, realizes timely updating for real time data;If having obtained newest real-time number
According to directly displaying the real time data when then showing search result.
Further, it is contemplated that return to the first search result to search engine from search engine rear end to search engine front end
Front end shows search result and also needs the regular hour, the newest real time data that search engine rear end is requested to third-party server
It is possible that returned within this period, for this purpose, in another embodiment of the method for the present invention, if search engine rear end is described
The newest real time data that third-party server return is not received at the first time, returns to search for first search result
After engine front end, search engine rear end is continued waiting for, once receiving the newest real time data of third-party server return, is then stood
Will the newest real time data be stored in local cache.After search engine front end receives first search result, determination does not have
Newest real time data is got, then sends newest real time data request to search engine rear end, again the newest reality of request
When data;After search engine rear end receives the request, local cache is inquired, it is determined whether received third-party server and returned
The newest real time data returned simultaneously saves, if so, then search engine rear end obtains the newest real time data from local cache and passes
Search engine front end is given, if it is not, the request is returned to search engine front end by search engine rear end;Correspondingly, it searches
If rope engine front end receives the newest real time data of search engine rear end return, show first search result and by institute
Newest real time data is stated to be added in first search result, if search engine front end receives the request of rear end return,
Then show then to show first search result again without newest real time data is got, while using the prior art, utilize
The real-time interface of script request partner obtains newest real-time new data, and the newest real time new data cover search that will acquire
As a result the legacy data in realizes timely updating for real time data.
Further, the newest real time data that search engine rear end can also return to third-party server is in local cache
Certain time can be first from local so that search engine front end is after the first search result for receiving the return of search engine rear end
Caching gets corresponding newest real time data, if corresponding newest real time data cannot be obtained from local cache, then to
Third-party server requests newest real time data.
Furthermore, it is contemplated that the frequency that different application scenarios real time datas updates is different, it can also be according to third party's service
Device returns to the difference at newest real time data time point, and different caching durations is arranged.For example, if described search engine rear end exists
The newest real time data that the third-party server returns is received in the first time, then by the newest real time data at this
Ground caches the first duration;Otherwise by the newest real time data in the second duration of local cache;Second duration is greater than first
Duration.For example, the first duration is set as 2s, the second duration is set as 5s.It should be noted that timing can from search engine rear end to
Third-party server starts after requesting newest real time data.
It correspondingly, can be with after described search engine front end receives the first search result of described search engine rear end return
There are many different processing modes, such as:
The first: it, can be again to described search engine after described search engine front end receives first search result
Request newest real time data in rear end;Described search engine rear end inquiry local cache determines whether to have had received third party's service
The newest real time data that device returns if it is, obtain newest real time data, and the newest real time data is returned to described
Search engine front end;After described search engine front end receives the newest real time data of described search engine rear end return, show institute
It states the first search result and the newest real time data is added in first search result.That is, being searched showing
Directly show the newest real time data when hitch fruit.Further, if described search engine front end is in the second of setting
The interior real time data for not receiving the return of described search engine rear end, then show first search result.Correspondingly, it searches
Rope engine front end can start timing after requesting newest real time data to search engine rear end.
Second: after described search engine front end receives first search result, show first search result, and
Newest real time data is requested to described search engine rear end and third-party server simultaneously;Then request is recycled to obtain newest
Real time data covers corresponding real time data in first search result.
The third: after described search engine front end receives first search result, showing first search result, and
Newest real time data is requested to third-party server;First search result is covered using the newest real time data that request obtains
In corresponding real time data.
It should be noted that described search engine rear end is slow in the newest real time data write-in for returning to third-party server
When depositing, it can be written the URL of the real time data as keyword (key).In this way, search engine rear end is searched receiving
After the request of rope engine front end, local cache directly can be read using the URL, obtain newest real time data.
Method for processing search results provided in an embodiment of the present invention obtains searching comprising real time data in search engine rear end
After hitch fruit, newest real time data directly is requested from search engine rear end to third-party server, and third-party server is returned
The newest real time data returned is added in search result and returns to search engine front end, in this way, search engine front end is searched showing
It when hitch fruit, can directly show the search result including newest real time data, efficiently avoid real time data and show middle production
The phenomenon that raw data flickering, the user experience is improved.
Further, the newest real time data write-in that search engine rear end can also return to third-party server is local slow
It deposits.In this way, in the case where third-party server cannot return to newest real time data in time, it can also be by search engine front end again
Secondary to request newest real time data to search engine rear end, correspondingly, search engine rear end obtains newest real-time number from local cache
According to search engine front end is returned to, open up search engine front end together with described search result the newest real time data
It is existing, newest real time data is requested from partner, that is, third-party server relative to search engine front end, acquisition is greatly saved most
The time of new real time data avoids the appearance of splashette phenomenon caused by the newest real time data secondary rendering in front end, even if in network
In the case that environment is poor, real time data can also be made to show result with good.
Correspondingly, the embodiment of the present invention also provides a kind of search result processing unit, as shown in figure 3, being implementation of the present invention
A kind of structural schematic diagram of example search result processing unit.
In this embodiment, described device includes: front-end module 301 and rear module 302, and the rear module 302 is wrapped
It includes: open platform 321, data center 322.Wherein:
The front-end module 301 is used to receive the inquiry request of user;
The open platform 321 is used to obtain the first search knot comprising real time data URL according to the inquiry request
Fruit, and real time data request is sent to the data center, it include the URL in the real time data request;
The data center 322 is used to request newest real time data to third-party server according to the URL, and by third
The newest real time data that square server returns sends the open platform to;
The open platform 321 is also used to for the real time data being added in first search result, obtains second
Search result, and second search result is returned into search engine front end;
The front-end module 301 is also used to show second search result.
As shown in figure 4, being the schematic diagram of information exchange in search result processing unit of the embodiment of the present invention, below with reference to figure
The interactive process of the 4 above-mentioned each units of brief description is as follows:
1. the inquiry request of front-end module reception user;
2. inquiry request is sent to open platform by front-end module;
3. open platform obtains the first search result comprising real time data URL according to the inquiry request;
4. open platform sends the real time data comprising the URL to the data center and requests;
Newest to third-party server request by the URL after 5. data center receives the real time data request
Real time data;
6. data center obtains newest real time data from third-party server;
7. the newest real time data is returned to open platform by data center;
8. the newest real time data is added in search result by open platform, the second search result is generated, and by the
Two search results are sent to front-end module;
9. front-end module shows the second search result.
Search result processing unit provided in an embodiment of the present invention, is being obtained the time needed for being calculated using rear module
To after search result, if including real time data in search result, from the data center in search engine rear end directly to third
Square server requests newest real time data, to obtain the newest real time data of partner, after obtaining the newest real time data,
It sends open platform to, the newest real time data is added in search result by open platform, is returned together with search result
The phenomenon that being showed back to front-end module, showing middle generation data flickering so as to avoid real time data, improve user's body
It tests.
Further, the open platform starts timing after can also sending real time data request to the data center,
If the newest real time data that the data center returns is received within the first time of setting, by the newest real time data
It is added in first search result, generates the second search result, and the real time data that third-party server is returned transmits
To the open platform;Otherwise, first search result is directly returned into the front-end module.
Further, it is contemplated that return to the first search result from open platform front end module and show search to front-end module
As a result the regular hour is also needed, the newest real time data that data center requests to third-party server was possible in this time
It is returned in section, it, can be with after front-end module receives first search result for this purpose, in another embodiment of the method for the present invention
Show institute after receiving the newest real time data that the data center returns to the newest real time data of the data center requests
It states the first search result and the final new real time data is added in first search result.
In addition, the data center can also take third party in another embodiment of search result processing unit of the present invention
The newest real time data that business device returns is cached locally.Specifically, it can be returned according to third-party server newest real-time
Different caching durations is arranged in the difference of data time.The data center can request newest reality to third-party server
When data after start timing, if receiving the newest real time data that the third-party server returns within the first time,
Then by the newest real time data in the first duration of local cache;Otherwise by the newest real time data in local cache the second
It is long;Second duration is less than the first duration, to guarantee the display effect of data on line.
Correspondingly, the front-end module can also be after receiving first search result, Xiang Suoshu data center requests
Newest real time data;The data center can obtain newest real time data from local cache according to the URL of the real time data,
And the newest real time data is returned into the front-end module;The front-end module receives the newest of data center's return
After real time data, shows first search result and the newest real time data is added in first search result.
Further, the front-end module can also to starting timing after the newest real time data of the data center requests,
If not receiving the newest real time data that the data center returns within the second time of setting, show first search
As a result.
Correspondingly, the front-end module can show first search result after receiving first search result, and
Newest real time data is requested to the data center and third-party server simultaneously;Receiving the data center or third party's clothes
It is engaged in after the newest real time data that device returns, is covered using the newest real time data corresponding real-time in first search result
Data.
Certainly, in another embodiment of search result processing unit of the present invention, the front-end module receives described first and searches
After hitch fruit, it can directly show first search result, and request newest real time data to third-party server;It is receiving
After the newest real time data that the third-party server returns, first search result is covered using the newest real time data
In corresponding real time data.
As shown in figure 5, be another schematic diagram of information exchange in search result processing unit of the embodiment of the present invention, below
The interactive process for briefly explaining above-mentioned each unit in conjunction with Fig. 5 is as follows:
11. the inquiry request of front-end module reception user;
12. inquiry request is sent to open platform by front-end module;
13. open platform obtains the first search result comprising real time data URL according to the inquiry request;
14. open platform sends the real time data comprising the URL to the data center and requests, then start timing;
Newest to third-party server request by the URL after 15. data center receives the real time data request
Real time data;
16. data center obtains newest real time data from third-party server;
17. data center caches the newest real time data locally, and the newest real time data is returned
To open platform;
21. open platform receives the case where newest real time data that the data center returns within the first time of setting
Under, the newest real time data is added in search result, generates the second search result, and the second search result is sent to
Front-end module;
22. front-end module shows the second search result;
31. the feelings that open platform does not receive the newest real time data that the data center returns within the first time of setting
Under condition, the first search result is returned into front-end module;
32. front-end module passes through open platform to the newest real time data of data center requests;
41. have newest real time data in local cache, data center reads local cache and obtains newest reality
When data, and the real time data is returned into front-end module;
42. front-end module shows the first search result and newest real time data;
51. there is no newest real time data in local cache, the failure of front-end module request of data;
52. front-end module shows the first search result.
It should be noted that above-mentioned interaction flow is a kind of example, in practical applications, front-end module is receiving first
The operation that search result shows is executed after search result to be carried out in several cases, can specifically be selected as needed, right
This embodiment of the present invention is without limitation.
As it can be seen that search result processing unit provided in an embodiment of the present invention, the open platform in rear module are wrapped
After search result containing real time data, newest real-time number is directly requested to third-party server from the data center in rear module
According to and sending the newest real time data that third-party server returns to open platform, open platform is by the newest real-time number
Front-end module is returned to according to being added in search result, in this way, front-end module when showing search result, can directly show most
New real time data efficiently avoids the phenomenon that real time data shows middle generation data flickering, and the user experience is improved.Into one
Local cache is written in step ground, the newest real time data that data center can also return to third-party server.In this way, in third party
It, can also be newest to data center requests again from front-end module in the case that server cannot return in time newest real time data
Real time data, correspondingly, data center obtain newest real time data from local cache and are returned to front-end module, front end mould
Block shows the newest real time data together with described search result, relative to front-end module from partner, that is, third-party server
Newest real time data is requested, the time for obtaining newest real time data is greatly saved, it is secondary to avoid the newest real time data in front end
Splashette phenomenon caused by rendering occurs, even if real time data can also be made to have good in the case where network environment is poor
Show result.
Fig. 6 is a kind of block diagram of the device 800 of method for processing search results shown according to an exemplary embodiment.Example
Such as, device 800 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, and plate is set
It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig. 6, device 800 may include following one or more components: processing component 802, memory 804, power supply
Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and
Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing element 802 may include that one or more processors 820 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just
Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate
Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of other data to support the operation in equipment 800.These data are shown
Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 804 can be by the volatibility or non-volatile memory device or their group of any classification
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of device 800.Electric power assembly 806 may include power management system
System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between described device 800 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 808 includes a front camera and/or rear camera.When equipment 800 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike
Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set
Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor module 814 can detecte the state that opens/closes of equipment 800, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device
Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800
Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 804 of instruction, above-metioned instruction can be completed above-mentioned key by the execution of the processor 820 of device 800, and accidentally touching is entangled
Wrong method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-
ROM, tape, floppy disk and optical data storage devices etc..
The present invention also provides a kind of non-transitorycomputer readable storage mediums, when the instruction in the storage medium is by moving
When the processor of dynamic terminal executes, so that mobile terminal is able to carry out all or part of step in aforementioned present invention embodiment of the method
Suddenly.
Fig. 7 is the structural schematic diagram of server in the embodiment of the present invention.The server 1900 can be different because of configuration or performance
And generate bigger difference, may include one or more central processing units (Central Processing Units,
CPU) 1922 (for example, one or more processors) and memory 1932, one or more storage application programs
1942 or data 1944 storage medium 1930 (such as one or more mass memory units).Wherein, memory 1932
It can be of short duration storage or persistent storage with storage medium 1930.Be stored in storage medium 1930 program may include one or
More than one module (diagram does not mark), each module may include to the series of instructions operation in server.Further
Ground, central processing unit 1922 can be set to communicate with storage medium 1930, and storage medium 1930 is executed on server 1900
In series of instructions operation.
Server 1900 can also include one or more power supplys 1926, one or more wired or wireless nets
Network interface 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or
More than one operating system 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM
Etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its
Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of method for processing search results, which is characterized in that the described method includes:
The inquiry request of search engine front end receiver user, and it is sent to search engine rear end;
Search engine rear end obtains the first search result comprising real time data URL according to the inquiry request, and according to described
URL requests newest real time data to third-party server;
The newest real time data that search engine rear end returns to third-party server is added in first search result, generates
Second search result, and second search result is returned into search engine front end;
Search engine front end shows second search result.
2. the method according to claim 1, wherein the method also includes:
If search engine rear end receives the newest real time data of third-party server return within the first time of setting, hold
It is about to the newest real time data to be added in first search result, generates the second search result, and described second is searched
Hitch fruit returns to the step of search engine front end;
Otherwise, first search result is returned into search engine front end.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
After search engine front end receives first search result, newest real time data is requested to search engine rear end;
After search engine front end receives the newest real time data of search engine rear end return, show first search result, and
The newest real time data is added in first search result.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
Search engine rear end caches the newest real time data that third-party server returns locally;
After search engine rear end receives search engine front end to the request of newest real time data, newest reality is obtained from local cache
When data, and the newest real time data is returned into search engine front end.
5. according to the method described in claim 3, it is characterized in that, the method also includes:
If described search engine front end does not receive the newest reality of described search engine rear end return within the second time of setting
When data, then show first search result.
6. according to the method described in claim 2, it is characterized in that, the method also includes:
After described search engine front end receives first search result, show first search result, and simultaneously to described
Search engine rear end and third-party server request newest real time data;
Corresponding real time data in first search result is covered using the newest real time data that request obtains.
7. according to the method described in claim 2, it is characterized in that, the method also includes:
After described search engine front end receives first search result, show first search result, and take to third party
Business device requests newest real time data;
Corresponding real time data in first search result is covered using the newest real time data that request obtains.
8. a kind of search result processing unit, which is characterized in that described device includes: front-end module and rear module, after described
End module includes: open platform, data center;
The front-end module is used to receive the inquiry request of user;
The open platform be used to be obtained according to the inquiry request include real time data URL the first search result, and to institute
It states data center and sends real time data request, include the URL in the real time data request;
The data center is used to request newest real time data to third-party server according to the URL, and by third party's service
The newest real time data that device returns sends the open platform to;
The open platform is used to for the real time data being added in first search result, obtains the second search result,
And second search result is returned into search engine front end;
The front-end module is also used to show second search result.
9. a kind of electronic equipment characterized by comprising one or more processors, memory;
The memory is for storing computer executable instructions, and for executing, the computer is executable to be referred to the processor
It enables, to realize method as described in any one of claim 1 to 7.
10. a kind of readable storage medium storing program for executing, is stored thereon with instruction, described instruction is performed to realize as claim 1 to 7 is any
Method described in.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811470330.1A CN109582851B (en) | 2018-12-04 | 2018-12-04 | Search result processing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811470330.1A CN109582851B (en) | 2018-12-04 | 2018-12-04 | Search result processing method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109582851A true CN109582851A (en) | 2019-04-05 |
| CN109582851B CN109582851B (en) | 2020-07-03 |
Family
ID=65925865
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811470330.1A Active CN109582851B (en) | 2018-12-04 | 2018-12-04 | Search result processing method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109582851B (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101889310A (en) * | 2007-12-07 | 2010-11-17 | 谷歌公司 | Organizing and publishing assets in UPnP networks |
| CN102279880A (en) * | 2011-07-28 | 2011-12-14 | 深圳市五巨科技有限公司 | Method and system for updating cache in real time |
| CN102521285A (en) * | 2011-11-28 | 2012-06-27 | 北京百度网讯科技有限公司 | Real-time information checking method and server based on search engine |
| US8676778B2 (en) * | 1995-12-14 | 2014-03-18 | Graphon Corporation | Method and apparatus for electronically publishing information on a computer network |
| CN105912689A (en) * | 2016-04-20 | 2016-08-31 | 郑州悉知信息科技股份有限公司 | Website display method, apparatus and system |
| CN107609156A (en) * | 2017-09-26 | 2018-01-19 | 微梦创科网络科技(中国)有限公司 | The method and device that a kind of page is built |
-
2018
- 2018-12-04 CN CN201811470330.1A patent/CN109582851B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8676778B2 (en) * | 1995-12-14 | 2014-03-18 | Graphon Corporation | Method and apparatus for electronically publishing information on a computer network |
| CN101889310A (en) * | 2007-12-07 | 2010-11-17 | 谷歌公司 | Organizing and publishing assets in UPnP networks |
| CN102279880A (en) * | 2011-07-28 | 2011-12-14 | 深圳市五巨科技有限公司 | Method and system for updating cache in real time |
| CN102521285A (en) * | 2011-11-28 | 2012-06-27 | 北京百度网讯科技有限公司 | Real-time information checking method and server based on search engine |
| CN105912689A (en) * | 2016-04-20 | 2016-08-31 | 郑州悉知信息科技股份有限公司 | Website display method, apparatus and system |
| CN107609156A (en) * | 2017-09-26 | 2018-01-19 | 微梦创科网络科技(中国)有限公司 | The method and device that a kind of page is built |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109582851B (en) | 2020-07-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112397062B (en) | Voice interaction method, device, terminal and storage medium | |
| CN112269853B (en) | Retrieval processing method, device and storage medium | |
| CN105488112B (en) | Information-pushing method and device | |
| CN103516780A (en) | Mobile terminal, server, system and method for controlling the same | |
| CN107330019A (en) | Searching method and device | |
| WO2016000357A1 (en) | Webpage access method and device, server and terminal | |
| CN112148899A (en) | Multimedia recommendation method, device, equipment and storage medium | |
| CN109727061A (en) | A kind of advertisement sending method and data management platform | |
| CN111435377A (en) | Application recommendation method and device, electronic equipment and storage medium | |
| CN110020106A (en) | A kind of recommended method, recommendation apparatus and the device for recommendation | |
| KR101710543B1 (en) | Mobile terminal and control method for mobile terminal | |
| CN112784201B (en) | Webpage display method, device, terminal and storage medium | |
| CN110020082A (en) | A kind of searching method and device | |
| CN113204701B (en) | Data recommendation method, device, terminal and storage medium | |
| CN116841661A (en) | Service calling method and electronic device | |
| CN111382367A (en) | Method and device for sorting search results | |
| CN113157370A (en) | Page display method and device, electronic equipment and storage medium | |
| WO2025040110A1 (en) | Search method, graphical interface, and related apparatus | |
| CN109582851A (en) | Method for processing search results and device | |
| CN115495681B (en) | Cache updating method and device, electronic equipment and computer readable storage medium | |
| CN118427459A (en) | A search event context display method, generation method and electronic device | |
| WO2023207890A1 (en) | Interface display method and electronic device | |
| CN109522286A (en) | The treating method and apparatus of file system | |
| CN115905374A (en) | Application function display method, device, terminal and storage medium | |
| CN106778096A (en) | The camouflage method and mobile terminal of a kind of application program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |