CN106886540B - Data searching method and device for data searching - Google Patents

Data searching method and device for data searching Download PDF

Info

Publication number
CN106886540B
CN106886540B CN201510945677.7A CN201510945677A CN106886540B CN 106886540 B CN106886540 B CN 106886540B CN 201510945677 A CN201510945677 A CN 201510945677A CN 106886540 B CN106886540 B CN 106886540B
Authority
CN
China
Prior art keywords
page
creating
plug
display area
search
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
CN201510945677.7A
Other languages
Chinese (zh)
Other versions
CN106886540A (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 CN201510945677.7A priority Critical patent/CN106886540B/en
Publication of CN106886540A publication Critical patent/CN106886540A/en
Application granted granted Critical
Publication of CN106886540B publication Critical patent/CN106886540B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/951Indexing; Web crawling techniques

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a data searching method, a data searching device and a data searching device, wherein the method comprises the following steps: creating a search box on a current page by using a plug-in of a browser; receiving a keyword input by a user in the search box; creating a display area on the current page by using the plug-in; and displaying the search results corresponding to the keywords in the display area. It can be seen that: the invention provides a convenient channel for searching and checking the search result for the user on the current page, and the user experience can be improved without switching the label in the process of searching and displaying the search result.

Description

Data searching method and device for data searching
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data search method and apparatus, and an apparatus for data search.
Background
With the popularization of networks, more and more users search for interesting things through the networks; the general search method is to search for the keywords on a search engine, and the search experience is good. However, when a user is performing a certain web page operation, such as when the user is watching a video, playing a game, or viewing a web page, the user may be interested in a certain thing, and at this time, the user usually stops the current web page operation first and then performs a keyword search using a search engine. And the search result page corresponding to the keyword can be opened in a new tab page, and the user experience is seriously influenced by the search mode of switching the tab page.
For example: the user selects a film to watch in a certain video website, the user is particularly interested in the episode of the film in the watching process, the user wants to inquire the name of the episode, at the moment, the user needs to pause the playing of the film and transfer to a search engine, the name of the episode is searched by using the search engine, and the episode is checked in a newly opened search result page. After the user finishes viewing the related information, the user also needs to jump to the movie playing page and continue to watch the movie. If the user needs to search for the related information frequently while watching the movie, the watching will be interrupted frequently. This search pattern obviously affects the movie viewing experience of the user.
Disclosure of Invention
In order to solve the technical problems, the invention provides a data searching method, a data searching device and a data searching device, which provide a convenient channel for a user to directly search on the current page and check the search result, and do not need to switch tags in the whole searching and displaying process of the search result, thereby improving the user experience.
The embodiment of the invention discloses the following technical scheme:
in a first aspect of the present invention, there is provided a data search method, the method comprising:
creating a search box on a current page by using a plug-in of a browser;
receiving a keyword input by a user in the search box;
creating a display area on the current page by using the plug-in;
and displaying the search results corresponding to the keywords in the display area.
Optionally, before the step of creating a search box on the current page by using a plug-in of a browser, the method further includes:
creating a control on the current page by using a plug-in of a browser, wherein the control is used for controlling the display or closing of a search box;
receiving a display request triggered by a user on the current page aiming at the control, and triggering the step of creating the search box according to the display request.
Optionally, the step of creating a control on the current page by using a plug-in of a browser includes:
creating a control on the current page by using a plug-in of a browser, wherein the control is used for controlling the display or closing of search boxes related to all page elements on the same page; or the like, or, alternatively,
creating at least one control on a current page by using a plug-in of a browser, wherein each control is used for controlling the display or closing of a search box related to one type of page elements on the same page; or the like, or, alternatively,
and creating a plurality of controls on the current page by utilizing the plug-in of the browser, wherein different controls are used for controlling the display or closing of search boxes related to different page elements on the same page.
Optionally, the step of creating a search box on the current page by using a plug-in of a browser includes:
identifying a page element of a current page;
creating a search box within or around the identified page element using the plug-in.
Optionally, the step of creating a display area on the current page by using the plug-in includes:
identifying page elements contained in a current page, and creating a display area in or around the page elements; or the like, or, alternatively,
and creating a display area on one side of the current page by using the plug-in.
Optionally, the display area is a movable window.
Optionally, after the step of displaying the search result corresponding to the keyword in the display area, the method further includes:
and receiving a viewing request triggered by a user aiming at a certain search result, and displaying the specific content of the search result in the display area.
Optionally, the content displayed in the display area is filtered and displayed in a form suitable for the size of the display area.
In a second aspect the present invention provides a data search apparatus, said apparatus comprising:
a search box creating unit for creating a search box on the current page using a plug-in of a browser;
the receiving unit is used for receiving keywords input by a user in the search box;
the display area creating unit is used for creating a display area on the current page by using the plug-in;
and the search result display unit is used for displaying the search results corresponding to the keywords in the display area.
In a third aspect of the invention, there is provided a device for data searching, the device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by one or more processors to include instructions for:
creating a search box on a current page by using a plug-in of a browser;
receiving a keyword input by a user in the search box;
creating a display area on the current page by using the plug-in;
and displaying the search results corresponding to the keywords in the display area.
Optionally, the one or more processors are further configured to execute the one or more programs including instructions for:
creating a control on the current page by using a plug-in of a browser, wherein the control is used for controlling the display or closing of a search box;
and receiving a display request triggered by a user on the current page aiming at the control, and triggering the instruction for creating the search box according to the display request.
Optionally, when the one or more processors execute the instruction for creating the display area on the current page by using the plug-in, the processors are specifically configured to execute the following instructions:
identifying page elements of a current page, and creating a display area in the identified page elements or around the page elements; or the like, or, alternatively,
and creating a display area on one side of the current page by using the plug-in.
Optionally, the display area is a movable window.
Optionally, the one or more processors are further configured to execute the one or more programs further comprising instructions for:
and receiving a viewing request triggered by a user aiming at a certain search result, and displaying the specific content of the search result in the display area.
Optionally, the content displayed in the display area is filtered and displayed in a form suitable for the size of the display area.
Compared with the prior art, the technical scheme provided by the invention has the following beneficial effects:
according to the technical scheme provided by the invention, a search box is created on the current page by using a plug-in of a browser; receiving a keyword input by a user in the search box; creating a display area on the current page by using the plug-in; and displaying the search results corresponding to the keywords in the display area. The invention utilizes the plug-in of the browser to create the search box and the display area on the current page, thus providing a convenient channel for the user, the user can immediately search the interest point in the search box of the current page and can check the corresponding search result on the current page, and the user can browse the search result without switching the page.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of an embodiment 1 of a data searching method provided by the present invention;
FIG. 2 is an exemplary diagram of a data search web page provided by the present invention;
FIG. 3 is an exemplary diagram of a data search web page provided by the present invention;
FIG. 4 is a flowchart of an embodiment 2 of a data searching method according to the present invention;
FIG. 5 is a block diagram of an embodiment 1 of a data search apparatus according to the present invention;
fig. 6 is a block diagram of an apparatus for data search according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a data searching method according to an embodiment 1 of the present invention, as shown in fig. 1, the method includes:
s101: creating a search box on a current page by using a plug-in of a browser;
in this embodiment of the present invention, the current page refers to a page that a user is browsing, and the type of the page is not limited, and the current page may be a page provided by any website, for example: a game page of a game website, a video page of a video website, a text page of a thesis website, etc.
In the embodiment of the invention, the plug-in of the browser can be an extension plug-in or a built-in plug-in, wherein the built-in plug-in refers to a plug-in which is built in the browser in advance and is uncontrollable by a user.
When browsing a page, a user can see an object of interest, and at this time, the user needs to search for information related to the object to further understand the object. For example, when a user browses a paper, the user is interested in new technical terms described in the paper, and needs to search to further understand the technology. For another example, when a user watches a movie, the user is interested in an episode in the movie, and needs to know the related information of the episode through searching. At present, when a user is interested in a certain object in a current page, the user jumps to a search result page to check corresponding content when searching. This causes page switching and the user experience is very poor. Based on the application scene, the invention provides a method for creating a search box on the current page by using a plug-in of a browser and displaying the search result on the current page.
The following explains a specific implementation of step S101.
Specifically, the browser may first identify a page element included in the current page; and creating a search box in or around the identified page element by using the plug-in of the browser.
Page elements, also referred to herein as web page elements, include various types of elements such as text, pictures, audio, animation, video, and so forth. In implementation, after the page element is identified, a search box may be set at a preset, fixed location of the page element. For example, the search box may be set at a preset fixed position such as an upper right corner, an upper left corner, a lower right corner, and a lower left corner in the web page element, or may be set at a peripheral position such as a right side, a left side, an upper side, and a lower side of the web page element.
In implementation, the type of page element may be preset, so that a relevant search box is created for a specific type of page element on the current page. Based on this, the step S101 is specifically implemented by creating a search box in or around a preset type of page element on the current page by using a plug-in of the browser. When the method is implemented, one type or multiple types can be preset; thus, in implementation, one or more search boxes may be created for one type of page element, or one or more search boxes may be created for multiple different types of page elements, respectively. However, only one relevant search box is created for one page element.
The following description will be given taking the preset type as "video" as an example. Specifically, a video playing window of a current page is identified, and then a search box is created in or around the playing window. If only one video playing window on the current page is identified, a search box is created in or around the video playing window. If a plurality of video playing windows are identified on the current page, a search box is respectively created in or around each video playing window.
This mode is exemplified by a video play window on a Web PC end page.
(1) Positioning the position of the video player (play window): video tags used by the Web PC side include video, object, embed and the like. And injecting the current video page through the Content Script of the plug-in, wherein the Content Script is the Content Script of the plug-in and refers to the javascript Script which can run inside the page loaded by the browser. After the current video page is injected, traversing a DOM (document object model) tree to detect video tags, and calculating the absolute coordinates (relative coordinates and page rolling distance) of the hit tags in the page and the width and height of the hit tags; if more than one tag is hit, the absolute coordinates of the tags are compared, and the node closest to the top of the page and with a reasonable width and height value is selected as the video player node.
(2) Creating a search box: after the position and width and height of the video player are obtained, a search box can be dynamically created at a preset fixed position (such as the upper right corner) of the video player.
Therefore, when a user watches the video on the page, the user can search for the interested things at any time only by inputting the key words in the search box on the playing window.
S102: receiving a keyword input by a user in the search box;
when the method is realized, a plug-in of a browser is used for coding the key words, a preset search engine URL is modified by using the coded key words to obtain a URL request, the URL request is triggered, and a search result returned by the URL request is received. Specifically, firstly, a plug-in of a browser is used for coding the keyword, and then a query in a search engine URL is assigned by using a coded character string to obtain a URL request, wherein the URL request is the URL request related to the keyword; and finally triggering the URL request and receiving a search result returned by the URL request.
The URL (Uniform Resource Locator) is an address of a standard Resource on the internet, and is also a compact representation of a location and an access method of a Resource obtained from the internet. Each file on the internet has a unique URL that contains information indicating the location of the file and how the browser should handle it. Therefore, by encoding the keyword, the query in the search engine URL is assigned with the encoded character string, and thus a URL request related to the keyword is formed. With the URL request, information related to the keyword can be searched.
The processing of the keywords is described in an exemplary manner with reference to fig. 2.
For example, the following steps are carried out: referring to fig. 2, if the user watches tv drama "huaqian gu" and is interested in "ten-square god" mentioned in the tv drama, the keyword "ten-square god" is entered in the search box of the play window; after receiving a keyword input by a user, transmitting the keyword 'ten-square organ' input by the user to a plug-in background page of a browser, coding the keyword 'ten-square organ' on the background page to obtain a character string, assigning a query in a preset search engine URL by using the character string to obtain a URL request corresponding to the keyword, triggering the URL request and receiving a search result corresponding to the keyword returned by the URL request.
Specifically, a function of 'encoderURIComponent' is called to encode a keyword 'decadic character device' to obtain a character string '% E5%, 8D%, 81%, E6%, 96%, B9%, E7%, A5%, 9E%, E5%, 99% A8';
suppose the predetermined search engine is a dog search engine whose URL is https:// www.sogou.com/web? query & _ asf & _ www.sogou.com & _ ast ═ w ═ 01015002& p ═ 40040108& ie ═ utf8& oq ═ 0& sourceid ═ sugg & sut ═ 0& ss t0 ═ 1442374325573& lkt ═ 0% 2C 0% 2C0 ".
Then, the query in the search engine URL is assigned by using the character string coded by the keyword ' decadic character generator '% E5% 8D% 81% E6% 96% B9% E7% A5% 9E% E5% 99% A8 ', so that the URL request corresponding to the keyword is obtained.
After triggering the URL request, the search engine starts the search and then returns the search results corresponding to the keywords. After the step 102 is completed, the embodiment executes the step 103.
S103: creating a display area on the current page by using the plug-in;
s104: and displaying the search results corresponding to the keywords in the display area.
In implementation, step S103 may first identify a page element included in the current page, and then create a display area in or around the identified page element by using the plug-in; alternatively, the plug-in may be utilized to create a presentation area on one side of the current page.
For example, still taking the scenario of fig. 2 as an example, a playing window of a current page is first identified, and then a presentation area is created around (to the right of) the playing window. The display area is shown as the right area of the playing window in fig. 3, and the search results corresponding to the keywords are displayed in the display area. Therefore, when the user watches the video, the user can simultaneously check the search result, and the user experience is better.
Of course, the display area may also be created at a preset fixed position in the playing window, where the preset fixed position may be any position on one side in the playing window, such as the right side, the left side, the lower side, the upper side, and the like in the playing window. Of course, it is also possible to create the presentation area directly on one side of the page without focusing on the page elements.
In addition, to improve the user viewing experience, the presentation area may be set as a movable window. Therefore, the user can drag the display area to a proper position according to the requirement, so that the user can conveniently check the original content of the current webpage and check the search result.
In addition, in order to facilitate the user to quickly locate effective information, before the search results corresponding to the keywords are displayed in the display area, filtering processing is performed on the search results, useless information (such as advertisements, external links and other information) is filtered, and the filtered content is displayed according to a form suitable for the size of the display area. The content displayed in the display area is filtered and displayed in a form suitable for the size of the display area. For example, a mobile browser is used to display a web page, and a search result is displayed in a display area of a current page, as shown in fig. 3.
By adopting any one of the above modes, a display area is created on the current webpage by using a plug-in of the browser, and then the search results corresponding to the keywords are displayed for the user in the display area. Therefore, the user can check the search result corresponding to the keyword on the current webpage without page switching.
Since multiple search results may be presented in the presentation area, the user may be interested in one of the multiple search results and want to learn further. At this time, the user may directly click and view the search result, and in order to provide a better search experience for the user, the method may further include the following steps based on the foregoing method:
and receiving a viewing request triggered by a user aiming at a certain search result, and displaying the specific content of the search result in the display area.
When the specific content of the search result is displayed, the specific content of the search result may be filtered, useless information (such as advertisements, external links, and the like) is filtered, and the filtered text content is displayed in a form suitable for the size of the display area.
When the method is realized, a viewing request triggered by a user for a certain search result is received, an Asynchronous processing request (ajax, Asynchronous JavaScript and XML) is generated by using a plug-in of a browser according to the viewing request triggered by the user, and a response text (response text) is received; and filtering the internal and external chains and the useless labels of the response text (response text) according to a preset rule, and rendering the filtered text content into a display area. Therefore, the filtered clean text content is displayed for the user in the display area, and the user can conveniently and quickly browse the content which is interested by the user. It can be seen that: the invention processes the viewing request triggered by the user by using the asynchronous processing request, and the asynchronous processing request does not need to refresh the page, thereby providing better search experience for the user. In addition, a user browses the text content of a certain search result in the display area, and after browsing is finished, the content of the display area can be continuously reserved according to the requirement, or a return request can be initiated by triggering a return control to return to the initial search result list page (the search result page corresponding to the keyword and displayed in the display area is called a search result list page).
For example, a return control may be provided on the presentation area to facilitate the user returning to the search result list page by triggering the return control. The return control of the display area may be set as a return button, and is set at the upper left corner of the display area, and of course, the specific form and position of the return control of the display area may be set according to actual requirements, as long as the user can trigger the return operation conveniently, which is not limited to this example.
In addition, considering that the requirement of the user for the information related to the keyword may be temporary, when browsing is finished, the user may no longer need to display the information in the area, and in order to provide a good webpage browsing experience for the user at this time, on the basis of the above method, the following steps may be added:
and receiving a closing operation triggered by a user aiming at the display area, and closing the display area. That is, after the user finishes browsing the search result, the search result display area can be continuously reserved or closed according to the requirement.
For example, a closing control may be provided in the upper right corner of the presentation area, and the user may click on the closing control to close the presentation area. The specific form and the setting position of the closing control are not limited in the invention as long as the user can trigger the closing operation conveniently.
According to the technical scheme, the data searching method provided by the invention has the advantages that the plug-in of the browser is utilized to create the search box and the display area on the current page, so that a convenient search channel is provided for a user, the user can immediately search the interest point in the search box of the current page, and the corresponding search result can be checked in the display area, so that the user can browse the search result without switching the page, and the user experience is better.
In order to further improve the user experience, on the basis of the above embodiment 1, the present invention further provides an optional technical solution, specifically referring to fig. 4. Fig. 4 is a flowchart of embodiment 2 of a data searching method provided by the present invention, and as shown in fig. 4, the method includes:
s201: creating a control on the current page by using a plug-in of a browser, wherein the control is used for controlling the display or closing of a search box;
s202: receiving a display request triggered by a user on a current page aiming at the control, and triggering step 203 according to the display request;
during implementation, a control can be created, and the control is used for controlling the display or closing of all the search boxes on the same page; multiple controls can also be created, and the multiple controls are used for respectively controlling the display or closing of different search boxes on the same page.
The control can be set at a preset fixed position of the current page or can be set as a movable control, so that a user can drag the control at will according to requirements; the specific form of the control is not limited, and the control can be a button, a slider and the like. The triggering mode of the control is not limited, and the triggering mode can be other triggering modes such as clicking, double clicking, sliding and the like.
S203: creating a search box on a current page by using a plug-in of a browser;
in implementation, if there are several different implementations of step S201, there are several different implementations of step S203, which will be described below.
In one implementation manner of step S201, a control is created on the current page by using a plug-in of the browser, where the control is used to control display or closing of a search box related to all page elements on the same page. Namely, a control is created on the current page, and a user can uniformly control the display or closing of the search boxes of all page elements on the current page by using the control.
When the user triggers the control, a corresponding search box is created for each page element on the current page by using a plug-in of the browser, so that all the page elements on the current page display their respective search boxes simultaneously, which is convenient for the user to operate.
Another implementation manner of the step S201 is to create at least one control on the current page by using a plug-in of the browser, where each control is used to control display or closing of a search box related to one type of page element on the same page; that is, one or more controls are created on the current page, and a user can use one control to uniformly control the display or closing of a search box for a certain type of page element on the current page.
When the user triggers a certain control, a corresponding implementation manner of step S203 is to create a search box on the current page for the page elements of the preset type by using a plug-in of the browser, so that the page elements of the preset type on the current page all display their respective search boxes at the same time.
For example, if a control is created in step S201, and the control is used to control the display or closing of a search box related to a page element of a video playing window type on the same page, when the user triggers the control to initiate a display request, step S203 specifically identifies a video playing window included in the current page, and creates a search box in or around the identified video playing window by using a plug-in of a browser.
Step S201 is also implemented in a manner that a plurality of controls are created on the current page by using a plug-in of the browser, and different controls are used for controlling display or closing of search boxes related to different page elements on the same page. That is, a control is created for each page element on the current page, and the user can independently control the display or closing of the search box of each page element.
When the user triggers a control, a corresponding one of the implementation manners of step 203 is to create a search box on the current page for the page element related to the control by using a plug-in of the browser.
Therefore, the user can input the interested keywords in the search box related to a certain page element according to actual requirements. Of course, in the case that the page already displays the search box, the user may close the corresponding search box by triggering the control.
S204: receiving a keyword input by a user in the search box;
s205: creating a display area on the current page by using the plug-in;
s206: and displaying the search results corresponding to the keywords in the display area.
Steps S203 to S206 are the same as steps S101 to S104 in embodiment 1, and the specific implementation process may refer to the above description, which is not described herein again.
According to the technical scheme, the data searching method provided by the invention has the advantages that the control is created on the current page by using the plug-in of the browser, and the user can control the display or closing of the search box by triggering the control according to the actual requirement, so that the search box is not directly displayed on the current page, and the search box is created on the current page for the user only after the user triggers the display request, so that the interactive experience of the user is improved. Then, a search box and a display area are created on the current page by using a plug-in of the browser, so that a convenient search channel is provided for a user, the user can immediately search the interest points in the search box of the current page, and the corresponding search results can be checked in the display area, so that the user can browse the search results without switching the page, and the user experience is better.
Corresponding to the method, the invention also provides a data searching device, which is explained below with reference to the embodiment.
Referring to fig. 5, fig. 5 is a block diagram of a data search apparatus according to the present invention, and as shown in fig. 5, the apparatus may include:
a search box creating unit 501, configured to create a search box on a current page by using a plug-in of a browser;
a receiving unit 502, configured to receive a keyword input by a user in the search box;
a display area creating unit 503, configured to create a display area on the current page by using the plug-in;
a result displaying unit 504, configured to display the search result corresponding to the keyword in the display area.
The apparatus may further include:
the control creating unit is used for creating a control on the current page by using a plug-in of the browser, and the control is used for controlling the display or closing of the search box;
and the request receiving unit is used for receiving a display request triggered by the user on the current page aiming at the control and triggering the search box creating unit according to the display request.
Optionally, the control creating unit may include:
the control creating subunit one is specifically used for creating a control on the current page by using a plug-in of a browser, and the control is used for controlling the display or closing of search boxes related to all page elements on the same page; or the like, or, alternatively,
a second control creating subunit, specifically configured to create at least one control on the current page by using a plug-in of the browser, where each control is used to control display or closing of a search box related to one type of page element on the same page; or the like, or, alternatively,
and a third control creating subunit, specifically configured to create a plurality of controls on the current page by using a plug-in of the browser, where different controls are used to control display or closing of search boxes related to different page elements on the same page.
The search box creating unit may include:
the page element identification subunit is used for identifying the page elements of the current page;
and the search box creating subunit is used for creating a search box in the identified page element or around the page element by utilizing the plug-in of the browser.
The display area creating unit is specifically used for identifying page elements of the current page and creating a display area in the page elements or around the page elements; or the like, or, alternatively,
and creating a display area on one side of the current page by using the plug-in.
Optionally, the display area is a movable window.
The apparatus may further include: and the viewing and displaying unit is used for receiving a viewing request triggered by a user aiming at a certain search result and displaying the specific content of the search result in the display area.
Optionally, the content displayed in the display area is filtered and displayed in a form suitable for the size of the display area.
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.
In addition, the present invention also provides an apparatus for data searching, which is explained below with reference to fig. 6. Fig. 6 is a block diagram of an apparatus 600 for data search according to the present invention. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, apparatus 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the apparatus 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 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 supply component 606 provides power to the various components of device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 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 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 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 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 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 component 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the apparatus 600, the sensor component 614 may also detect a change in position of the apparatus 600 or a component of the apparatus 600, the presence or absence of user contact with the apparatus 600, orientation or acceleration/deceleration of the apparatus 600, and a change in temperature of the apparatus 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 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 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 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 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 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 600 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 604 comprising instructions, executable by the processor 620 of the apparatus 600 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 in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a data search method, the method comprising: creating a search box on a current page by using a plug-in of a browser;
receiving a keyword input by a user in the search box;
creating a display area on the current page by using the plug-in;
and displaying the search results corresponding to the keywords in the display area.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the above embodiment methods can be implemented by software plus a general hardware platform. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network communication device such as a media gateway, etc.) to execute the method according to the embodiments or some parts of the embodiments.
It should be noted that, in the present specification, all the embodiments are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.

