CN114880595A - Search result style monitoring method and device - Google Patents

Search result style monitoring method and device Download PDF

Info

Publication number
CN114880595A
CN114880595A CN202210163845.7A CN202210163845A CN114880595A CN 114880595 A CN114880595 A CN 114880595A CN 202210163845 A CN202210163845 A CN 202210163845A CN 114880595 A CN114880595 A CN 114880595A
Authority
CN
China
Prior art keywords
image
result
search result
search
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210163845.7A
Other languages
Chinese (zh)
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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202210163845.7A priority Critical patent/CN114880595A/en
Publication of CN114880595A publication Critical patent/CN114880595A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure provides a search result style monitoring method and device, relates to the technical field of computers, and particularly relates to the field of intelligent search. The specific implementation scheme is as follows: and searching the first keyword through a search engine to obtain a first search result, wherein the first search result comprises a plurality of result cards. And acquiring a first image of the Nth result card in the first search result, wherein N is an integer greater than or equal to 1. And acquiring a second image of the Nth result card in the historical search result, wherein the historical search result is obtained by searching the first keyword through a search engine in a historical time period. And determining a test result for the search engine according to the first image and the second image, wherein the test result is used for indicating that the first search result and the historical search result are the same or different. The technical scheme disclosed by the invention can comprehensively and effectively realize the monitoring of the change of the search result card.

Description

