CN109582851B - Search result processing method and device - Google Patents

Search result processing method and device Download PDF

Info

Publication number
CN109582851B
CN109582851B CN201811470330.1A CN201811470330A CN109582851B CN 109582851 B CN109582851 B CN 109582851B CN 201811470330 A CN201811470330 A CN 201811470330A CN 109582851 B CN109582851 B CN 109582851B
Authority
CN
China
Prior art keywords
time data
search result
real
latest real
search engine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811470330.1A
Other languages
Chinese (zh)
Other versions
CN109582851A (en
Inventor
冯孟孟
龙四亮
吕鹏宇
梁瀚樱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201811470330.1A priority Critical patent/CN109582851B/en
Publication of CN109582851A publication Critical patent/CN109582851A/en
Application granted granted Critical
Publication of CN109582851B publication Critical patent/CN109582851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for processing search results, wherein the method comprises the following steps: the method comprises the steps that a search engine front end receives a query request of a user and sends the query request to a search engine rear end; the rear end of the search engine acquires a first search result containing a real-time data URL according to the query request, and requests the latest real-time data from a third-party server according to the URL; the rear end of the search engine adds the latest real-time data returned by the third-party server to the first search result to generate a second search result, and returns the second search result to the front end of the search engine; and the front end of the search engine displays the second search result. By using the method and the device, the phenomenon of flickering when real-time data in the search result are displayed can be reduced, and the user experience is improved.

Description

Search result processing method and device
Technical Field
The invention relates to the field of search result display, in particular to a search result processing method and a search result processing device.
Background
With the development of network technology, the content displayed on the web page is more and more rich, for example, some web pages can display some real-time data by embedding an online application or setting a plug-in window in the web page, and the real-time data can be kept synchronous with the server side by automatic refreshing.
The search engine is a system that collects information from the internet by using a specific computer program according to a certain policy, provides a retrieval service for a user after organizing and processing the information, and displays a search result to the user. In order to provide better search services to users, it is sometimes necessary to include real-time data in web pages, such as game results, daily exchange rates, etc., in search results presented to users. Therefore, in the existing search engine, after receiving a search result containing real-time data returned by the back end, the front end displays the search result, acquires new data from a real-time interface of a partner according to the URL of the real-time data, and displays the new data in a replacement mode, namely, replaces the displayed relatively old data with the new data. The display mode brings experience of data change and even flickering for users, and particularly under the condition of poor network environment, the phenomenon of data change is more obvious, and the user experience is influenced.
Disclosure of Invention
The embodiment of the invention provides a search result processing method and device, which are used for reducing the phenomenon of flickering when real-time data in a search result is displayed and improving user experience.
Therefore, the invention provides the following technical scheme:
a method of search result processing, the method comprising:
the method comprises the steps that a search engine front end receives a query request of a user and sends the query request to a search engine rear end;
the rear end of the search engine acquires a first search result containing a real-time data URL according to the query request, and requests the latest real-time data from a third-party server according to the URL;
the rear end of the search engine adds the latest real-time data returned by the third-party server to the first search result to generate a second search result, and returns the second search result to the front end of the search engine;
and the front end of the search engine displays the second search result.
Optionally, the method further comprises:
if the rear end of the search engine receives the latest real-time data returned by the third-party server within the set first time, adding the latest real-time data into the first search result to generate a second search result, and returning the second search result to the front end of the search engine;
otherwise, returning the first search result to the front end of the search engine.
Optionally, the method further comprises:
after receiving the first search result, the front end of the search engine requests the latest real-time data from the rear end of the search engine;
and after receiving the latest real-time data returned by the rear end of the search engine, the front end of the search engine displays the first search result and adds the latest real-time data to the first search result.
Optionally, the method further comprises:
the rear end of the search engine caches the latest real-time data returned by the third-party server locally;
and after receiving a request of the front end of the search engine for the latest real-time data, the rear end of the search engine acquires the latest real-time data from the local cache and returns the latest real-time data to the front end of the search engine.
Optionally, the method further comprises:
and if the front end of the search engine does not receive the latest real-time data returned by the rear end of the search engine within a set second time, displaying the first search result.
Optionally, the method further comprises:
after receiving the first search result, the search engine front end displays the first search result and simultaneously requests the latest real-time data from the search engine rear end and a third-party server;
and covering the corresponding real-time data in the first search result by using the latest real-time data obtained by the request.
Optionally, the method further comprises:
after receiving the first search result, the search engine front end displays the first search result and requests the latest real-time data from a third-party server;
and covering the corresponding real-time data in the first search result by using the latest real-time data obtained by the request.
A search result processing apparatus, the apparatus comprising: front end module and rear end module, the rear end module includes: an open platform, a data center;
the front-end module is used for receiving a query request of a user;
the open platform is used for acquiring a first search result containing a real-time data URL according to the query request and sending a real-time data request to the data center, wherein the real-time data request contains the URL;
the data center is used for requesting the latest real-time data from the third-party server according to the URL and transmitting the latest real-time data returned by the third-party server to the open platform;
the open platform is used for adding the real-time data into the first search result to obtain a second search result and returning the second search result to the front end of a search engine;
the front-end module is further configured to present the second search result.
Optionally, the open platform is further configured to start timing after sending a real-time data request to the data center, add the latest real-time data to the first search result if the latest real-time data returned by the data center is received within a set first time, generate a second search result, and transmit the second search result to the front-end module; otherwise, returning the first search result to the front-end module.
Optionally, the front-end module is further configured to request the latest real-time data from the data center after receiving the first search result; and after receiving the latest real-time data returned by the data center, the front-end module displays the first search result and adds the latest real-time data to the first search result.
Optionally, the data center is further configured to locally cache the latest real-time data returned by the third-party server; and after receiving the request of the front-end module for the latest real-time data, the data center acquires the latest real-time data from a local cache and returns the latest real-time data to the front-end module.
Optionally, the front-end module is further configured to start timing after requesting the latest real-time data from the data center, and if the latest real-time data returned by the data center is not received within a set second time, present the first search result.
Optionally, the front-end module is further configured to, after receiving the first search result, present the first search result, and request the latest real-time data from the data center and the third-party server at the same time; and after receiving the latest real-time data returned by the data center or the third-party server, covering the corresponding real-time data in the first search result by using the latest real-time data.
Optionally, after receiving the first search result, the front-end module presents the first search result, and requests the latest real-time data from a third-party server; and after receiving the latest real-time data returned by the third-party server, covering the corresponding real-time data in the first search result by using the latest real-time data.
An electronic device, comprising: one or more processors, memory;
the memory is configured to store computer-executable instructions and the processor is configured to execute the computer-executable instructions to implement the method described above.
A readable storage medium having stored thereon instructions which are executed to implement the foregoing method.
According to the search result processing method and device provided by the embodiment of the invention, based on the characteristic that a certain time is needed to be spent by the back-end service of the search engine to calculate the document meeting the requirements of the user, the time needed by the back-end calculation of the search engine is utilized, after the search result is obtained, if the search result contains real-time data, the back-end of the search engine directly requests the latest real-time data from the third-party server to obtain the latest real-time data of a partner, and then the obtained latest real-time data is added into the search result and returned to the front-end of the search engine together with the search result for displaying, so that the phenomenon of data flicker generated in the real-time data displaying is avoided, and the user experience is improved.
Further, if the latest real-time data requested by the rear end of the search engine to the third-party server cannot be returned in time, the rear end of the search engine directly returns the search result to the front end of the search engine, and in addition, the rear end of the search engine can write the latest real-time data returned by the third-party server into a local cache. Therefore, the front end of the search engine can obtain the latest real-time data from the local cache after receiving the search result which is returned by the back end of the search engine and does not contain the latest real-time data based on the time difference of the two actions of the back end of the search engine, and the latest real-time data and the search result are displayed together.
Drawings
In order to more clearly illustrate the embodiments of the present application or technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a flow chart of a search result processing method according to an embodiment of the present invention;
FIG. 2 is an example of search result presentation in an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a search result processing apparatus according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating information interaction in a search result processing apparatus according to an embodiment of the present invention;
FIG. 5 is another schematic diagram of information interaction in a search result processing apparatus according to an embodiment of the present invention;
FIG. 6 is a block diagram illustrating an apparatus for a search result processing method in accordance with an exemplary embodiment;
fig. 7 is a schematic structural diagram of a server in an embodiment of the present invention.
Detailed Description
In order to make the technical field of the invention better understand the scheme of the embodiment of the invention, the embodiment of the invention is further described in detail with reference to the drawings and the implementation mode.
The embodiment of the invention provides a method and a device for processing a search result, aiming at the problem of the existing search engine in the processing mode under the condition that the search result contains real-time data, and based on the characteristic that a certain time is needed for a search engine rear-end service to calculate a document meeting the user requirement, the time needed for the search engine rear-end calculation is utilized, after the search result is obtained, if the search result contains the real-time data, the search engine rear end directly requests a third-party server for the latest real-time data so as to obtain the latest real-time data of a partner, the acquired latest real-time data is added into the search result and is returned to the search engine front end together with the search result for displaying, so that the phenomenon of data flicker in the real-time data displaying is avoided, and the user experience is improved.
As shown in fig. 1, it is a flowchart of a search result processing method according to an embodiment of the present invention, and the method includes the following steps:
step 101, the front end of the search engine receives a query request of a user and sends the query request to the back end of the search engine.
The query request may be sent through a web browser, for example, in a query interface, a user inputs a query keyword to perform a query.
And 102, the rear end of the search engine acquires a first search result containing a real-time data URL according to the query request, and requests the latest real-time data from a third-party server according to the URL.
The real-time data refers to real-time data of the partner, such as a match result, a daily exchange rate, a real-time road condition and the like. In practical application, the data type corresponding to the real-time data that needs to be obtained in real time may be preset, and the real-time interface of the partner that provides the real-time data, that is, the URL of the real-time data, may be listed. When capturing data of corresponding categories according to a query request of a user, generating a URL of the real-time data, and backfilling the URL into the captured data of corresponding categories. Specifically, an address field may be inserted into the captured original data to indicate the URL of the real-time data. For example, for a search result in an xml format, a node may be newly added to an xml file, where the node name is realtime _ URL, and the URL of real-time data is placed in the node.
And 103, adding the latest real-time data returned by the third-party server to the first search result by the rear end of the search engine to generate a second search result, and returning the second search result to the front end of the search engine.
Specifically, an entity field corresponding to the real-time data may be set, and the latest real-time data returned by the third-party server may be added to the entity field.
For example, in the first search result in the xml format, the data of the weather forecast is 3 hours ago, while the data of the latest weather forecast acquired from the third-party server is 1 minute ago, and the data before 1 minute is inserted into the first search result as a new xml data node.
And 104, the front end of the search engine displays the second search result.
And when the front end of the search engine displays the second search result, judging that the second search result contains the new node of the real-time data, and displaying by using the new node of the real-time data.
For example, in the example of the search result about weather shown in fig. 2, when the search result is presented, the position of the temperature is displayed in the frame, and if the temperature is displayed first according to the prior art, the temperature is displayed, for example, 16 ℃, and then the temperature is changed to the latest temperature, for example, 20 ℃. According to the method provided by the scheme of the invention, when the search result is displayed, the 20 ℃ is directly displayed because the front end of the search engine obtains the latest data.
Therefore, the search result processing method provided by the embodiment of the invention utilizes the time required by the calculation of the rear end of the search engine, after the search result is obtained, if the search result contains real-time data, the rear end of the search engine directly requests the latest real-time data from the third-party server to obtain the latest real-time data of the partner, and then the obtained latest real-time data is added into the search result and returned to the front end of the search engine together with the search result for displaying, so that the phenomenon of data flicker generated in the display of the real-time data is avoided, and the user experience is improved.
It should be noted that, in practical applications, considering the influence of a network environment, the latest real-time data requested by the search engine back end to the third-party server may not be returned in time, so that, in order not to influence the presentation of the search result, in another embodiment of the method of the present invention, a certain waiting time may be set, which is called a first time for convenience of description, if the search engine back end receives the latest real-time data returned by the third-party server within the first time, the real-time data is added to the first search result, and then the search result to which the real-time data is added, that is, the second search result, is returned to the search engine front end; otherwise, returning the first search result to the front end of the search engine.
Accordingly, the search engine front end may check whether the real-time data required in the search result returned by the search engine back end has been acquired by the search engine back end, for example, it may be determined by checking the entity field, and if the entity field is empty, it indicates that the latest real-time data has not been acquired. If the latest real-time data is not obtained, the front end of the search engine can adopt the prior art, utilize the real-time interface of the script request partner to obtain the latest real-time new data, and cover the obtained latest real-time new data with the old data in the search result, so as to realize the timely update of the real-time data; and if the latest real-time data is acquired, directly displaying the real-time data when the search result is displayed.
Further, considering that a certain time is needed from the time when the first search result is returned from the rear end of the search engine to the time when the search result is displayed at the front end of the search engine, the latest real-time data requested by the rear end of the search engine to the third-party server may be returned within the time. After receiving the first search result, the front end of the search engine determines that the latest real-time data is not obtained, and then sends a latest real-time data request to the rear end of the search engine to request for obtaining the latest real-time data again; after receiving the request, the rear end of the search engine inquires a local cache, determines whether the latest real-time data returned by the third-party server is received and stored, if so, the rear end of the search engine acquires the latest real-time data from the local cache and transmits the latest real-time data to the front end of the search engine, and if not, the rear end of the search engine returns the request to the front end of the search engine; correspondingly, if the front end of the search engine receives the latest real-time data returned by the rear end of the search engine, the first search result is displayed and the latest real-time data is added into the first search result, if the front end of the search engine receives a request returned by the rear end, the first search result is displayed if the latest real-time data is not obtained, meanwhile, the latest real-time new data is obtained by using a real-time interface of a script request partner by adopting the prior art, the obtained latest real-time new data is covered on the old data in the search result, and the real-time data is updated in time.
Furthermore, the rear end of the search engine may also locally cache the latest real-time data returned by the third-party server for a certain time, so that the front end of the search engine may obtain the corresponding latest real-time data from the local cache after receiving the first search result returned by the rear end of the search engine, and then request the latest real-time data from the third-party server if the corresponding latest real-time data cannot be obtained from the local cache.
In addition, different cache durations can be set according to different time points when the latest real-time data is returned by the third-party server in consideration of different update frequencies of the real-time data of different application scenes. For example, if the rear end of the search engine receives the latest real-time data returned by the third-party server within the first time, the latest real-time data is cached locally for a first time; otherwise, the latest real-time data is cached locally for a second time length; the second duration is greater than the first duration. For example, the first time period is set to 2s, and the second time period is set to 5 s. It should be noted that the timing may be started after the search engine backend requests the latest real-time data from the third-party server.
Accordingly, after the search engine front end receives the first search result returned by the search engine back end, there may be a plurality of different processing manners, such as:
the first method comprises the following steps: after receiving the first search result, the search engine front end may request the latest real-time data from the search engine rear end again; the rear end of the search engine queries a local cache to determine whether the latest real-time data returned by the third-party server is received, if so, the latest real-time data is obtained, and the latest real-time data is returned to the front end of the search engine; and after receiving the latest real-time data returned by the rear end of the search engine, the front end of the search engine displays the first search result and adds the latest real-time data to the first search result. That is, the latest real-time data is presented directly when the search results are presented. Further, if the front end of the search engine does not receive the real-time data returned by the rear end of the search engine within a set second time, the first search result is displayed. Accordingly, the search engine front end may begin timing after requesting the latest real-time data from the search engine back end.
And the second method comprises the following steps: after receiving the first search result, the search engine front end displays the first search result and simultaneously requests the latest real-time data from the search engine rear end and a third-party server; and then, covering the corresponding real-time data in the first search result by using the latest real-time data obtained by the request.
And the third is that: after receiving the first search result, the search engine front end displays the first search result and requests the latest real-time data from a third-party server; and covering the corresponding real-time data in the first search result by using the latest real-time data obtained by the request.
It should be noted that, when the back end of the search engine writes the latest real-time data returned by the third-party server into the cache, the URL of the real-time data may be written as a key. Therefore, after receiving the request of the front end of the search engine, the back end of the search engine can directly use the URL to read the local cache to obtain the latest real-time data.
According to the search result processing method provided by the embodiment of the invention, after the search result containing the real-time data is obtained at the rear end of the search engine, the latest real-time data is directly requested from the third-party server by the rear end of the search engine, and the latest real-time data returned by the third-party server is added into the search result and returned to the front end of the search engine.
Furthermore, the back end of the search engine can write the latest real-time data returned by the third-party server into a local cache. Therefore, under the condition that the third-party server cannot timely return the latest real-time data, the front end of the search engine can request the latest real-time data from the rear end of the search engine again, correspondingly, the rear end of the search engine obtains the latest real-time data from a local cache and returns the latest real-time data to the front end of the search engine, so that the front end of the search engine can display the latest real-time data and the search result together, compared with the condition that the front end of the search engine requests the latest real-time data from a partner, namely the third-party server, the time for obtaining the latest real-time data is greatly saved, the phenomenon of screen flashing caused by secondary rendering of the latest real-time data of the front end is avoided, and even under the condition of poor network environment, the real-time.
Correspondingly, an embodiment of the present invention further provides a search result processing apparatus, as shown in fig. 3, which is a schematic structural diagram of the search result processing apparatus according to the embodiment of the present invention.
In this embodiment, the apparatus comprises: a front end module 301 and a back end module 302, the back end module 302 comprising: open platform 321, data center 322. Wherein:
the front-end module 301 is configured to receive a query request from a user;
the open platform 321 is configured to obtain a first search result including a real-time data URL according to the query request, and send a real-time data request to the data center, where the real-time data request includes the URL;
the data center 322 is configured to request the latest real-time data from the third-party server according to the URL, and transmit the latest real-time data returned by the third-party server to the open platform;
the open platform 321 is further configured to add the real-time data to the first search result to obtain a second search result, and return the second search result to the front end of the search engine;
the front-end module 301 is further configured to present the second search result.
Fig. 4 is a schematic diagram of information interaction in the search result processing apparatus according to the embodiment of the present invention, and the following briefly describes the interaction process of the above units with reference to fig. 4 as follows:
1. the front-end module receives a query request of a user;
2. the front-end module sends the query request to the open platform;
3. the open platform acquires a first search result containing a real-time data URL according to the query request;
4. the open platform sends a real-time data request containing the URL to the data center;
5. after receiving the real-time data request, the data center requests the latest real-time data from a third-party server through the URL;
6. the data center acquires the latest real-time data from the third-party server;
7. the data center returns the latest real-time data to the open platform;
8. the open platform adds the latest real-time data into a search result to generate a second search result, and sends the second search result to the front-end module;
9. the front-end module presents the second search result.
According to the search result processing device provided by the embodiment of the invention, the time required by the calculation of the back-end module is utilized, after the search result is obtained, if the search result contains real-time data, the data center in the back end of the search engine directly requests the latest real-time data from the third-party server to obtain the latest real-time data of the partner, after the latest real-time data is obtained, the latest real-time data is transmitted to the open platform, the latest real-time data is added into the search result by the open platform and is returned to the front-end module together with the search result for displaying, so that the phenomenon of data flicker in the real-time data display is avoided, and the user experience is improved.
Furthermore, the open platform can also start timing after sending a real-time data request to the data center, if the latest real-time data returned by the data center is received within a set first time, the latest real-time data is added to the first search result, a second search result is generated, and the real-time data returned by a third-party server is transmitted to the open platform; otherwise, directly returning the first search result to the front-end module.
Further, considering that a certain time is required from the time when the first search result is returned to the front-end module by the open platform to the time when the search result is displayed by the front-end module, the latest real-time data requested by the data center to the third-party server may be returned within the time period.
In addition, in another embodiment of the search result processing apparatus of the present invention, the data center may also locally cache the latest real-time data returned by the third-party server. Specifically, different cache durations may be set according to different times when the third-party server returns the latest real-time data. The data center can start timing after requesting the latest real-time data from a third-party server, and if the latest real-time data returned by the third-party server is received within the first time, the latest real-time data is cached locally for a first time; otherwise, the latest real-time data is cached locally for a second time length; the second duration is longer than the first duration to ensure the display effect of the online data.
Correspondingly, the front-end module can also request the latest real-time data from the data center after receiving the first search result; the data center can acquire the latest real-time data from a local cache according to the URL of the real-time data and return the latest real-time data to the front-end module; and after receiving the latest real-time data returned by the data center, the front-end module displays the first search result and adds the latest real-time data to the first search result.
Further, the front-end module may start timing after requesting the latest real-time data from the data center, and present the first search result if the latest real-time data returned by the data center is not received within a set second time.
Correspondingly, the front-end module can show the first search result after receiving the first search result, and simultaneously request the latest real-time data from the data center and a third-party server; and after receiving the latest real-time data returned by the data center or the third-party server, covering the corresponding real-time data in the first search result by using the latest real-time data.
Certainly, in another embodiment of the search result processing apparatus of the present invention, after receiving the first search result, the front-end module may directly present the first search result, and request the latest real-time data from the third-party server; and after receiving the latest real-time data returned by the third-party server, covering the corresponding real-time data in the first search result by using the latest real-time data.
Fig. 5 is another schematic diagram of information interaction in the search result processing apparatus according to the embodiment of the present invention, and the following briefly describes the interaction process of the above units with reference to fig. 5 as follows:
11. the front-end module receives a query request of a user;
12. the front-end module sends the query request to the open platform;
13. the open platform acquires a first search result containing a real-time data URL according to the query request;
14. the open platform sends a real-time data request containing the URL to the data center, and then timing is started;
15. after receiving the real-time data request, the data center requests the latest real-time data from a third-party server through the URL;
16. the data center acquires the latest real-time data from the third-party server;
17. the data center caches the latest real-time data locally and returns the latest real-time data to the open platform;
21. the method comprises the steps that under the condition that an open platform receives latest real-time data returned by a data center within a set first time, the latest real-time data are added into a search result to generate a second search result, and the second search result is sent to a front-end module;
22. the front-end module displays a second search result;
31. the open platform returns the first search result to the front-end module under the condition that the latest real-time data returned by the data center are not received within the set first time;
32. the front-end module requests the latest real-time data from the data center through the open platform;
41. under the condition that the latest real-time data exist in the local cache, the data center reads the local cache to obtain the latest real-time data and returns the real-time data to the front-end module;
42. the front-end module displays the first search result and the latest real-time data;
51. when the latest real-time data does not exist in the local cache, the request of the front-end module data fails;
52. the front-end module presents the first search result.
It should be noted that the above interaction flow is only an example, and in practical applications, the operation of the front-end module to perform the search result presentation after receiving the first search result may be performed under various conditions, which may be specifically selected according to needs, and the embodiment of the present invention is not limited thereto.
Therefore, according to the search result processing device provided by the embodiment of the invention, after the open platform in the back-end module obtains the search result containing the real-time data, the data center in the back-end module directly requests the latest real-time data from the third-party server, and transmits the latest real-time data returned by the third-party server to the open platform, and the open platform adds the latest real-time data into the search result and returns the latest real-time data to the front-end module. Further, the data center can write the latest real-time data returned by the third-party server into a local cache. Therefore, under the condition that the third-party server cannot timely return the latest real-time data, the front-end module can request the latest real-time data from the data center again, correspondingly, the data center obtains the latest real-time data from a local cache and returns the latest real-time data to the front-end module, the front-end module displays the latest real-time data and the search result together, compared with the condition that the front-end module requests the latest real-time data from a partner, namely the third-party server, the time for obtaining the latest real-time data is greatly saved, the phenomenon of screen flashing caused by secondary rendering of the latest real-time data at the front end is avoided, and even under the condition that the network environment is poor, the real-time data can have a good display result.
Fig. 6 is a block diagram illustrating an apparatus 800 of a search result processing method according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various classes of data to support operations at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the key press false touch correction method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present invention also provides a non-transitory computer readable storage medium having instructions which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform all or part of the steps of the above-described method embodiments of the present invention.
Fig. 7 is a schematic structural diagram of a server in an embodiment of the present invention. The server 1900, which may vary widely in configuration or performance, may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) that store applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (12)

