CN110119471B - Method and device for checking consistency of search results - Google Patents

Method and device for checking consistency of search results Download PDF

Info

Publication number
CN110119471B
CN110119471B CN201910278487.2A CN201910278487A CN110119471B CN 110119471 B CN110119471 B CN 110119471B CN 201910278487 A CN201910278487 A CN 201910278487A CN 110119471 B CN110119471 B CN 110119471B
Authority
CN
China
Prior art keywords
search result
result page
screenshot
page
item
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
CN201910278487.2A
Other languages
Chinese (zh)
Other versions
CN110119471A (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 CN201910278487.2A priority Critical patent/CN110119471B/en
Publication of CN110119471A publication Critical patent/CN110119471A/en
Application granted granted Critical
Publication of CN110119471B publication Critical patent/CN110119471B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3072Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
    • G06F11/3075Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting the data filtering being achieved in order to maintain consistency among the monitored data, e.g. ensuring that the monitored data belong to the same timeframe, to the same system or component
    • 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
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Landscapes

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

Abstract

The invention discloses a method for checking consistency of search results, which comprises the following steps: obtaining a search result page corresponding to a query word, wherein the search result page is from a server to search the query word; screening the search result items in the search result page, and acquiring a screenshot of a specific search result page only containing a target search result item based on the screened search result items; the target search result item is a search result item which is specified to be checked when consistency check is carried out; and checking the consistency of the search results based on the screenshot of the specific search result page. The invention realizes the technical effect of improving the checking accuracy of the consistency of the search results. Meanwhile, the invention also discloses a device for checking the consistency of the search results.

Description

Method and device for checking consistency of search results
Technical Field
The present invention relates to the field of search technologies, and in particular, to a method and an apparatus for checking consistency of search results.
Background
With the rapid development of search technology, the search function is more and more powerful, and the method can provide all-around search services such as news, web pages, pictures, WeChat, music, videos, maps, shopping, academics, medical treatment and the like, and is very popular with the majority of users. In addition, since there are hundreds of millions of users using search services, one server has not been able to meet the requirement of search services, and nowadays, multiple servers are used to provide search services to users.
The multiple servers work simultaneously, so that the situation that the search logics are inconsistent (that is, the multiple servers search for the same query word simultaneously, and the obtained search results are inconsistent) is inevitable, some of the search logics are designed manually (for example, the search results are provided differently for users in different regions due to individuation), and some of the search logics are defective. Therefore, it is necessary to check these servers for consistency of search results so that the technician knows the state of the servers.
However, at present, when the consistency of the search results is checked, the accuracy is not high, and valuable check results are difficult to provide for technicians.
Disclosure of Invention
The embodiment of the invention provides a method and a device for checking consistency of search results, which can improve the accuracy of checking the consistency of the search results.
In a first aspect, the present invention provides the following technical solutions through an embodiment of the present invention:
a method for checking search result consistency comprises the following steps:
obtaining a search result page corresponding to a query word, wherein the search result page is from a server to search the query word;
screening the search result items in the search result page, and acquiring a screenshot of a specific search result page only containing a target search result item based on the screened search result items; the target search result item is a search result item which is specified to be checked when consistency check is carried out;
and checking the consistency of the search results based on the screenshot of the specific search result page.
Preferably, the obtaining of the search result page corresponding to the query term includes:
acquiring a Uniform Resource Locator (URL) of a query request corresponding to the query word;
and sending the query request URL to the server, and receiving the search result page fed back by the server.
Preferably, the screening search result items in the search result page, and obtaining a screenshot of a specific search result page only including a target search result item based on the screened search result item, includes:
acquiring feature information of the target search result item;
finding an interfering search result item that does not belong to the target search result item in the search result page based on the feature information;
hiding the interfering search result items in the search result page;
and screenshot is carried out on the search result page after the interference search result item is hidden, and the screenshot of the specific search result page is obtained.
Preferably, the hiding the interfering search result items in the search result page includes:
and deleting html codes corresponding to the interference search result items from the search result page.
Preferably, the screening search result items in the search result page, and obtaining a screenshot of a specific search result page only including a target search result item based on the screened search result item, includes:
screenshot is carried out on the search result page, and a screenshot of the search result page is obtained;
acquiring feature information of the target search result item;
finding the target search result item in the search result page based on the characteristic information;
acquiring the position coordinates of the target search result item in the search result page;
based on the position coordinates, intercepting a part only containing the target search result item from the search result screenshot to obtain the specific search result screenshot.
Preferably, the screening search result items in the search result page, and obtaining a screenshot of a specific search result page only including a target search result item based on the screened search result item, includes:
acquiring feature information of the target search result item;
finding the target search result item in the search result page based on the characteristic information;
and generating a specific search result page based on the target search result item, and performing screenshot on the specific search result page to obtain the screenshot of the specific search result page.
Preferably, the checking consistency of the search result based on the screenshot of the specific search result page includes:
obtaining the specific search result page screenshots corresponding to the servers respectively;
and comparing the specific search result page screenshots corresponding to the servers respectively.
In a second aspect, based on the same inventive concept, the invention provides the following technical solutions through an embodiment of the invention:
a device for checking search result consistency, comprising:
the device comprises an obtaining unit, a searching unit and a searching unit, wherein the obtaining unit is used for obtaining a searching result page corresponding to a query word, and the searching result page is from a server to search the query word;
the screening unit is used for screening the search result items in the search result page and obtaining a specific search result page screenshot only containing the target search result item based on the screened search result items; the target search result item is a search result item which is specified to be checked when consistency check is carried out;
and the checking unit is used for checking the consistency of the search results based on the screenshot of the specific search result page.
Preferably, the obtaining unit is specifically configured to:
acquiring a Uniform Resource Locator (URL) of a query request corresponding to the query word; and sending the query request URL to the server, and receiving the search result page fed back by the server.
Preferably, the screening unit is specifically configured to:
acquiring feature information of the target search result item; finding an interfering search result item that does not belong to the target search result item in the search result page based on the feature information; hiding the interfering search result items in the search result page; and screenshot is carried out on the search result page after the interference search result item is hidden, and the screenshot of the specific search result page is obtained.
Preferably, the screening unit is specifically configured to:
and deleting html codes corresponding to the interference search result items from the search result page.
Preferably, the screening unit is specifically configured to:
screenshot is carried out on the search result page, and a screenshot of the search result page is obtained; acquiring feature information of the target search result item; finding the target search result item in the search result page based on the characteristic information; acquiring the position coordinates of the target search result item in the search result page; based on the position coordinates, intercepting a part only containing the target search result item from the search result screenshot to obtain the specific search result screenshot.
Preferably, the screening unit is specifically configured to:
acquiring feature information of the target search result item; finding the target search result item in the search result page based on the characteristic information; and generating a specific search result page based on the target search result item, and performing screenshot on the specific search result page to obtain the screenshot of the specific search result page.
Preferably, the inspection unit is specifically configured to:
obtaining the specific search result page screenshots corresponding to the servers respectively; and comparing the specific search result page screenshots corresponding to the servers respectively.
In a third aspect, based on the same inventive concept, the invention provides the following technical solutions through an embodiment of the invention:
a device for checking consistency of search results, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the method steps of any of the above-mentioned first aspect.
In a fourth aspect, based on the same inventive concept, the present invention provides the following technical solutions through an embodiment of the present invention:
a computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method steps of any of the embodiments of the first aspect.
One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
in the embodiment of the invention, a method for checking consistency of search results is disclosed, which comprises the following steps: obtaining a search result page corresponding to a query word, wherein the search result page is from a server to search the query word; screening the search result items in the search result page, and obtaining a specific search result page screenshot only containing a target search result item based on the screened search result item, wherein the target search result item is a search result item appointed to be checked when consistency check is performed; and checking the consistency of the search results based on the screenshot of the specific search result page.
In the embodiment of the application, the search result items in the search result page are screened, and the screenshot is performed on the search result page of the specific search result item which only comprises the target search result item after screening, so that the interference information in the screenshot is reduced, the consistency check of the search result can be performed on the basis of the screenshot of the specific search result page which eliminates the interference search result item, and a more accurate check result is obtained. Therefore, the technical problem that in the prior art, when the consistency of the search results is checked, the accuracy is not high is solved, and the technical effect of effectively improving the accuracy of the check results is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a flowchart of a method for checking consistency of search results according to an embodiment of the present invention;
FIG. 2 is a block diagram of an apparatus for checking search result consistency according to an embodiment of the present invention;
FIG. 3 is a block diagram of an apparatus for checking search result consistency according to an embodiment of the present invention;
fig. 4 is a structural diagram of a checking apparatus for checking consistency of search results as a server according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method and a device for checking consistency of search results, which can improve the accuracy of checking the consistency of the search results.
In order to solve the technical problems, the embodiment of the invention has the following general idea:
obtaining a search result page corresponding to a query word, wherein the search result page is from a server to search the query word; screening the search result items in the search result page, and obtaining a specific search result page screenshot only containing a target search result item based on the screened search result item, wherein the target search result item is a search result item appointed to be checked when consistency check is performed; and checking the consistency of the search results based on the screenshot of the specific search result page.
In the prior art, the screen capture is usually directly carried out on a search result page, but the screen capture has more interference information, and when the consistency check of the search result is carried out based on the screen capture, the check result is not accurate enough.
In the embodiment of the invention, the search result items in the search result page are firstly screened, and then the screenshot of the specific search result page only containing the target search result item is obtained based on the screened search result items, so that the interference information in the screenshot is reduced, and more accurate inspection results can be obtained when the consistency inspection of the search results is carried out.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
First, it is stated that the term "and/or" appearing herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In the following description, the term "plurality" as used herein refers to "two or more", including "two".
To explain again, for convenience of explanation, the "check of search result consistency" is simply referred to as "consistency check" herein.
Example one
The embodiment provides a method for checking consistency of search results, which may be applied to an electronic device, where the electronic device may be a server (e.g., a specific search server, or a dedicated server for performing consistency check, etc.), or may also be a user device (e.g., a desktop computer, a laptop computer, a tablet computer, a palmtop computer, a smart phone, etc.), and the specific type of the electronic device is not specifically limited in this embodiment.
As shown in fig. 1, the method for checking consistency of search results includes:
step S101: and obtaining a search result page corresponding to the query word, wherein the search result page is from the server to search the query word.
As an alternative embodiment, step S101 includes:
acquiring a query request URL (Uniform Resource Locator) corresponding to a query word; the query request URL is sent to the server (participating in the consistency check) and the search result page fed back by the server is received.
In a specific implementation process, for the same query term, the query request URL corresponding to the query term may be sent to multiple servers (participating in consistency check), so that the servers search for the query term at the same time, and feed back search result pages obtained by the servers to the electronic device. Wherein, the server participating in consistency check refers to: all or part of the search servers under the same search engine are used for providing search services for users, and the search servers are usually distributed in different regions and used for providing the search services for the users in different regions. For example, search server a is used to provide search services to users in the beijing area, search server B is used to provide search services to users in the shanghai area, and search server C is used to provide search services to users in the Chengdu area.
However, since these search servers operate in different environments for a long time (for example, users in different regions have different search habits, or advertisers in different regions have different promoted services, etc.), the software environments of these search servers are different, so that different search servers may provide inconsistent search results for the same query term. Some cases of search result inconsistency are based on personalization considerations, which are intended by the search engine service provider, and some cases of search result inconsistency are unexpected, which may be the occurrence of a procedure error in the relevant search server. Therefore, it is necessary to periodically check the consistency of each search server so as to know the operation condition of each server in time.
Step S102: and screening the search result items in the search result page, and obtaining a specific search result page screenshot only containing a target search result item based on the screened search result item, wherein the target search result item is the search result item appointed to be checked when consistency check is carried out.
In a specific implementation process, step S102 may be performed on the search result page fed back by each server to obtain a specific search result page screenshot corresponding to each server.
In a specific implementation process, the query term may correspond to one or more target search result items, and the target search result item may be a search result item designated for checking during consistency checking, and may be designated by a technician according to a requirement. Wherein the target search Result item is also called VR (English full: Vertical Result; Chinese translation: Vertical Result, or special Result).
In particular implementations, there are typically multiple search result items in a search result page, some of which are search result items that need attention (i.e., target search result items) when consistency checks are performed, and some of which are search result items that do not need attention (i.e., distracting search result items). In this embodiment, the search result items in the search result page are screened to screen out the target search result item that needs to be focused on, and then the screened search result page is subjected to screenshot to obtain the screenshot of the specific search result page, so that the information in the screenshot (i.e., the screenshot of the specific search result page) is more simplified, unnecessary interference is eliminated, consistency check is performed based on the screenshot, and the accuracy of the check result can be improved.
In more detail, in executing step S102, there are the following three embodiments:
[ means one ]: acquiring feature information of a target search result item; finding an interfering search result item that does not belong to the target search result item in the search result page based on the feature information; hiding the interference search result items in the search result page; and screenshot is carried out on the search result page after the interference search result item is hidden, and a screenshot of the specific search result page is obtained.
In a specific implementation process, the feature information of the target search result item may be: the ID number of the target search result item, and the html (Hypertext Markup Language) structure attribute (e.g., the ID number of dom, the class name of dom, the element selector of dom, etc.) corresponding to the target search result item. These characteristic information may be used to uniquely identify each search result item, and thus the target search result item.
For example, when the search result items in the search result page are filtered, the interfering search result items that do not belong to the target search result item may be found in the search result page based on the feature information of the target search result, and the interfering search result items may be hidden (for example, html codes corresponding to the interfering search result items are deleted from the search result page). Therefore, a specific search result page only retaining the target search result item is obtained, and then screenshot is performed on the specific search result page, namely the screenshot only retaining the target search result item is obtained, namely the screenshot of the specific search result page.
[ means two ]: screenshot is carried out on the search result page, and a screenshot of the search result page is obtained; acquiring feature information of a target search result item; based on the characteristic information, finding a target search result item in a search result page; acquiring the position coordinates of a target search result item in a search result page; based on the location coordinates, a portion containing only the target search result item is intercepted from the search result screenshot, obtaining a particular search result screenshot.
For example, a complete search result page may be captured, and the captured screenshot (i.e., the screenshot of the search result page) includes a target search result item and an interference search result item, where the target search result item is required for consistency check and the interference search result item is required to be removed. Then, based on the characteristic information of the target search result, the target search result item is found in the search result page. Then, a screenshot containing only the target search result item (i.e., a specific search result page screenshot) is obtained by cutting out a portion of the screenshot containing only the target search result item from the search result page screenshot based on the position coordinates of the target search result item in the search result page.
[ means III ]: acquiring feature information of a target search result item; based on the characteristic information, finding a target search result item in a search result page; and generating a new specific search result page based on the target search result item, and carrying out screenshot on the specific search result page to obtain a screenshot of the specific search result page.
For example, the target search result item may be found from the search result page based on the ID number or html structure attribute of the target search result item; constructing a new specific search result page according to the specific search result page, wherein only the target search result item is contained; and then, screenshot is carried out on the new search result page, so that the screenshot of the specific search result page only containing the target search result item can be obtained.
In the specific implementation process, one or more of the three modes can be adopted at the same time, so that the screening accuracy is improved.
In a specific implementation process, step S102 is performed on the search result page fed back by each server, so that a specific search result page screenshot corresponding to each server can be obtained.
Step S103: based on the particular search result page screen shot, a consistency check of the search results is performed.
As an alternative embodiment, step S103 includes:
obtaining specific search result page screenshots corresponding to a plurality of servers respectively; and comparing the specific search result page screenshots corresponding to the servers.
In the specific implementation process, after specific search result page screenshots corresponding to a plurality of servers are obtained, the screenshots can be compared; if the screenshots are consistent (for example, the number of target search result items is consistent, the specific contents are consistent, the arrangement mode is consistent, and the like), determining that a plurality of servers participating in the examination can provide consistent search results; otherwise, determining that the plurality of servers participating in the inspection cannot provide consistent search results, and further finding out the servers which cannot provide consistent search results with other servers; thereby realizing the consistency check of the search results of the multiple servers. For a specific comparison method, reference may be made to the prior art, which is not described in detail in this embodiment.
The technical scheme in the embodiment of the invention at least has the following technical effects or advantages:
in the embodiment of the invention, a method for checking consistency of search results is disclosed, which comprises the following steps: obtaining a search result page corresponding to a query word, wherein the search result page is from a server to search the query word; screening the search result items in the search result page, and obtaining a specific search result page screenshot only containing a target search result item based on the screened search result item, wherein the target search result item is a search result item appointed to be checked when consistency check is performed; and performing consistency check on the search result based on the specific search result page screenshot.
In the embodiment of the application, the search result items in the search result page are screened, and the screenshot of the search result page which only comprises the specific search result item after screening is carried out, so that the interference information in the screenshot is reduced, the consistency check of the search result can be carried out based on the screenshot of the specific search result page which eliminates the interference search result item, and the more accurate check result is obtained. Therefore, the technical problem that in the prior art, when the consistency of the search results is checked, the accuracy is not high is solved, and the technical effect of effectively improving the accuracy of the check results is achieved.
Example two
Based on the same inventive concept, as shown in fig. 2, the present embodiment provides a device 200 for checking consistency of search results, comprising:
an obtaining unit 201, configured to obtain a search result page corresponding to a query term, where the search result page is from a server searching for the query term;
a screening unit 202, configured to screen search result items in the search result page, and obtain a screenshot of a specific search result page that only includes a target search result item based on the screened search result items; the target search result item is a search result item which is specified to be checked when consistency check is carried out;
and the checking unit 203 is used for checking the consistency of the search results based on the screenshot of the specific search result page.
As an alternative embodiment, the obtaining unit 201 is specifically configured to:
acquiring a Uniform Resource Locator (URL) of a query request corresponding to the query word; and sending the query request URL to the server, and receiving the search result page fed back by the server.
As an alternative embodiment, the screening unit 202 is specifically configured to:
acquiring feature information of the target search result item; finding an interfering search result item that does not belong to the target search result item in the search result page based on the feature information; hiding the interfering search result items in the search result page; and screenshot is carried out on the search result page after the interference search result item is hidden, and the screenshot of the specific search result page is obtained.
As an alternative embodiment, the screening unit 202 is specifically configured to:
and deleting html codes corresponding to the interference search result items from the search result page.
As an alternative embodiment, the screening unit 202 is specifically configured to:
screenshot is carried out on the search result page, and a screenshot of the search result page is obtained; acquiring feature information of the target search result item; finding the target search result item in the search result page based on the characteristic information; acquiring the position coordinates of the target search result item in the search result page; based on the position coordinates, intercepting a part only containing the target search result item from the search result screenshot to obtain the specific search result screenshot.
As an alternative embodiment, the screening unit 202 is specifically configured to:
acquiring feature information of the target search result item; finding the target search result item in the search result page based on the characteristic information; and generating a specific search result page based on the target search result item, and performing screenshot on the specific search result page to obtain the screenshot of the specific search result page.
As an alternative embodiment, the checking unit 203 is specifically configured to:
obtaining the specific search result page screenshots corresponding to the servers respectively; and comparing the specific search result page screenshots corresponding to the servers respectively.
The technical scheme in the embodiment of the invention at least has the following technical effects or advantages:
in the embodiment of the invention, a device for checking consistency of search results is disclosed, which comprises: the device comprises an obtaining unit, a searching unit and a searching unit, wherein the obtaining unit is used for obtaining a searching result page corresponding to a query word, and the searching result page is from a server to search the query word; the screening unit is used for screening the search result items in the search result page and obtaining a specific search result page screenshot only containing the target search result item based on the screened search result items; the target search result item is a search result item which is specified to be checked when consistency check is carried out; and the checking unit is used for checking the consistency of the search results based on the screenshot of the specific search result page.
In the embodiment of the application, the search result items in the search result page are screened, and the screenshot of the search result page which only comprises the specific search result item after screening is carried out, so that the interference information in the screenshot is reduced, the consistency check of the search result can be carried out based on the screenshot of the specific search result page which eliminates the interference search result item, and the more accurate check result is obtained. Therefore, the technical problem that in the prior art, when the consistency of the search results is checked, the accuracy is not high is solved, and the technical effect of effectively improving the accuracy of the check results is achieved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 3 is a block diagram illustrating a search result consistency checking apparatus according to an exemplary 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. 3, 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 components 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 types of data to support operation 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 components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 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 related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication 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 above-described method 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.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of an apparatus 800, enable the apparatus 800 to perform a method of checking search result consistency, comprising: obtaining a search result page corresponding to a query word, wherein the search result page is from a server to search the query word; screening the search result items in the search result page, and acquiring a screenshot of a specific search result page only containing a target search result item based on the screened search result items; the target search result item is a search result item which is specified to be checked when consistency check is carried out; and checking the consistency of the search results based on the screenshot of the specific search result page.
Fig. 4 is a block diagram of a device for checking consistency of search results as a server according to an embodiment of the present invention. The server 1900 may vary widely by configuration or performance and 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) storing 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 present invention is defined only by the appended claims, which are not intended to limit the present invention, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (14)