Search result style monitoring method and device
Technical Field
The present disclosure relates to the field of intelligent search in computer technologies, and in particular, to a method and an apparatus for monitoring search result patterns.
Background
After a search for a keyword is performed in a search engine, a plurality of search result cards are usually obtained, and monitoring of the search result cards is of great significance.
Currently, in the prior art, when monitoring a search result card, an identifier of the search result card is usually determined, and whether the identifier of the search result card changes is determined, so that whether the search result card is updated or not can be determined.
However, merely monitoring changes in the identity of the search result cards may result in a lack of comprehensiveness in the monitoring of the search result cards.
Disclosure of Invention
The disclosure provides a search result style monitoring method and device.
According to a first aspect of the present disclosure, there is provided a search result style monitoring method, including:
searching a first keyword through a search engine to obtain a first search result, wherein the first search result comprises a plurality of result cards;
acquiring a first image of an Nth result card in the first search result, wherein N is an integer greater than or equal to 1;
acquiring a second image of an Nth result card in historical search results, wherein the historical search results are obtained by searching the first keyword through the search engine in a historical time period;
and determining a test result for the search engine according to the first image and the second image, wherein the test result is used for indicating that the first search result and the historical search result are the same or different.
According to a second aspect of the present disclosure, there is provided a search result pattern monitoring apparatus, including:
the processing module is used for searching the first keyword through a search engine to obtain a first search result, and the first search result comprises a plurality of result cards;
the first acquisition module is used for acquiring a first image of an Nth result card in the first search result, wherein N is an integer greater than or equal to 1;
the second acquisition module is used for acquiring a second image of an Nth result card in historical search results, wherein the historical search results are obtained by searching the first keyword through the search engine in a historical time period;
a determining module, configured to determine a test result for the search engine according to the first image and the second image, where the test result is used to indicate that the first search result and the historical search result are the same or different.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of the first aspect.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising: a computer program, stored in a readable storage medium, from which at least one processor of an electronic device can read the computer program, execution of the computer program by the at least one processor causing the electronic device to perform the method of the first aspect.
The technology according to the present disclosure solves the problem of lack of comprehensiveness with respect to monitoring of search result cards.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic diagram of an implementation of information search provided by an embodiment of the present disclosure;
fig. 2 is a schematic diagram illustrating an identifier change of a search result card according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of a search result pattern monitoring method provided by an embodiment of the present disclosure;
FIG. 4 is a second flowchart of a search result pattern monitoring method according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating an implementation of a task queue provided by an embodiment of the present disclosure;
fig. 6 is a schematic diagram illustrating an implementation of a preset storage space according to an embodiment of the disclosure;
FIG. 7 is a schematic diagram illustrating a style update of a search result card according to an embodiment of the present disclosure;
fig. 8 is a flowchart illustrating a search result pattern monitoring method according to an embodiment of the present disclosure;
FIG. 9 is a schematic structural diagram of a search result pattern monitoring apparatus according to an embodiment of the present disclosure;
fig. 10 is a block diagram of an electronic device for implementing a search result pattern monitoring method according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In order to better understand the technical solution of the present disclosure, the related art related to the present disclosure is further described in detail below.
With the continuous development of internet technology, various sites in the internet provide people with rich and colorful information, so that searching information in the internet through a search engine at present becomes a very common information acquisition mode.
The present implementation of information search based on a search engine is first described herein. In the current implementation process of information search, a user usually inputs a search keyword through a client, and the client in the present disclosure may be an application client on a terminal device, or may also be a web client in a web page. And then the search engine matches the webpage contents which are put in storage according to the search keywords, so that a plurality of search result cards with high relevance are returned to the client or the web end, and the search results are ranked according to the relevance of the search result cards.
For example, fig. 1 may be referred to for understanding, and fig. 1 is a schematic diagram illustrating an implementation of information search provided by an embodiment of the present disclosure.
Referring to fig. 1, a client may receive a search keyword 101 input by a user, and may send the search keyword to a server when receiving a click operation of the search control 102 by the user, assuming that the search keyword currently received by the client is "how home the virus will be brought by shoes".
The server can then match the search keywords with the entered web page content to obtain a plurality of search results with high relevance to the search keywords, and send the contents of the plurality of search results to the client.
In one possible implementation, the client may display the search result in the form of a search result card, for example, as shown in fig. 1, two search result cards are currently displayed in the client, where each search result card corresponds to one search result, and the search result may be web page content.
If the client receives a click operation of the user on the search result card 103, the detailed web page content corresponding to the search result card 103 may be displayed, for example, the detailed content "how the shoes will take the virus home" may be displayed.
Based on the above description, it can be understood that after the search of the keyword in the search engine, a plurality of search result cards are usually obtained, and it is important to monitor the search result cards. For example, as a research and development party of a search engine, whether a search result card of another search engine is updated or not can be analyzed, so that the product can be optimized. For another example, whether the display of the search result card of the search engine is correct or not may be analyzed.
Currently, in the prior art, when monitoring a search result card, the identifier of the search result card at a specific position is determined by analyzing a page structure of the search result, and the identifier of the currently grabbed search result card is compared with the identifier of the previously grabbed search result card. Because each search result corresponds to the unique identification of the search result in the internet, whether the identification of the search result card changes or not can be determined, and whether the search result card in the search page is updated or not can be determined.
The above description may be understood by taking a specific example in conjunction with fig. 2, for example, where fig. 2 is a schematic diagram illustrating an identification change of a search result card provided by an embodiment of the present disclosure.
As shown in fig. 2, assuming that a search is currently conducted in the search engine for the keyword "do shoes will take the virus home", a plurality of search result cards may be presented in the current search result page 20. Assume that the identity of the search result card 203 that is the first position in the crawl search results page 20 is C. And assuming that searching for the keyword at a historical time can result in a historical search result page 10, the identification of the search result card 201 at the first position in the search result page 10 is a. Based on fig. 2, it can be determined that, for the same keyword, the search result cards in the same position in the two search results of the search engine are different, and it can be determined that the search engine currently updates the search result card of the keyword.
It will be appreciated that the prior art described above is directed to monitoring search result cards, and is only directed to monitoring changes in the identity of the search result cards. Which can result in a lack of comprehensiveness in the monitoring of the search result cards.
Specifically, it is determined whether the search result card is updated only by the change of the identifier of the search result card, and the function is actually not complete, for example, if the style of the search result card is changed, that is, the search result card of the identifier is still at the position, but the style of the search result card is changed, the monitoring cannot monitor the change of the search result card. The style change of the search result card may be, for example, a font change, a color change, a structure change, a picture change, and the like, which is not limited in this embodiment.
Aiming at the problem that the monitoring of a search result card in the prior art is lack of comprehensiveness, the following technical concept is provided in the disclosure: by acquiring the screenshot of the search result card, whether the style of the search result card changes or not is compared, and the monitoring diversity and comprehensiveness of the search result card are improved.
Based on the above description, the search result pattern monitoring method provided by the present disclosure is described in detail below with reference to specific embodiments. It should be noted that, for example, the execution main body in each embodiment of the present disclosure may be a local server, a cloud server, or other devices, as long as the execution main body can obtain the relevant content of the search result card and has a data processing capability, and on this basis, the specific implementation of the execution main body may be selected and set according to actual requirements.
First, referring to fig. 3, fig. 3 is a flowchart of a search result pattern monitoring method according to an embodiment of the present disclosure.
As shown in fig. 3, the method includes:
s301, searching the first keyword through a search engine to obtain a first search result, wherein the first search result comprises a plurality of result cards.
In this embodiment, the first keyword may be, for example, a preset specified keyword. Meanwhile, it can be understood that search engines are various, and results obtained by different search engines for the same keyword are necessarily different, so that the current search engine can be a designated search engine, and in an actual application process, whether a search result card of a specific search engine is changed or not is generally analyzed.
Therefore, in this embodiment, for example, a preset first keyword may be searched by a specified search engine, so as to obtain a first search result, and the first search result may include a plurality of result cards, where specific implementations of the search result cards are described in the above embodiments, and are not described here again.
S302, a first image of an Nth result card in the first search result is obtained, wherein N is an integer greater than or equal to 1.
A plurality of result cards may be included in the first search result, and when comparing whether the style of the search result cards changes, the comparison is generally performed for the search result cards at the same position in the search result, and in order to determine whether the style of the search result cards changes, an image of the search result cards may be acquired.
Therefore, in this embodiment, the first image of the nth result card in the first search result may be acquired, so as to facilitate a subsequent analysis of whether the style of the nth result card changes. N is an integer greater than or equal to 1, and the specific implementation of N may be selected and set according to actual requirements, that is, the embodiment does not limit the specific acquisition of the images of the several result cards in the first search result, and the selection and the setting may be performed according to actual requirements.
S303, acquiring a second image of the Nth result card in the historical search result, wherein the historical search result is obtained by searching the first keyword through a search engine in a historical time period.
In order to determine whether the style of the search result card at the corresponding position changes, in this embodiment, a second image of the corresponding search result card in the historical search result also needs to be acquired.
In this embodiment, the historical search result is obtained by searching the same first keyword through the same search engine in the historical period, and it can be understood that the historical search result also includes a plurality of result cards.
It should be mentioned that, if the same keyword is searched by the same search engine, the search result cards in the respective positions are always the same unless the search result changes. For example, a search engine searches for a first keyword, and the obtained search result sequentially includes a search result card 1, a search result card 2, a search result card 3, and a search result card 4. The first keyword is searched in the search engine next time, and the obtained search results are still the search result card 1, the search result card 2, the search result card 3 and the search result card 4 in sequence.
Based on this premise, the nth result card in the first search result and the nth result card in the historical search result are corresponding result cards, and in order to determine whether the nth result card changes, the second image of the nth result card in the historical search result can be acquired.
S304, determining a test result for the search engine according to the first image and the second image, wherein the test result is used for indicating that the first search result and the historical search result are the same or different.
It can be understood that the first image and the second image are images obtained from the nth result card in the search result for the same keyword at different time, and then the test result for the search engine can be determined by comparing the first image and the second image, where the test result in this embodiment is used to indicate that the first search result and the historical search result are the same or different.
If the first search result is the same as the historical search result, the search result card of the search engine is not changed, and the first search result and the historical search result are unchanged, wherein the first search result and the historical search result include that the identification is not changed and the style is not changed. And if the first search result is different from the historical search result, the search result card of the search engine is changed, and the change may be that the identification is changed, namely the content of the result card at the Nth position is directly changed, or may also be that the style of the search result card is changed, namely the result card at the Nth position is the result card, but the presentation style is updated. Therefore, the search result card can be comprehensively monitored.
The search result style monitoring method provided by the disclosure comprises the following steps: and searching the first keyword through a search engine to obtain a first search result, wherein the first search result comprises a plurality of result cards. And acquiring a first image of the Nth result card in the first search result, wherein N is an integer greater than or equal to 1. And acquiring a second image of the Nth result card in the historical search result, wherein the historical search result is obtained by searching the first keyword through a search engine in a historical time period. And determining a test result for the search engine according to the first image and the second image, wherein the test result is used for indicating that the first search result and the historical search result are the same or different. By acquiring the first image of the search result card at the specified position at the current moment and the second image of the search result card at the specified position at the historical moment, and comparing the first image with the image images, whether the search results of the current search engine for the same keyword at different moments are the same or not is determined, whether the search result card is updated or not is determined, and therefore monitoring on the change of the search result card can be comprehensively and effectively achieved.
On the basis of the foregoing embodiments, the following describes in further detail the implementation of the search result pattern monitoring method provided by the present disclosure with reference to fig. 4 to 7, where fig. 4 is a second flowchart of the search result pattern monitoring method provided by the embodiment of the present disclosure, fig. 5 is an implementation schematic diagram of a task queue provided by the embodiment of the present disclosure, fig. 6 is an implementation schematic diagram of a preset storage space provided by the embodiment of the present disclosure, and fig. 7 is a pattern update schematic diagram of a search result card provided by the embodiment of the present disclosure.
As shown in fig. 4, the method includes:
s401, a first task is obtained from the task queue, wherein the first task comprises a first keyword and an identifier of a search engine.
In this embodiment, the implementation of the search for the keyword by the search engine may be accomplished by creating a task. For example, if it is required to test whether a search result card of a certain search engine for a specific keyword is changed, a task for the search engine and the keyword may be created, and the created task may be stored in a task queue so as to sequentially execute the respective tasks.
In one possible implementation manner, a first task may be obtained from a task queue, and referring to fig. 5, a plurality of tasks to be executed may be included in the task queue, for example, in the example of fig. 5, task 1, task 2, task 3, and task 4 are included in the task queue. Each task may include a keyword, an identifier of a search engine, and a card identifier, and is used to instruct the specified keyword to be searched in the specified search engine, and acquire an image of a search result card corresponding to the card identifier.
For example, if the task 1 in fig. 5 may be the first task in this embodiment, referring to fig. 5, the first task includes the first keyword a and the identifier 1 of the search engine, and the first task may further include the card identifier N, when the first task is executed, the first keyword a may be searched by the search engine 1, and an image of the nth search result card in the search result is obtained.
S402, executing a first task to search the first keyword through a search engine to obtain a first search result.
Based on the above description, it may be determined that the first task in the present embodiment may indicate that a specific keyword is searched in a specific search engine, and therefore, the first task may be executed to search for the first keyword through the search engine in the present embodiment, so as to obtain the first search result.
S403, obtaining a card identification N from the first task.
In this embodiment, after the first search result is obtained, a search result card at a specific position is further obtained from a plurality of search result cards in the first search result, and in order to determine which position to obtain the search result card specifically, the card identifier N may be obtained from the first task in this embodiment.
It can be understood that the first keyword, the identifier of the search engine, and the card identifier N included in the first task may be selected and set according to actual requirements, which is not limited in this embodiment.
S404, acquiring an Nth result card from the first search result according to the card identification N.
After the card identifier N is obtained, an nth result card may be obtained from the plurality of search result cards in the first search result according to the card identifier N.
S405, image interception is carried out on the Nth result card to obtain a first image.
After the nth result card is obtained, image capture may be performed on the nth result card, which may also be understood as a general capture operation, that is, an image represented by the nth result card is obtained, so that the first image of the nth result card may be obtained.
S406, obtaining a second image of the Nth result card in the historical search result, wherein the historical search result is obtained by searching the first keyword through a search engine in a historical time period.
It can be determined based on the above description that in order to determine whether the image of the result card has changed, it is necessary to acquire a second image of the nth result card in the historical search results in addition to the first image of the nth result card in the first search results.
It should be noted that, in this embodiment, for each task, after each task is executed, an image of the search result card corresponding to the task is actually obtained, and for convenience of subsequent comparison, the currently obtained image of the search result card corresponding to the task may be stored in the preset storage space.
In a possible implementation manner, in the preset storage space, the images to be compared corresponding to each task are stored, and more specifically, for any task, the image to be compared corresponding to the task is actually an image of a search result card obtained when the task is executed last time, so as to facilitate subsequent comparison.
For example, it can be understood with reference to fig. 6 that, as shown in fig. 6, images to be compared of each task may be stored in the preset storage space, for example, the image 1 to be compared is stored for the task 1, the image 2 to be compared is stored for the task 2, the image 3 to be compared is stored for the task 3, and the image to be compared is not stored for the task 4.
When the second image of the nth result card in the historical search result is obtained, because the current first image is obtained by executing the first task, it may be determined whether an image to be compared corresponding to the first task is stored in the preset storage space, for example.
If the image to be compared corresponding to the first task is stored in the preset storage space, the image to be compared in the preset storage space may be determined as the second image. For example, if task 1 in fig. 6 is the first task, it may be determined that the second image is image 1 in fig. 6.
Or, if the image to be compared corresponding to the first task is not stored in the preset storage space, it may be determined that the second image is empty. For example, if task 4 in fig. 6 is the first task, it may be determined that the second image is empty.
It should be noted that, when the image to be compared corresponding to the first task is not stored in the preset storage space, it indicates that the currently acquired first image is an image obtained by executing the first task for the first time, and therefore the image to be compared corresponding to the first task is not stored in the preset storage space, and it may be determined that the second image is empty. For example, task 4 in fig. 6 does not store the image to be compared because task 4 has not been executed before.
In this embodiment, the second image is obtained to compare the first image and the second image to determine whether the search result card of the search engine for the corresponding keyword is changed, however, when the second image is empty, the first image is not an object of comparison, and because the first image is a card obtained by performing the first task for the first time, for example, it may be directly determined that the test result is that the first search result is the same as the historical search result, that is, the search result card is not changed.
And S407, performing image comparison on the first image and the second image to obtain a comparison result.
After the second image is acquired, the first image and the second image may be subjected to image comparison, and a comparison result is obtained after the image comparison, where the comparison result may indicate that the first image and the second image are the same or that the first image and the second image are different.
And S408, if the comparison result is that the first image and the second image are the same, determining that the test result indicates that the first search result is the same as the historical search result.
In a possible implementation manner, if the comparison result is that the first image and the second image are the same, it may be determined that, in the first task, after the first keyword is searched in the search engine, the nth search result card in the obtained search result is kept unchanged, and it may be determined that the test result indicates that the first search result is the same as the historical search result.
And S409, if the comparison result is that the first image is different from the second image, determining that the test result indicates that the first search result is different from the historical search result.
In another possible implementation manner, if the comparison result is that the first image and the second image are different, it may be determined that, in the first task, after the search engine searches for the first keyword, the nth search result card in the obtained search result is changed, which may be that the search result card itself is changed, for example, one search result card is changed into another search result card.
It is also possible that the search result card itself is unchanged, but that the style of the same search result card is changed. For example, the style change of the search result card may be understood with reference to fig. 7, and as shown in fig. 7, assuming that a search is currently performed in the search engine for the keyword "will take a virus home", a plurality of search result cards may be displayed in the current search result page 40. Assume that the identification of the first position of the search result card 701 in the search result page 40 is a, and the style of the search result card 701 is represented as style 2. And assuming that searching for the keyword at a historical time can result in a historical search result page 30, the identification of the search result card 701 at the first position in the search result page 30 is a, and the style of the search result card 701 is represented as style 1.
Then, based on fig. 7, it can be determined that, for the same keyword, the same search result card in the two search results of the search engine, which is the same at the same position, is the search result card 701 identified as a, but the styles presented by the search result cards 701 twice are different, and then it can be determined that the current search engine updates the style of the search result card for the keyword.
Upon determining that the comparison result is that the first image and the second image are different, it may be determined that the test result indicates that the first search result and the historical search result are different.
In a possible implementation manner, when it is determined that the test result is the first search result and the historical search result are different, for example, notification information may be sent to the target device, where the notification information is used to indicate that the first search result is different from the historical search result, so that relevant people determine a change of a search result card of the search engine and perform corresponding subsequent processing.
And S410, updating the image to be compared corresponding to the first task in the preset storage space into a first image.
After the test result is determined, because each time the image comparison is performed, the image obtained by currently executing the task is compared with the image obtained by executing the task last time, in order to facilitate the next image comparison for the first task, the image to be compared corresponding to the first task in the preset storage space may be updated to the first image obtained by executing the first task this time.
According to the search result style monitoring method provided by the embodiment of the disclosure, through a mode of configuring and executing the task, the specified keyword is searched through the specified search engine, and the search result card at the specified position is obtained, so that the task can be executed for multiple times, whether the search result card of the specific search engine changes or not can be quickly and effectively determined, the same task can be effectively executed for multiple times, and the follow-up comparison is facilitated. Meanwhile, in the embodiment, after the task execution is completed every time, the image obtained by the task execution is stored in the preset storage space, so that when comparison is needed next time, the image to be compared is directly obtained from the preset storage space, and therefore the second image at the historical moment can be quickly and effectively obtained, and the monitoring speed and efficiency of the search engine are improved. In addition, in the embodiment, the first image and the second image of the nth search result card are compared to determine whether the search result card of the current search engine is changed, so that the updating of the search result card can be comprehensively monitored from various aspects of the content and the identification of the search result card, and the monitoring comprehensiveness for the search result card is effectively improved.
Based on the content described in the above embodiment, a systematic description is given below with reference to fig. 8 to an implementation flow of the search result pattern monitoring method provided by the present disclosure, and fig. 8 is a schematic flow diagram of the search result pattern monitoring method provided by the embodiment of the present disclosure.
After the process has started, as shown in fig. 8, tasks may be submitted, for example, by the relevant operator, wherein the submission of tasks may be performed, for example, by means of a task file. The task file may include, for example, information related to each task to be performed.
After the system receives the uploaded task file, the submitted task file can be read, so that a task queue is created, the task queue comprises a plurality of tasks to be executed in the task file, and then each task in the task queue is executed.
For example, a current first task is executed first, a first image is obtained according to task information of the first task, where the task information of the first task may include the first keyword, the identifier of the search engine, and the card identifier N described in the above embodiment, then the first image is obtained according to the task information of the first task, which is actually obtained by searching the first keyword through the search engine to obtain a first search result, and a first image of an nth result card in the first search result is obtained. For a more detailed implementation of performing the first task to obtain the first image, reference may be made to the description of the above embodiments, and details are not described here.
After the first task is executed, for example, it may be determined whether the current first task is executed for the first time, and if the current first task is executed for the first time, it may be determined that the image to be compared corresponding to the first task is not stored in the preset storage space, referring to fig. 8, for example, the current first image may be stored as the image to be compared corresponding to the first task. And in a possible implementation manner, it may also be determined that the test result for the search engine is that the search engine does not update the search result card.
Alternatively, if it is determined that the current first task is not executed for the first time, that is, the first task has been executed before, it may be determined that the image to be compared of the first task is stored in the preset storage space, and therefore, the image to be compared of the first task may be acquired in the preset storage space, so as to obtain the second image.
After the first image and the second image are acquired, the first image and the second image may be compared to obtain a comparison result, where the comparison result may indicate whether the first image and the second image are the same.
After the comparison result of the first image and the second image is obtained, it can be determined that the first task has been performed, and then it is determined whether the notification needs to be sent or not according to the comparison result of the first image and the second image.
Specifically, if the comparison result indicates that the first image and the second image are the same, it may be determined that the search engine does not update or modify the search result card, and then it is not necessary to send a related notification, and it may be determined that the process corresponding to the first task is ended. Or, if the comparison result indicates that the first image and the second image are not the same, it may be determined that the search engine updates or modifies the search result card, and notification information needs to be sent to the target device to prompt the currently monitored search engine to update the search result card quickly and effectively.
It can be understood that, the above description is directed to the implementation process of a certain task in the task queue, and each task in the task queue needs to be processed, so that when it is determined that there are still remaining tasks in the task queue, the next task in the task queue can be executed, and the implementation manner is similar to the above description until each task in the task queue is executed and completed.
Therefore, the method for monitoring the search result style provided by the embodiment of the disclosure can monitor the updating of the search result card more comprehensively through image comparison, and further realize the monitoring of the existing search result card from simple identification monitoring to richer style monitoring. Therefore, the problems that the optimization action of the related card cannot be monitored after the card style is upgraded under the same identification, the research and development of products are influenced, the follow-up recall is realized, the upgrade of the corresponding card is realized, and the like are solved.
Meanwhile, the monitoring of the style change of the search result card can effectively analyze the optimization information of other search engines, so that the user can be helped to quickly master the industry and the dynamics. Therefore, according to the user requirements, the target to be analyzed by the user can be subjected to sample collection, or the user can be helped to finish the requirements after the current analysis service is perfected through function iteration. And further, the method can help the user to collect required data, promote service growth and optimize service user experience.
In addition, in the implementation process, after a test result corresponding to any one task is obtained, if it is determined that notification is needed, the notification service is directly called to send notification information to the target device, so that timeliness of the task and timeliness of the notification are guaranteed.
Fig. 9 is a schematic structural diagram of a search result pattern monitoring apparatus according to an embodiment of the present disclosure. As shown in fig. 9, the search result pattern monitoring apparatus 900 of the present embodiment may include: a processing module 901, a first obtaining module 902, a second obtaining module 903, and a determining module 904.
The processing module 901 is configured to search a first keyword through a search engine to obtain a first search result, where the first search result includes a plurality of result cards;
a first obtaining module 902, configured to obtain a first image of an nth result card in the first search result, where N is an integer greater than or equal to 1;
a second obtaining module 903, configured to obtain a second image of an nth result card in a historical search result, where the historical search result is obtained by searching for the first keyword through the search engine in a historical time period;
a determining module 904, configured to determine a test result for the search engine according to the first image and the second image, where the test result is used to indicate that the first search result and the historical search result are the same or different.
In a possible implementation manner, the processing module 901 is specifically configured to:
acquiring a first task from a task queue, wherein the first task comprises the first keyword and the identifier of the search engine;
and executing the first task to search the first keyword through the search engine to obtain the first search result.
In a possible implementation manner, the first task further includes a card identifier N;
the first obtaining module 902 is specifically configured to:
acquiring the card identification N from the first task;
acquiring an Nth result card from the first search result according to the card identifier N;
and carrying out image interception on the Nth result card to obtain the first image.
In a possible implementation manner, the processing module 901 is further configured to:
and after determining a test result of the search engine according to the first image and the second image, updating an image to be compared corresponding to a first task in a preset storage space to the first image.
In a possible implementation manner, the second obtaining module 902 is specifically configured to:
if the image to be compared corresponding to the first task is stored in a preset storage space, determining the image to be compared as the second image; or,
and if the image to be compared corresponding to the first task is not stored in the preset storage space, determining that the second image is empty.
In a possible implementation manner, the determining module 904 is specifically configured to:
carrying out image comparison on the first image and the second image to obtain a comparison result;
if the comparison result is that the first image is the same as the second image, determining that the test result indicates that the first search result is the same as the historical search result;
and if the comparison result is that the first image and the second image are different, determining that the test result indicates that the first search result and the historical search result are different.
In a possible implementation manner, the processing module 901 is further configured to:
after determining that the test result indicates that the first search result and the historical search result are different, sending notification information to a target device, wherein the notification information is used for indicating that the first search result and the historical search result are different.
The invention provides a search result style monitoring method and device, which are applied to the field of intelligent search in computer technology and aim to improve the comprehensiveness of monitoring for search result cards.
It should be noted that the head model in this embodiment is not a head model for a specific user, and cannot reflect personal information of a specific user. It should be noted that the two-dimensional face image in the present embodiment is from a public data set.
In the technical scheme of the disclosure, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the personal information of the related user are all in accordance with the regulations of related laws and regulations and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
According to an embodiment of the present disclosure, the present disclosure also provides a computer program product comprising: a computer program, stored in a readable storage medium, from which at least one processor of the electronic device can read the computer program, the at least one processor executing the computer program causing the electronic device to perform the solution provided by any of the embodiments described above.
FIG. 10 illustrates a schematic block diagram of an example electronic device 1000 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 10, the apparatus 1000 includes a computing unit 1001 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)1002 or a computer program loaded from a storage unit 1008 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data necessary for the operation of the device 1000 can also be stored. The calculation unit 1001, the ROM 1002, and the RAM 1003 are connected to each other by a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
A number of components in device 1000 are connected to I/O interface 1005, including: an input unit 1006 such as a keyboard, a mouse, and the like; an output unit 1007 such as various types of displays, speakers, and the like; a storage unit 1008 such as a magnetic disk, an optical disk, or the like; and a communication unit 1009 such as a network card, a modem, a wireless communication transceiver, or the like. The communication unit 1009 allows the device 1000 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
Computing unit 1001 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 1001 executes the respective methods and processes described above, such as the search result pattern monitoring method. For example, in some embodiments, the search result pattern monitoring method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 1008. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 1000 via ROM 1002 and/or communications unit 1009. When the computer program is loaded into the RAM 1003 and executed by the computing unit 1001, one or more steps of the search result pattern monitoring method described above may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to perform the search result pattern monitoring method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (17)