Claims (14)

1. A method of searching data, the method comprising:
identifying the type of a page element contained in the current page;
creating a search box in or around the identified page elements of the preset type by using a plug-in of a browser;
receiving a keyword input by a user in the search box;
creating a display area on the current page by using the plug-in;
and displaying the search results corresponding to the keywords in the display area.
2. The method of claim 1, wherein before creating the search box within or around the identified page element of the preset type using the browser plug-in, the method further comprises:
creating a control on the current page by using a plug-in of a browser, wherein the control is used for controlling the display or closing of a search box;
receiving a display request triggered by a user on the current page aiming at the control, and triggering the step of creating the search box according to the display request.
3. The method of claim 2, wherein the step of creating a control on the current page using a browser plug-in comprises:
creating a control on the current page by using a plug-in of a browser, wherein the control is used for controlling the display or closing of search boxes related to all page elements on the same page; or the like, or, alternatively,
creating at least one control on a current page by using a plug-in of a browser, wherein each control is used for controlling the display or closing of a search box related to one type of page elements on the same page; or the like, or, alternatively,
and creating a plurality of controls on the current page by utilizing the plug-in of the browser, wherein different controls are used for controlling the display or closing of search boxes related to different page elements on the same page.
4. The method of claim 1, wherein the step of creating a presentation area on the current page using the plug-in comprises:
identifying page elements contained in a current page, and creating a display area in or around the identified page elements by using the plug-in; or the like, or, alternatively,
and creating a display area on one side of the current page by using the plug-in.
5. The method according to claim 1 or 4,
the display area is a movable window.
6. The method of claim 1, wherein after the step of presenting search results corresponding to the keyword within the presentation area, the method further comprises:
and receiving a viewing request triggered by a user aiming at a certain search result, and displaying the specific content of the search result in the display area.
7. The method according to claim 1 or 6,
the content displayed in the display area is filtered and displayed in a form suitable for the size of the display area.
8. A data search apparatus, characterized in that the apparatus comprises:
the search box creating unit is used for identifying the types of the page elements contained in the current page; creating a search box in or around the identified page elements of the preset type by using a plug-in of a browser;
the receiving unit is used for receiving keywords input by a user in the search box;
the display area creating unit is used for creating a display area on the current page by using the plug-in;
and the search result display unit is used for displaying the search results corresponding to the keywords in the display area.
9. An apparatus for data searching, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
identifying the type of a page element contained in the current page;
creating a search box in or around the identified page elements of the preset type by using a plug-in of a browser;
receiving a keyword input by a user in the search box;
creating a display area on the current page by using the plug-in;
and displaying the search results corresponding to the keywords in the display area.
10. The apparatus of claim 9, wherein the one or more processors are further configured to execute the one or more programs including instructions for:
creating a control on the current page by using a plug-in of a browser, wherein the control is used for controlling the display or closing of a search box;
and receiving a display request triggered by a user on the current page aiming at the control, and triggering the instruction for creating the search box according to the display request.
11. The apparatus of claim 9, wherein when the one or more processors execute the instructions to create a presentation area on a current page using the plug-in, the processors are specifically configured to:
identifying page elements of a current page, and creating a display area in or around the identified page elements; or the like, or, alternatively,
and creating a display area on one side of the current page by using the plug-in.
12. The apparatus of claim 9 or 11,
the display area is a movable window.
13. The apparatus of claim 9, wherein the one or more processors are further configured to execute the one or more programs further comprising instructions for:
and receiving a viewing request triggered by a user aiming at a certain search result, and displaying the specific content of the search result in the display area.
14. The apparatus of claim 9 or 13,
the content displayed in the display area is filtered and displayed in a form suitable for the size of the display area.
CN201510945677.7A 2015-12-16 2015-12-16 Data searching method and device for data searching Active CN106886540B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510945677.7A CN106886540B (en) 2015-12-16 2015-12-16 Data searching method and device for data searching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510945677.7A CN106886540B (en) 2015-12-16 2015-12-16 Data searching method and device for data searching