1. A method for checking search result consistency is characterized by comprising the following steps:
obtaining a search result page corresponding to a query word, wherein the search result page is from a server to search the query word;
screening the search result items in the search result page, and acquiring a screenshot of a specific search result page only containing a target search result item based on the screened search result items; the target search result item is a search result item which is specified to be checked when consistency check is carried out;
based on the specific search result screenshot, checking the consistency of the search result, including: obtaining the specific search result page screenshots corresponding to the servers respectively; and comparing the specific search result page screenshots corresponding to the servers respectively.
2. The method for checking search result consistency according to claim 1, wherein the obtaining of the search result page corresponding to the query term comprises:
acquiring a Uniform Resource Locator (URL) of a query request corresponding to the query word;
and sending the query request Uniform Resource Locator (URL) to the server, and receiving the search result page fed back by the server.
3. The method for checking search result consistency according to claim 1, wherein the screening of the search result items in the search result page, and obtaining a screenshot of a specific search result page containing only a target search result item based on the screened search result items, comprises:
acquiring feature information of the target search result item;
finding an interfering search result item that does not belong to the target search result item in the search result page based on the feature information;
hiding the interfering search result items in the search result page;
and screenshot is carried out on the search result page after the interference search result item is hidden, and the screenshot of the specific search result page is obtained.
4. The method for checking consistency of search results according to claim 3, wherein the hiding the interfering search result items in the search result page comprises:
and deleting html codes corresponding to the interference search result items from the search result page.
5. The method for checking search result consistency according to claim 1, wherein the screening of the search result items in the search result page, and obtaining a screenshot of a specific search result page containing only a target search result item based on the screened search result items, comprises:
screenshot is carried out on the search result page, and a screenshot of the search result page is obtained;
acquiring feature information of the target search result item;
finding the target search result item in the search result page based on the characteristic information;
acquiring the position coordinates of the target search result item in the search result page;
based on the position coordinates, intercepting a part only containing the target search result item from the search result screenshot to obtain the specific search result screenshot.
6. The method for checking search result consistency according to claim 1, wherein the screening of the search result items in the search result page, and obtaining a screenshot of a specific search result page containing only a target search result item based on the screened search result items, comprises:
acquiring feature information of the target search result item;
finding the target search result item in the search result page based on the characteristic information;
and generating a specific search result page based on the target search result item, and performing screenshot on the specific search result page to obtain the screenshot of the specific search result page.
7. A device for checking search result consistency, comprising:
the device comprises an obtaining unit, a searching unit and a searching unit, wherein the obtaining unit is used for obtaining a searching result page corresponding to a query word, and the searching result page is from a server to search the query word;
the screening unit is used for screening the search result items in the search result page and obtaining a specific search result page screenshot only containing the target search result item based on the screened search result items; the target search result item is a search result item which is specified to be checked when consistency check is carried out;
the checking unit is used for checking the consistency of the search results based on the screenshot of the specific search result page, and comprises the following steps: obtaining the specific search result page screenshots corresponding to the servers respectively; and comparing the specific search result page screenshots corresponding to the servers respectively.
8. The apparatus for checking consistency of search results according to claim 7, wherein the obtaining unit is specifically configured to:
acquiring a Uniform Resource Locator (URL) of a query request corresponding to the query word; and sending the query request Uniform Resource Locator (URL) to the server, and receiving the search result page fed back by the server.
9. The apparatus for checking consistency of search results according to claim 7, wherein the filtering unit is specifically configured to:
acquiring feature information of the target search result item; finding an interfering search result item that does not belong to the target search result item in the search result page based on the feature information; hiding the interfering search result items in the search result page; and screenshot is carried out on the search result page after the interference search result item is hidden, and the screenshot of the specific search result page is obtained.
10. The apparatus for checking consistency of search results according to claim 9, wherein the filtering unit is specifically configured to:
and deleting html codes corresponding to the interference search result items from the search result page.
11. The apparatus for checking consistency of search results according to claim 7, wherein the filtering unit is specifically configured to:
screenshot is carried out on the search result page, and a screenshot of the search result page is obtained; acquiring feature information of the target search result item; finding the target search result item in the search result page based on the characteristic information; acquiring the position coordinates of the target search result item in the search result page; based on the position coordinates, intercepting a part only containing the target search result item from the search result screenshot to obtain the specific search result screenshot.
12. The apparatus for checking consistency of search results according to claim 7, wherein the filtering unit is specifically configured to:
acquiring feature information of the target search result item; finding the target search result item in the search result page based on the characteristic information; and generating a specific search result page based on the target search result item, and performing screenshot on the specific search result page to obtain the screenshot of the specific search result page.
13. A device for checking consistency of search results, comprising a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the processor executes the program to implement the method steps of any one of claims 1 to 6.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, is adapted to carry out the method steps of any of claims 1 to 6.
CN201910278487.2A 2019-04-03 2019-04-03 Method and device for checking consistency of search results Active CN110119471B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910278487.2A CN110119471B (en) 2019-04-03 2019-04-03 Method and device for checking consistency of search results

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910278487.2A CN110119471B (en) 2019-04-03 2019-04-03 Method and device for checking consistency of search results

Publications (2)

Publication Number Publication Date
CN110119471A CN110119471A (en) 2019-08-13
CN110119471B true CN110119471B (en) 2021-07-27

Family

ID=67520771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910278487.2A Active CN110119471B (en) 2019-04-03 2019-04-03 Method and device for checking consistency of search results

Country Status (1)

Country Link
CN (1) CN110119471B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216833A (en) * 2007-12-28 2008-07-09 深圳市迅雷网络技术有限公司 Method, server and system for searching and providing vision frequency document
CN101334784A (en) * 2008-07-30 2008-12-31 施章祖 Computer auxiliary report and knowledge base generation method
US7639898B1 (en) * 2004-05-10 2009-12-29 Google Inc. Method and system for approving documents based on image similarity
CN101661487A (en) * 2008-08-27 2010-03-03 国际商业机器公司 Method and system for searching information items
US8577878B1 (en) * 2006-05-09 2013-11-05 Google Inc. Filtering search results using annotations
CN104050292A (en) * 2014-06-30 2014-09-17 北京奇虎科技有限公司 Traffic-saving mode search service method, server, client and system
CN104809207A (en) * 2015-04-28 2015-07-29 百度在线网络技术(北京)有限公司 Search method and device
CN104951468A (en) * 2014-03-28 2015-09-30 阿里巴巴集团控股有限公司 Data searching and processing method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050283464A1 (en) * 2004-06-10 2005-12-22 Allsup James F Method and apparatus for selective internet advertisement
US20070022111A1 (en) * 2005-07-20 2007-01-25 Salam Aly A Systems, methods, and computer program products for accumulating, storing, sharing, annotating, manipulating, and combining search results
US20070022125A1 (en) * 2005-07-20 2007-01-25 Salam Aly A Systems, methods, and computer program products for accumulating, strong, sharing, annotating, manipulating, and combining search results

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7639898B1 (en) * 2004-05-10 2009-12-29 Google Inc. Method and system for approving documents based on image similarity
US8577878B1 (en) * 2006-05-09 2013-11-05 Google Inc. Filtering search results using annotations
CN101216833A (en) * 2007-12-28 2008-07-09 深圳市迅雷网络技术有限公司 Method, server and system for searching and providing vision frequency document
CN101334784A (en) * 2008-07-30 2008-12-31 施章祖 Computer auxiliary report and knowledge base generation method
CN101661487A (en) * 2008-08-27 2010-03-03 国际商业机器公司 Method and system for searching information items
CN104951468A (en) * 2014-03-28 2015-09-30 阿里巴巴集团控股有限公司 Data searching and processing method and system
CN104050292A (en) * 2014-06-30 2014-09-17 北京奇虎科技有限公司 Traffic-saving mode search service method, server, client and system
CN104809207A (en) * 2015-04-28 2015-07-29 百度在线网络技术(北京)有限公司 Search method and device

Also Published As

Publication number Publication date
CN110119471A (en) 2019-08-13

Similar Documents

Publication Publication Date Title
CN108932253B (en) Multimedia search result display method and device
CN109359056B (en) Application program testing method and device
CN106547547B (en) data acquisition method and device
US11836342B2 (en) Method for acquiring historical information, storage medium, and system
CN104951522B (en) Method and device for searching
CN111079040B (en) Resource sniffing method, device, terminal, server and storage medium
CN110213062B (en) Method and device for processing message
CN112035691A (en) Method, device, equipment and medium for displaying cell labeling data of slice image
CN110020082B (en) Searching method and device
CN110119471B (en) Method and device for checking consistency of search results
CN112667852B (en) Video-based searching method and device, electronic equipment and storage medium
CN111061633B (en) Webpage first screen time detection method, device, terminal and medium
CN110502484B (en) Method, device and medium for displaying file information on mobile terminal
CN110989987B (en) Portal webpage generation method and device, client, server and storage medium
CN107257384B (en) Service state monitoring method and device
CN110008135B (en) Information processing method and device and electronic equipment
CN112102009A (en) Advertisement display method, device, equipment and storage medium
CN111724398A (en) Image display method and device
CN113378022A (en) In-station search platform, search method and related device
CN111880696B (en) Encyclopedic-based data processing method and device
CN110020244B (en) Method and device for correcting website information
CN113946346B (en) Data processing method and device, electronic equipment and storage medium
CN113778385B (en) Component registration method, device, terminal and storage medium
CN114531493B (en) Request processing method and device, electronic equipment and storage medium
CN112003788B (en) Data request sending method, device, 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
GR01 Patent grant
GR01 Patent grant