1. A search result style monitoring method, comprising:
searching a first keyword through a search engine to obtain a first search result, wherein the first search result comprises a plurality of result cards;
acquiring a first image of an Nth result card in the first search result, wherein N is an integer greater than or equal to 1;
acquiring a second image of an Nth result card in historical search results, wherein the historical search results are obtained by searching the first keyword through the search engine in a historical time period;
and determining a test result for the search engine according to the first image and the second image, wherein the test result is used for indicating that the first search result and the historical search result are the same or different.
2. The method of claim 1, wherein searching for the first keyword by the search engine to obtain the first search result comprises:
acquiring a first task from a task queue, wherein the first task comprises the first keyword and the identifier of the search engine;
and executing the first task to search the first keyword through the search engine to obtain the first search result.
3. The method of claim 2, wherein the first task further comprises a card identification N;
the obtaining a first image of an nth result card in the first search result includes:
acquiring the card identification N from the first task;
acquiring an Nth result card from the first search result according to the card identifier N;
and carrying out image interception on the Nth result card to obtain the first image.
4. The method of claim 2 or 3, after determining test results for the search engine from the first image and the second image, the method further comprising:
and updating the image to be compared corresponding to the first task in a preset storage space into the first image.
5. The method of claim 4, wherein said obtaining a second image of an nth result card of the historical search results comprises:
if the image to be compared corresponding to the first task is stored in a preset storage space, determining the image to be compared as the second image; or,
and if the image to be compared corresponding to the first task is not stored in the preset storage space, determining that the second image is empty.
6. The method of any of claims 1-5, wherein the determining a test result for the search engine from the first image and the second image comprises:
carrying out image comparison on the first image and the second image to obtain a comparison result;
if the comparison result is that the first image is the same as the second image, determining that the test result indicates that the first search result is the same as the historical search result;
and if the comparison result is that the first image and the second image are different, determining that the test result indicates that the first search result and the historical search result are different.
7. The method of claim 6, after determining that the test results indicate that the first search results and the historical search results are different, the method further comprising:
and sending notification information to a target device, wherein the notification information is used for indicating that the first search result and the historical search result are different.
8. A search result pattern monitoring apparatus, comprising:
the processing module is used for searching the first keyword through a search engine to obtain a first search result, and the first search result comprises a plurality of result cards;
the first acquisition module is used for acquiring a first image of an Nth result card in the first search result, wherein N is an integer greater than or equal to 1;
the second acquisition module is used for acquiring a second image of an Nth result card in historical search results, wherein the historical search results are obtained by searching the first keyword through the search engine in a historical time period;
a determining module, configured to determine a test result for the search engine according to the first image and the second image, where the test result is used to indicate that the first search result and the historical search result are the same or different.
9. The apparatus of claim 8, wherein the processing module is specifically configured to:
acquiring a first task from a task queue, wherein the first task comprises the first keyword and the identifier of the search engine;
and executing the first task to search the first keyword through the search engine to obtain the first search result.
10. The apparatus according to claim 9, wherein the first task further comprises a card identification N;
the first obtaining module is specifically configured to:
acquiring the card identification N from the first task;
acquiring an Nth result card from the first search result according to the card identifier N;
and carrying out image interception on the Nth result card to obtain the first image.
11. The apparatus of claim 9 or 10, the processing module to further:
and after determining a test result of the search engine according to the first image and the second image, updating an image to be compared corresponding to a first task in a preset storage space to the first image.
12. The apparatus according to claim 11, wherein the second obtaining module is specifically configured to:
if the image to be compared corresponding to the first task is stored in a preset storage space, determining the image to be compared as the second image; or,
and if the image to be compared corresponding to the first task is not stored in the preset storage space, determining that the second image is empty.
13. The apparatus according to any one of claims 8-12, wherein the determining means is specifically configured to:
carrying out image comparison on the first image and the second image to obtain a comparison result;
if the comparison result is that the first image is the same as the second image, determining that the test result indicates that the first search result is the same as the historical search result;
and if the comparison result is that the first image and the second image are different, determining that the test result indicates that the first search result and the historical search result are different.
14. The apparatus of claim 13, the processing module further configured to:
after determining that the test result indicates that the first search result and the historical search result are different, sending notification information to a target device, wherein the notification information is used for indicating that the first search result and the historical search result are different.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
17. A computer program product comprising a computer program which, when executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202210163845.7A 2022-02-22 2022-02-22 Search result style monitoring method and device Pending CN114880595A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210163845.7A CN114880595A (en) 2022-02-22 2022-02-22 Search result style monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210163845.7A CN114880595A (en) 2022-02-22 2022-02-22 Search result style monitoring method and device