Publications (2)

Publication Number Publication Date
CN106886540A CN106886540A (en) 2017-06-23
CN106886540B true CN106886540B (en) 2020-08-28

Family

ID=59175792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510945677.7A Active CN106886540B (en) 2015-12-16 2015-12-16 Data searching method and device for data searching

Country Status (1)

Country Link
CN (1) CN106886540B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069667B (en) * 2017-11-03 2022-07-19 北京搜狗科技发展有限公司 Searching method, searching device and searching device
CN108763369B (en) * 2018-05-17 2021-01-05 北京奇艺世纪科技有限公司 Video searching method and device
CN109299212A (en) * 2018-09-26 2019-02-01 中国平安人寿保险股份有限公司 Search for exchange method, device, computer equipment and storage medium
CN112988557A (en) * 2019-12-17 2021-06-18 腾讯科技(深圳)有限公司 Search box positioning method, data acquisition device and medium
CN111562868B (en) * 2020-07-10 2021-02-02 浙江口碑网络技术有限公司 Search guidance processing method and device
CN115168690B (en) * 2022-09-06 2022-12-27 深圳市明源云科技有限公司 Data query method and device based on browser plug-in, electronic equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053960A (en) * 2009-11-04 2011-05-11 孙红临 Method and system for constructing quick and accurate Internet of things and Internet search engine according to group requirement characteristics
US8473841B2 (en) * 2010-03-10 2013-06-25 Google Inc. Independent visual element configuration
CN103747352A (en) * 2013-12-02 2014-04-23 乐视致新电子科技(天津)有限公司 Smart television search control method and control device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661498A (en) * 2009-09-16 2010-03-03 百度在线网络技术(北京)有限公司 Information search method and device
US8306963B2 (en) * 2010-05-18 2012-11-06 Microsoft Corporation Embedded search bar
US8615510B2 (en) * 2010-09-01 2013-12-24 Yahoo! Inc. Quick applications for search
CN103631875B (en) * 2013-11-08 2017-04-12 北京奇虎科技有限公司 Method for carrying out network search on browser side and browser
CN104504040B (en) * 2014-12-15 2018-10-09 北京奇虎科技有限公司 A kind of method and apparatus of search

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053960A (en) * 2009-11-04 2011-05-11 孙红临 Method and system for constructing quick and accurate Internet of things and Internet search engine according to group requirement characteristics
US8473841B2 (en) * 2010-03-10 2013-06-25 Google Inc. Independent visual element configuration
CN103747352A (en) * 2013-12-02 2014-04-23 乐视致新电子科技(天津)有限公司 Smart television search control method and control device

Also Published As

Publication number Publication date
CN106886540A (en) 2017-06-23

Similar Documents

Publication Publication Date Title
CN106886540B (en) Data searching method and device for data searching
EP3561691B1 (en) Method and apparatus for displaying webpage content
US11704001B2 (en) Method and device for displaying web page content
CN104113785A (en) Information acquisition method and device
CN111783001A (en) Page display method and device, electronic equipment and storage medium
KR102282544B1 (en) Product display method and device
CN106896991B (en) Method and device for updating information
CN107888982B (en) Video information recommendation method and device
CN105488715B (en) Target object information query method and device
CN105095427A (en) Search recommendation method and device
CN112445970B (en) Information recommendation method and device, electronic equipment and storage medium
US20210389856A1 (en) Method and electronic device for displaying interactive content
CN105068976A (en) Ticket information exhibition method and device
CN111432288A (en) Video playing method and device, electronic equipment and storage medium
CN107515870B (en) Searching method and device and searching device
CN108154416B (en) Website browsing optimization method and device
CN107622074A (en) A kind of data processing method, device and computing device
CN110309324B (en) Searching method and related device
CN104182505A (en) Webpage rearrangement method and device
CN106503048B (en) Browser color setting method and device
CN104572848A (en) Search method and search device based on browser
CN106886541B (en) Data searching method and device for data searching
CN113986574A (en) Comment content generation method and device, electronic equipment and storage medium
CN113988021A (en) Content interaction method and device, electronic equipment and storage medium
CN109542297B (en) Method and device for providing operation guide information and electronic equipment

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