1. A method for processing search results, the method comprising:
the method comprises the steps that a search engine front end receives a query request of a user and sends the query request to a search engine rear end;
the rear end of the search engine acquires a first search result containing a real-time data URL according to the query request, and requests the latest real-time data from a third-party server according to the URL;
if the rear end of the search engine receives the latest real-time data returned by the third-party server within the set first time, adding the latest real-time data into the first search result to generate a second search result, and returning the second search result to the front end of the search engine; otherwise, returning the first search result to the front end of the search engine;
after receiving the second search result, the front end of the search engine displays the second search result; or
After receiving the first search result, the front end of the search engine displays the first search result and requests the latest real-time data from a third-party server;
and covering the corresponding real-time data in the first search result by using the latest real-time data obtained by the request.
2. The method of claim 1, further comprising:
after receiving the first search result, the front end of the search engine requests the latest real-time data from the rear end of the search engine;
and after receiving the latest real-time data returned by the rear end of the search engine, the front end of the search engine displays the first search result and adds the latest real-time data to the first search result.
3. The method of claim 2, further comprising:
the rear end of the search engine caches the latest real-time data returned by the third-party server locally;
and after receiving a request of the front end of the search engine for the latest real-time data, the rear end of the search engine acquires the latest real-time data from the local cache and returns the latest real-time data to the front end of the search engine.
4. The method of claim 2, further comprising:
and if the front end of the search engine does not receive the latest real-time data returned by the rear end of the search engine within a set second time, displaying the first search result.
5. The method of claim 1, further comprising:
the front end of the search engine requests the latest real-time data from the third-party server and simultaneously requests the latest real-time data from the back end of the search engine.
6. A search result processing apparatus, characterized in that the apparatus comprises: front end module and rear end module, the rear end module includes: an open platform, a data center;
the front-end module is used for receiving a query request of a user;
the open platform is used for acquiring a first search result containing a real-time data URL according to the query request, sending a real-time data request to the data center, and starting timing after sending the real-time data request, wherein the real-time data request contains the URL;
the data center is used for requesting the latest real-time data from the third-party server according to the URL and transmitting the latest real-time data returned by the third-party server to the open platform;
the open platform is used for adding the real-time data into the first search result to obtain a second search result when receiving the latest real-time data returned by the data center within a set first time, and returning the second search result to the front end of a search engine; otherwise, returning the first search result to the front-end module;
the front-end module is further used for displaying the second search result after receiving the second search result; or after receiving the first search result, showing the first search result and requesting the latest real-time data from a third-party server; and after receiving the latest real-time data returned by the third-party server, covering the corresponding real-time data in the first search result by using the latest real-time data.
7. The apparatus of claim 6,
the front-end module is also used for requesting the latest real-time data from the data center after receiving the first search result;
and after receiving the latest real-time data returned by the data center, the front-end module displays the first search result and adds the latest real-time data to the first search result.
8. The apparatus of claim 7,
the data center is also used for caching the latest real-time data returned by the third-party server locally;
and after receiving the request of the front-end module for the latest real-time data, the data center acquires the latest real-time data from a local cache and returns the latest real-time data to the front-end module.
9. The apparatus of claim 7,
the front-end module is further configured to start timing after requesting the latest real-time data from the data center, and if the latest real-time data returned by the data center is not received within a set second time, the first search result is displayed.
10. The apparatus of claim 6,
the front-end module is also used for requesting the latest real-time data from the rear end of the search engine while requesting the latest real-time data from the third-party server.
11. An electronic device, comprising: one or more processors, memory;
the memory is for storing computer-executable instructions, and the processor is for executing the computer-executable instructions to implement the method of any one of claims 1 to 5.
12. A readable storage medium having stored thereon instructions that are executed to implement the method of any one of claims 1 to 5.
CN201811470330.1A 2018-12-04 2018-12-04 Search result processing method and device Active CN109582851B (en)

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 CN109582851A (en) 2019-04-05
CN109582851B true 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 (5)

* Cited by examiner, † Cited by third party
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
CN107609156A (en) * 2017-09-26 2018-01-19 微梦创科网络科技(中国)有限公司 The method and device that a kind of page is built

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912689B (en) * 2016-04-20 2020-04-21 郑州悉知信息科技股份有限公司 Website display method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
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
CN109582851A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN107862514B (en) Bus card management method, device and system and storage medium
CN106897937B (en) Method and device for displaying social sharing information
CN108804244B (en) Data transmission method, device and storage medium
CN109388625B (en) Method and device for processing configuration file in multi-distributed file system
CN107220059B (en) Application interface display method and device
EP4093040A1 (en) Video playback method and apparatus
CN113190777A (en) Data updating method and device, electronic equipment, storage medium and product
CN111079040B (en) Resource sniffing method, device, terminal, server and storage medium
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN110764847A (en) User information processing method and device, electronic equipment and storage medium
CN110908814A (en) Message processing method and device, electronic equipment and storage medium
CN108012258B (en) Data traffic management method and device for virtual SIM card, terminal and server
CN116112332A (en) Page display method, device and system, electronic equipment and storage medium
CN109582851B (en) Search result processing method and device
CN105607958B (en) Information input method and device
CN112769677B (en) Data synchronization method, apparatus, electronic device, storage medium, and program product
CN112102009A (en) Advertisement display method, device, equipment and storage medium
CN111221862B (en) Request processing method and device
CN109150689B (en) Comment processing method and device and comment processing device
CN111724398A (en) Image display method and device
CN110659253A (en) File packaging method and device, electronic equipment and medium
CN111625536B (en) Data access method and device
CN111107624B (en) Negative one-screen synchronization method, negative one-screen synchronization device and electronic equipment
CN113473233B (en) Log splicing method and device, electronic equipment, storage medium and product
CN106534254B (en) Method for acquiring metering data

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