Publications (1)

Publication Number Publication Date
CN114880595A true CN114880595A (en) 2022-08-09

Family

ID=82667162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210163845.7A Pending CN114880595A (en) 2022-02-22 2022-02-22 Search result style monitoring method and device

Country Status (1)

Country Link
CN (1) CN114880595A (en)

Similar Documents

Publication Publication Date Title
CN111858360B (en) Applet testing method, device, equipment and storage medium
WO2023231350A1 (en) Task processing method implemented by using integer programming solver, device, and medium
CN113377809A (en) Data processing method and apparatus, computing device, and medium
CN113986788A (en) Data processing method and device, chip, electronic device and medium
CN114861039B (en) Parameter configuration method, device, equipment and storage medium of search engine
CN114443989B (en) Ranking method, training method and device of ranking model, electronic equipment and medium
KR20230006601A (en) Alignment methods, training methods for alignment models, devices, electronic devices and media
US20210389156A1 (en) Map rendering method and apparatus, device, and storage medium
CN114676062B (en) Differential data testing method and device for interface, electronic equipment and medium
CN114880595A (en) Search result style monitoring method and device
CN115454971A (en) Data migration method and device, electronic equipment and storage medium
CN115587228A (en) Object query method, object storage method and device
CN115248735A (en) Log data output control method, device, equipment and storage medium
EP4152174A1 (en) Data processing method and apparatus, and computing device and medium
CN115809364B (en) Object recommendation method and model training method
US20210342538A1 (en) Processing word segmentation ambiguity
CN117093595A (en) Data query method, device, equipment and medium
CN114329159A (en) Search method, search device, electronic equipment and medium
CN118821676A (en) Chip verification method and device, equipment and medium
CN118468991A (en) User request processing method and device, electronic equipment and storage medium
CN114428908A (en) Information searching method, device, equipment, storage medium and product
CN114238792A (en) Method and device for track point data mining, electronic equipment and medium
CN114254216A (en) Method and device for providing search result, electronic equipment and medium
CN114037778A (en) Method and device for producing map in high-precision map
CN115146201A (en) Page time cheating screening method and device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination