WO2015070673A1 - 浏览器侧进行网络搜索的方法与浏览器 - Google Patents
浏览器侧进行网络搜索的方法与浏览器 Download PDFInfo
- Publication number
- WO2015070673A1 WO2015070673A1 PCT/CN2014/087294 CN2014087294W WO2015070673A1 WO 2015070673 A1 WO2015070673 A1 WO 2015070673A1 CN 2014087294 W CN2014087294 W CN 2014087294W WO 2015070673 A1 WO2015070673 A1 WO 2015070673A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- search
- webpage
- text
- text element
- browser
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 238000004590 computer program Methods 0.000 claims description 10
- 238000004364 calculation method Methods 0.000 claims description 9
- 230000011218 segmentation Effects 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 14
- 230000000694 effects Effects 0.000 description 7
- 230000000977 initiatory effect Effects 0.000 description 3
- 239000000969 carrier Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/284—Relational databases
- G06F16/285—Clustering or classification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/334—Query execution
- G06F16/3344—Query execution using natural language analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
Definitions
- the present invention relates to the field of the Internet, and in particular, to a method and a browser for performing network search on a browser side.
- the traditional web search method is that a user opens a page of a search engine, inputs a keyword in an input box or other interface in the page, and initiates a search, and then loads the search result on a page of the search engine website.
- FIG. 1 and FIG. 2 respectively show an effect diagram of two browsers for opening a webpage shortcut search in the prior art.
- the user selects the text
- the preset condition for example, the mouse pauses at the selected text. Time, etc.
- the existing word-searching shortcut search is based on the word information acquired after the selection, and generates a pre-configured entry option, directly loading the icon of the entry and generating a corresponding Uniform Resource Locator (URL).
- URL Uniform Resource Locator
- the search portal is fixed, which will generate a lot of search content that the user does not need, and can not meet the requirements of the user's targeted search.
- the page is directly jumped to the label of the search result, and the user's browsing on the original page is interrupted.
- the present invention has been made in order to provide a browser and a corresponding browser side for performing a network search that overcomes the above problems or at least partially solves the above problems.
- a method for performing network search on a browser side includes the following steps: acquiring a selected webpage element in a webpage; selecting a text element in the selected webpage element; obtaining a search category corresponding to the text element; and searching for the search category
- the engine interface initiates a search request and displays the search results returned by the search engine interface on the browser side.
- the obtaining the search category corresponding to the text element comprises: counting the frequency of use of the various search categories of the browser, and using the search category with the highest frequency of the sort as the search category corresponding to the text element.
- obtaining a search category corresponding to the text element includes: extracting text content in the text element; performing search keyword matching on the text content, wherein the search keyword is a vocabulary classified according to the search category preset on the browser side;
- the search category corresponding to the matched search keyword is the search category corresponding to the text element.
- the obtaining the search category corresponding to the text element includes: acquiring webpage information of the webpage, and any one or more of the following webpage information: a uniform resource locator of the webpage, a title of the article to which the text element belongs, a context content of the text element, and a webpage User's user tag; determines the search category corresponding to the text element based on the web page information.
- determining, according to the webpage information, the search category corresponding to the text element comprises: determining a content type of the webpage according to the uniform resource locator of the webpage, and determining a search category corresponding to the text element according to the content type of the webpage, the title of the article, and the context content.
- determining, according to the webpage information, the search category corresponding to the text element comprises: respectively calculating, according to the text content of the text element, the content type of the webpage, and the user label matching, the corresponding search category is obtained; the text content, the webpage information, and the user label are The calculation information weights are respectively set; the search categories obtained by the matching calculation are weighted according to the information weights, and the search categories corresponding to the text elements are obtained.
- initiating a search request to a search engine interface corresponding to the search category performing word segmentation on the text element to obtain one or more search fields; and transmitting one or more search fields to a search engine interface corresponding to the search category .
- displaying the search result returned by the search engine interface on the browser side comprises: generating a search result display floating layer in the webpage, and loading the search result in the floating layer.
- the present invention also provides a browser.
- the browser includes: a webpage element obtaining module, configured to obtain a selected webpage element in the webpage; a text element obtaining module, configured to select a text element in the selected webpage element; and a classification module, configured to obtain a text element corresponding to the text element a search category; a search module, configured to initiate a search request to a search engine interface corresponding to the search category, and display the search result returned by the search engine interface on the browser side.
- the classification module is configured to: count the frequency of use of various search categories of the browser, and use the search category with the highest frequency of the sort as the search category corresponding to the text element.
- the classification module is configured to: extract text content in the text element; perform search keyword matching on the text content, wherein the search keyword is a vocabulary classified according to the search category preset on the browser side; the matching search is to be performed
- the search category corresponding to the keyword is the search category corresponding to the text element.
- the classification module includes: a webpage information acquisition sub-module, configured to acquire webpage information of the webpage, and the webpage
- the page information is any one or more of the following: a uniform resource locator of the webpage, a title of the article to which the text element belongs, a context content of the text element, a user tag of the webpage user, and a category matching submodule for determining the correspondence of the text element according to the webpage information Search category.
- the category matching submodule is configured to: determine a content type of the webpage according to the uniform resource locator of the webpage, and determine a search category corresponding to the text element according to the content type of the webpage, the title of the article, and the context content.
- the category matching sub-module is configured to: respectively calculate respective corresponding search categories according to the text content of the text element, the content type of the webpage, and the user label matching; respectively, set calculation information for the text content, the webpage information, and the user label respectively. Weight; the search category obtained by the matching calculation is weighted according to the information weight, and the search category corresponding to the text element is obtained.
- the search module is configured to: perform word segmentation on the text element to obtain one or more search fields; send one or more search fields to a search engine interface corresponding to the search category; generate search results in the webpage Show the floating layer and load the search results in the floating layer.
- a computer program comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform the browsing described in any of the preceding The method of performing network search on the device side.
- a computer readable medium storing the aforementioned computer program is provided.
- the method and browser for performing web search according to the present invention determine a search category according to the text content in the selected webpage element, and the search result displayed in the browser matches the search category required by the user, thereby obtaining a search result more in line with the user's expectation.
- the user's intervention in the search process is reduced, and the efficiency of the search operation performed when the user browses the webpage is improved.
- the present invention generates a display floating layer classified according to the search category in the page, and loads the search result in the floating layer, which can be displayed in an accurate classification, so that the user can quickly obtain the search result without affecting the user browsing the original page.
- FIG. 1 is a diagram showing an effect of a first browser opening a webpage shortcut search in the prior art
- FIG. 2 is a diagram showing an effect of a second browser opening a webpage shortcut search in the prior art
- FIG. 3 is a schematic diagram of a browser in accordance with one embodiment of the present invention.
- FIG. 4 is a schematic diagram of a method for performing a network search on a browser side according to an embodiment of the present invention
- FIG. 5 is a flow chart of determining a search category by using webpage information in a method for performing web search by a browser side according to an embodiment of the present invention
- FIG. 6 is a first effect diagram showing search results displayed in a floating layer in a method for performing web search by a browser side according to an embodiment of the present invention
- FIG. 7 is a second effect diagram showing search results displayed in a floating layer in a method for performing web search by a browser side according to an embodiment of the present invention
- FIG. 8 is a third effect diagram showing search results displayed in a floating layer in a method for performing web search by a browser side according to an embodiment of the present invention.
- Figure 9 is a block diagram schematically showing a computing device for performing a method of performing a network search on the browser side of the present invention.
- Fig. 10 schematically shows a storage unit for holding or carrying program code for implementing a method of performing network search on the browser side according to the present invention.
- FIG. 3 is a schematic diagram of a browser 100 in accordance with one embodiment of the present invention.
- the browser 100 generally includes a webpage element acquisition module 110, a text element acquisition module 120, a classification module 130, and a search module 140.
- the webpage element obtaining module 110 is configured to acquire a selected webpage element in the webpage; the text element obtaining module 120 is configured to select a text element in the selected webpage element; the classification module 130 And the search module 140 is configured to initiate a search request to the search engine interface corresponding to the search category, and return the search result returned by the search engine interface on the browser side. display.
- the selected webpage element type obtained by the webpage element acquisition module 110 may include various types such as pictures, music, video, text, and the like. Each web page element corresponds to one or more search categories. For video, picture, music, the user's search target is relatively clear, for example, the picture type webpage element corresponds to the picture type search; the music type webpage element corresponds to the music type search; the video type webpage element corresponds to the video type search. For the case where the search for the selected text element is required, since it can correspond to various search categories, the text page element needs to be selected by the text element acquisition module 120, and the corresponding search category is determined by the classification module 130.
- the classification module 130 may obtain the search category corresponding to the text element in various manners, for example, using a search category with a high frequency of use by the user, determining a search category by means of keyword matching, determining a search category by combining the web pages, and the like.
- classification module 130 is configured to: count the usage frequency of various search categories of the browser 100, and use the search category with the highest frequency of use as the search category corresponding to the text element. The user uses the most frequent search categories as the preferred search category.
- the classification module 120 is configured to: extract text content in the text element; perform search keyword matching on the text content, wherein the search keyword is a search category preset on the browser side The classified vocabulary; the search category corresponding to the matched search keyword is used as the search category corresponding to the text element.
- the search keywords can be sorted according to the data of the network search. For example, the name search category of the singer may be music or entertainment, and the search category of the product name search is preferably a shopping category or a picture category. If the text content matches the search keyword sorted above, the search category corresponding to the search keyword can be used for the search. The matching of the above keywords can be performed on the browser side.
- a further preferred implementation manner of determining the search category is: the classification module 120 includes a webpage information acquisition sub-module and a category matching sub-module, wherein the webpage information acquisition sub-module is configured to acquire webpage information of the webpage; the category matching sub-module is used for The search category corresponding to the text element is determined according to the webpage information.
- the webpage information may include some or all of the following items: a uniform resource locator of the webpage, a title of the article to which the text element belongs, a contextual content of the text element, and a user tag of the webpage user.
- the configuration of the category matching sub-module is: determining a content type of the webpage according to a Uniform Resource Locator (URL) of the webpage, and determining a text element corresponding to the content type of the webpage according to the content of the webpage and the context content of the webpage.
- Search category Through the analysis of the URL, it can be determined whether the webpage is a video website, a news website, a picture website, or the like, or a variety of channels of the portal website, etc., according to the type of the website to which the webpage belongs, the title and the context content can be combined to obtain the detailed search category. happening.
- the category matching sub-module can also set information weights for multiple search categories determined in various ways.
- the search category is determined by a similar weight calculation method.
- the category matching sub-module is configured to: respectively calculate the corresponding search categories according to the text content of the text element, the content type of the webpage, and the user label matching; respectively set the text content, the webpage information, and the user label.
- the information weight is calculated; the search category calculated by the matching is weighted according to the information weight, and the search category corresponding to the text element is obtained.
- the search module 140 may initiate a request to the search engine interface corresponding to the search category and display the search result.
- the configuration of the search module 140 is: performing word segmentation on the text element to obtain one or more search fields; sending one or more search fields to the search engine interface corresponding to the search category; generating search results in the webpage Show the floating layer and load the search results in the floating layer.
- the word segmentation of text elements is based on grammatical habits, splitting longer fields into shorter keywords, avoiding the search conditions being too strict and causing missed search results.
- the user-selected text element for segmentation and its search category can be analyzed on the browser side and then sent to the specified classified search engine for searching. This allows for more precise word-searching, and the speed of the search will increase efficiency through the intervention of the browser.
- the embodiment of the invention further provides a method for performing network search on the browser side, and the method for performing network search on the browser side can be performed by any browser 100 introduced in the above embodiments to obtain more matching with user selection. Search results.
- the technical solution of the embodiment of the present invention is further described below by explaining the method and the detailed flow thereof.
- FIG. 4 is a schematic diagram of a method for performing a network search on a browser side according to an embodiment of the present invention.
- the method of performing network search on the browser side generally includes the following steps:
- Step S402 acquiring a selected webpage element in the webpage
- Step S404 selecting a text element in the selected webpage element
- Step S406 acquiring a search category corresponding to the text element
- Step S408 initiating a search request to the search engine interface corresponding to the search category, and displaying the search result returned by the search engine interface on the browser side.
- the selected webpage element type acquired in step S402 may include various types such as pictures, music, video, text, and the like.
- Each web page element corresponds to one or more search categories.
- the picture type webpage element corresponds to the picture type search
- the music type webpage element corresponds to the music type search
- the video type webpage element corresponds to the video type search.
- a subsequent step is required to determine the search category.
- step S402 and step S406 may be: acquiring a webpage element in a page selected by the user; obtaining the webpage element may be implemented by using an IHTMLSelectionObject interface, and the process may be: first according to The IHTMLDocument2 pointer takes the IHTMLSelectionObject interface pointer, and then gets the ITxtRange pointer, gets the selected html text content, and gets the selected text content.
- Obtaining the search category corresponding to the text element may be performed in various manners, such as using a search category with a high frequency of use by the user, determining a search category by means of keyword matching, determining a search category by combining a web page, and the like.
- the various implementations of step S406 are described below.
- An implementation process of step S406 is: counting the frequency of use of various search categories of the browser, and using the search category with the highest frequency of use as the search category corresponding to the text element.
- the search category thus determined is derived from the user's usage habits, and the user's most frequently used search category is loaded first.
- step S406 is: extracting text content in a text element; performing search keyword matching on the text content, wherein the search keyword is a vocabulary classified according to a search category preset on a browser side; a matching search is to be performed
- the search category corresponding to the keyword is the search category corresponding to the text element.
- the browser side performs matching of search keywords, and the search keywords are classified in advance according to categories, for example, web pages, videos, and the like.
- the search keywords are collected through the collection of web search data, including the search keywords and their categories that are common in the network. If the match results in a search keyword, the search engine entry for the classification is displayed according to the match result. If the matching is unsuccessful, all the search entries can be displayed for the user to select according to the default general search categories, that is, various search types can be loaded in the order of the preset search types.
- Table 1 shows a preset search type preset table.
- Keyword 1 Keyword 2 news search Keyword
- Keyword B Music search Keyword
- Keyword D Video search Keyword
- Keyword F Encyclopedia search Keywords G Keyword H ;
- the search keyword category can be used to obtain the corresponding search category, and the corresponding search category can include multiple types.
- the search corresponding to the encyclopedia search can be Baidu Encyclopedia, Wikipedia, 360 Encyclopedia, and the like.
- a further implementation process of step S406 may further include: acquiring webpage information of the webpage; determining, according to the webpage information, a search category corresponding to the text element, wherein the webpage information is any one or more of the following: a uniform resource locator URL of the webpage, and a text The title of the article to which the element belongs, the contextual content of the text element, and the user tag of the web user.
- the method for determining the search category corresponding to the text element according to the webpage information is: determining the content type of the webpage according to the uniform resource locator URL of the webpage, and determining the search corresponding to the text element according to the content type of the webpage, combining the title of the article and the context content. category.
- FIG. 5 is a diagram of utilizing webpage information in a method for performing web search by a browser side according to an embodiment of the present invention.
- the process block diagram of determining the search category, as shown in the figure, the process of determining the search category by using the webpage information includes:
- Step S502 the browser acquires the URL of the webpage and the text content of the selected text element, the context content of the selected text element, and the title of the article to which the text element belongs;
- Step S504 determining a webpage type by using a URL
- Step S506 determining content classification information according to the text content of the selected text element, the context content of the selected text element, and the title of the article to which the text element belongs;
- Step S508 determining a search classification according to the webpage type and the content classification.
- the above steps S504 to S508 may be performed on the browser side or may be sent to the server side through a browser.
- the browser side When the search side is determined by the server side, the browser side combines the obtained text keyword, and the text related information such as the URL of the current webpage and the content title of the webpage content with the text content of the selected text element, and packages and sends the corresponding information to the corresponding text element.
- the classification may also be performed by using a search keyword matching method, and the search keyword is obtained by using the data of the network search to match the above classification information to obtain the final search category.
- the selected text content can also use the matching strategy preset on the browser side to determine the search type according to the title of the current web page, the theme content of the text, etc. For example, in the webpage of a report basketball, the keyword "Yao Ming" is selected. It is natural to judge the use of news, web pages, and videos as recommended search categories.
- the process of determining the search category can also be combined with the category information of the browser user to set the user tag by counting the categories of the user browsing the web page. For example, if a webpage accessed by a certain user is a military channel and a movie channel, then the tag keyword of the browser user is: military, film and television, and the above-mentioned military and video search categories are provided in the search category provided by the word search. .
- the search categories determined by different factors may not be uniform.
- the calculation information weights may be separately set for different ways to determine the search categories, and the search categories with the highest scores are used as the priority search categories. For example, according to the text content of the text element, the content type of the webpage, and the user tag matching, the corresponding search categories are calculated; the calculated information weights are respectively set for the text content, the webpage information, and the user label; and the search categories obtained by the matching calculation are The weight of the information is weighted and the search category corresponding to the text element is obtained.
- search category weight determined by pre-setting the webpage content is 5
- search category determined by the webpage title is 3
- search category determined by the browser user label is 1, respectively, determined by using the above various methods.
- the search category is superimposed and the search category with the highest weight value is used as the priority search. category.
- a process of initiating a search request to a search engine interface corresponding to the search category in step S408 is: performing word segmentation on the text element to obtain one or more search fields; and transmitting one or more search fields to the search category
- the search engine interface; the word segmentation of text elements is based on grammatical habits, splitting longer fields into shorter keywords, avoiding the search conditions being too strict and causing missed search results.
- the process of displaying the search result returned by the search engine interface on the browser side in step S408 is: generating a search result display floating layer in the webpage, and loading the search result in the floating layer.
- FIG. 6, FIG. 7, and FIG. 8 are respectively three effect diagrams of search results displayed in a floating layer in a method for performing web search by a browser side according to an embodiment of the present invention.
- This display method is convenient for the user to quickly obtain search results without affecting the user's browsing of the original page. Thereby, the user can quickly and directly reach the content, quickly and accurately obtain the search result, and improve the efficiency of the search operation performed when the user browses the webpage.
- the search classification matches the content that needs to be searched, and is generally the search result that the user most desires, which satisfies the user's search needs. Improve the user experience.
- the method and the browser for performing web search by using the browser side provided by the embodiment determine the search category according to the text content in the selected webpage element, and the search result displayed in the browser matches the search category required by the user, thereby obtaining more
- the search results that meet the user's expectations reduce the user's intervention in the search process and improve the efficiency of the search operation performed by the user when browsing the webpage.
- the present invention generates a display floating layer classified according to the search category in the page, and loads the search result in the floating layer, which can be displayed in an accurate classification, so that the user can quickly obtain the search result without affecting the user browsing the original page. .
- modules in the devices in the embodiments can be adapted.
- the changes are made and placed in one or more devices different from this embodiment.
- the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
- any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
- Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
- the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
- a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of a browser in accordance with embodiments of the present invention.
- the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
- a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
- FIG. 9 illustrates a computing device, such as an application server, a personal computer, etc., that may implement a method of web search by the browser side in accordance with the present invention.
- the computing device conventionally includes a processor 710 and a computer program product or computer readable medium in the form of a memory 720.
- Memory 720 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
- Memory 720 has a memory space 730 for program code 731 for performing any of the method steps described above.
- storage space 730 for program code may include various program code 731 for implementing various steps in the above methods, respectively.
- the program code can be read from or written to one or more computer program products.
- These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
- Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
- the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 720 in the computing device of FIG.
- the program code can be compressed, for example, in an appropriate form.
- the storage unit includes computer readable code 731', code that can be read by a processor, such as 710, which, when executed by a computing device, causes the computing device to execute Each of the steps in the method described above.
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)
- Artificial Intelligence (AREA)
- Computational Linguistics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明提供了一种浏览器侧进行网络搜索的方法与浏览器。其中浏览器侧进行网络搜索的方法包括以下步骤:获取网页中选定的网页元素;挑选出选定的网页元素中的文本元素;获取文本元素对应的搜索类别;向与搜索类别对应的搜索引擎接口发起搜索请求,并将搜索引擎接口返回的搜索结果在浏览器侧显示。利用本发明的技术方案,根据选中网页元素中的文本内容确定搜索类别,浏览器中显示的搜索结果与用户需要的搜索类别相匹配,从而获得更加符合用户预期的搜索结果,减少了用户对搜索过程的干预,提高了用户浏览网页时进行的搜索操作的效率。
Description
本发明涉及互联网领域,特别是涉及一种浏览器侧进行网络搜索的方法与浏览器。
传统的网络搜索方法,是用户打开搜索引擎的页面,并在页面中的输入框或其他接口中输入关键词并发起搜索,然后在搜索引擎网站的页面中加载搜索结果。
利用传统的搜索方法,用户在浏览网页需要对网页的文本进行搜索时,首先复制相应的文本,然后打开搜索引擎的页面并输入文本,才能进行搜索。用户的操作步骤比较复杂。
另外,现有技术中还有一种搜索方法,用户从当前所浏览的内容中选中部分文字,浏览器会出现一个快捷搜索按钮,用户点击该按钮之后即可跳转搜索引擎按照选中文字搜索结果页,并在新页面中展示搜索结果页。
图1和图2分别示出了现有技术中两种浏览器开启网页快捷搜索的效果图,如图所示,用户选择文本后,一旦满足预设的条件,例如鼠标在选择文字处停留预定时间等,就会在选择文字显示快捷搜索按钮,以便用户操作。然后现有的划词快捷搜索都是基于选择后获取的词信息,产生出预先配置好的入口选项,直接加载即可入口的图标和生成对应的统一资源定位符(Uniform Resource Locator,简称URL)。这种方式中搜索的入口固定,会产生很多用户不需要的搜索内容,无法满足用户针对性搜索的要求。另外用户点击按钮后,直接将页面跳转至搜索结果的标签,中断了用户在原页面的浏览。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的浏览器和相应的浏览器侧进行网络搜索的方法。
依据本发明的一个方面,提供了一种浏览器侧进行网络搜索的方法。该浏览器侧进行网络搜索的方法,包括以下步骤:获取网页中选定的网页元素;挑选出选定的网页元素中的文本元素;获取文本元素对应的搜索类别;向与搜索类别对应的搜索引擎接口发起搜索请求,并将搜索引擎接口返回的搜索结果在浏览器侧显示。
可选地,获取文本元素对应的搜索类别包括:统计浏览器的各种搜索类别的使用频率,将使用频率排序靠前的搜索类别作为文本元素对应的搜索类别。
可选地,获取文本元素对应的搜索类别包括:提取文本元素中的文本内容;对文本内容进行搜索关键词匹配,其中搜索关键词为在浏览器侧预置的按照搜索类别分类的词汇;将匹配的搜索关键词对应的搜索类别作为文本元素对应的搜索类别。
可选地,获取文本元素对应的搜索类别包括:获取网页的网页信息,网页信息以下任意一项或多项:网页的统一资源定位符、文本元素所属文章的标题、文本元素的上下文内容、网页用户的用户标签;根据网页信息确定文本元素对应的搜索类别。
可选地,根据网页信息确定文本元素对应的搜索类别包括:根据网页的统一资源定位符确定网页的内容类型,根据网页的内容类型结合文章的标题和上下文内容确定文本元素对应的搜索类别。
可选地,根据网页信息确定文本元素对应的搜索类别包括:分别根据文本元素的文本内容、网页的内容类型、用户标签匹配计算得出各自对应的搜索类别;为文本内容、网页信息、用户标签分别设置计算信息权重;将匹配计算得出的搜索类别按照信息权重进行加权计算,得出文本元素对应的搜索类别。
可选地,向与搜索类别对应的搜索引擎接口发起搜索请求:对文本元素进行分词处理,以得到一个或多个搜索字段;将一个或多个搜索字段发送给与搜索类别对应的搜索引擎接口。
可选地,将搜索引擎接口返回的搜索结果在浏览器侧显示包括:在网页中生成搜索结果展示浮层,并在浮层中加载搜索结果。
特别地,本发明还提供了一种浏览器。该浏览器包括:网页元素获取模块,用于获取网页中选定的网页元素;文本元素获取模块,用于挑选出选定的网页元素中的文本元素;分类模块,用于获取文本元素对应的搜索类别;搜索模块,用于向与搜索类别对应的搜索引擎接口发起搜索请求,并将搜索引擎接口返回的搜索结果在浏览器侧显示。
可选地,分类模块被配置为:统计浏览器的各种搜索类别的使用频率,将使用频率排序靠前的搜索类别作为文本元素对应的搜索类别。
可选地,分类模块被配置为:提取文本元素中的文本内容;对文本内容进行搜索关键词匹配,其中搜索关键词为在浏览器侧预置的按照搜索类别分类的词汇;将匹配的搜索关键词对应的搜索类别作为文本元素对应的搜索类别。
可选地,分类模块包括:网页信息获取子模块,用于获取网页的网页信息,网
页信息以下任意一项或多项:网页的统一资源定位符、文本元素所属文章的标题、文本元素的上下文内容、网页用户的用户标签;类别匹配子模块,用于根据网页信息确定文本元素对应的搜索类别。
可选地,类别匹配子模块被配置为:根据网页的统一资源定位符确定网页的内容类型,根据网页的内容类型结合文章的标题和上下文内容确定文本元素对应的搜索类别。
可选地,类别匹配子模块被配置为:分别根据文本元素的文本内容、网页的内容类型、用户标签匹配计算得出各自对应的搜索类别;为文本内容、网页信息、用户标签分别设置计算信息权重;将匹配计算得出的搜索类别按照信息权重进行加权计算,得出文本元素对应的搜索类别。
可选地,搜索模块被配置为:对文本元素进行分词处理,以得到一个或多个搜索字段;将一个或多个搜索字段发送给与搜索类别对应的搜索引擎接口;在网页中生成搜索结果展示浮层,并在浮层中加载搜索结果。
根据本发明的再一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行前述任一项所述的浏览器侧进行网络搜索的方法。
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了前述计算机程序。
本发明的进行网络搜索的方法和浏览器,根据选中网页元素中的文本内容确定搜索类别,浏览器中显示的搜索结果与用户需要的搜索类别相匹配,从而获得更加符合用户预期的搜索结果,减少了用户对搜索过程的干预,提高了用户浏览网页时进行的搜索操作的效率。
进一步地,本发明的在页面中生成按照搜索类别进行分类的展示浮层,并在浮层中加载搜索结果,能够按精确分类显示,方便用户快速获得搜索结果,并且不影响用户对原页面浏览。上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图
中:
图1示出了现有技术中第一种浏览器开启网页快捷搜索的效果图;
图2示出了现有技术中第二种浏览器开启网页快捷搜索的效果图;
图3是根据本发明一个实施例的浏览器的示意图;
图4是根据本发明一个实施例的浏览器侧进行网络搜索的方法的示意图;
图5是根据本发明一个实施例的浏览器侧进行网络搜索的方法中利用网页信息确定搜索类别的流程框图;
图6是根据本发明实施例的浏览器侧进行网络搜索的方法中搜索结果在浮层中展示的第一种效果图;
图7是根据本发明实施例的浏览器侧进行网络搜索的方法中搜索结果在浮层中展示的第二种效果图;
图8是根据本发明实施例的浏览器侧进行网络搜索的方法中搜索结果在浮层中展示的第三种效果图;
图9示意性地示出了用于执行根据本发明的浏览器侧进行网络搜索的方法的计算设备的框图;以及
图10示意性地示出了用于保持或者携带实现根据本发明的浏览器侧进行网络搜索的方法的程序代码的存储单元。
下面结合附图和具体的实施方式对本发明作进一步的描述。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
图3是根据本发明一个实施例的浏览器100的示意图。该浏览器100一般性地可包括:网页元素获取模块110、文本元素获取模块120、分类模块130、搜索模块140。
在以上浏览器100的各模块中,网页元素获取模块110,用于获取网页中选定的网页元素;文本元素获取模块120,用于挑选出选定的网页元素中的文本元素;分类模块130,用于获取文本元素对应的搜索类别;搜索模块140,用于向与搜索类别对应的搜索引擎接口发起搜索请求,并将搜索引擎接口返回的搜索结果在浏览器侧
显示。
网页元素获取模块110获取的选定网页元素类型可以包括多种,例如图片、音乐、视频、文字等。每种网页元素对应着一种或多种搜索类别。对于视频、图片、音乐而言,用户的搜索目标比较明确,例如图片类型网页元素对应着图片类型的搜索;音乐类型网页元素对应着音乐类型的搜索;视频类型网页元素对应着视频类型的搜索。对于需要对所选择的文本元素进行搜索的情况,由于其可以对应着各种的搜索类别,因此文本网页元素需要通过文本元素获取模块120挑选出来,由分类模块130确定出对应的搜索类别。
分类模块130获取文本元素对应的搜索类别可以利用多种方式进行,例如使用用户的使用频率高的搜索类别、利用关键字匹配的方式确定搜索类别、结合网页确定搜索类别等。
其中,一种实现方式为分类模块130被配置为:统计浏览器100的各种搜索类别的使用频率,将使用频率排序靠前的搜索类别作为文本元素对应的搜索类别。用户使用最频繁的搜索类别作为优选使用的搜索类别。
确定搜索类别的另一种实现方式为:分类模块120被配置为:提取文本元素中的文本内容;对文本内容进行搜索关键词匹配,其中搜索关键词为在浏览器侧预置的按照搜索类别分类的词汇;将匹配的搜索关键词对应的搜索类别作为文本元素对应的搜索类别。搜索关键词可以根据网络搜索的数据进行整理得出,例如歌星的名字搜索类别可以为音乐类或者娱乐类、商品名搜索的搜索类别优选为购物类或图片类等。如果文本内容与以上整理的搜索关键词匹配,就可以使用搜索关键词对应的搜索类别进行搜索。以上关键词的匹配工作可以在浏览器侧进行。
确定搜索类别的又一种优选实现方式为:分类模块120包括有网页信息获取子模块和类别匹配子模块,其中网页信息获取子模块,用于获取网页的网页信息;类别匹配子模块,用于根据网页信息确定文本元素对应的搜索类别。网页信息可以包括以下几项的部分或全部:网页的统一资源定位符、文本元素所属文章的标题、文本元素的上下文内容、网页用户的用户标签。
具体地,类别匹配子模块的一种配置为:根据网页的统一资源定位符(Uniform Resource Locator,简称URL)确定网页的内容类型,根据网页的内容类型结合文章的标题和上下文内容确定文本元素对应的搜索类别。通过对URL的分析可以确定网页是否是视频网站、是新闻网站、图片网站等类型,或者是门户网站的各类频道等,根据网页所属的网站类型结合标题和上下文内容就可以得到搜索类别的详细情况。
类别匹配子模块还可以对多种方式确定的多种搜索类别分别设置信息权重,采
用类似权重计算打分的方式确定搜索类别。这种使用方式下,类别匹配子模块被配置为:分别根据文本元素的文本内容、网页的内容类型、用户标签匹配计算得出各自对应的搜索类别;为文本内容、网页信息、用户标签分别设置计算信息权重;将匹配计算得出的搜索类别按照信息权重进行加权计算,得出文本元素对应的搜索类别。
在分类模块120确定出搜索类别后,搜索模块140可以向搜索类别对应的搜索引擎接口发起请求,并显示搜索结果。搜索模块140的一种配置方式为:对文本元素进行分词处理,以得到一个或多个搜索字段;将一个或多个搜索字段发送给与搜索类别对应的搜索引擎接口;在网页中生成搜索结果展示浮层,并在浮层中加载搜索结果。文本元素的分词处理是按照语法习惯,将较长的字段拆分成较短的关键词,避免了搜索条件过于严格导致错过搜索结果。
用户选择的文本元素进行分词及其搜索类别的确定可以在浏览器侧进行分析后,再发送给指定的分类搜索引擎进行搜索的。从而可以实现更加精准地划词搜索,而且搜索的反应速度会通过浏览器的介入提高效率。
本发明实施例还提供了一种浏览器侧进行网络搜索的方法,该浏览器侧进行网络搜索的方法可以由以上实施例中介绍的任一种浏览器100执行,以得到更加与用户选择匹配的搜索结果。下面通过对该方法及其详细流程进行说明对本发明实施例的技术方案进一步进行说明。
图4是根据本发明一个实施例的浏览器侧进行网络搜索的方法的示意图。该浏览器侧进行网络搜索的方法一般性地可包括以下步骤:
步骤S402,获取网页中选定的网页元素;
步骤S404,挑选出选定的网页元素中的文本元素;
步骤S406,获取文本元素对应的搜索类别;
步骤S408,向与搜索类别对应的搜索引擎接口发起搜索请求,并将搜索引擎接口返回的搜索结果在浏览器侧显示。
步骤S402获取的选定网页元素类型可以包括多种,例如图片、音乐、视频、文字等。每种网页元素对应着一种或多种搜索类别。对于视频、图片、音乐而言,用户的搜索目标比较明确,例如图片类型网页元素对应着图片类型的搜索;音乐类型网页元素对应着音乐类型的搜索;视频类型网页元素对应着视频类型的搜索。对于需要对所选择的文本元素进行搜索的情况,需要执行后续步骤确定搜索类别。步骤S402及步骤S406的实现流程可以为:获取用户选中的页面中的网页元素;获取网页元素可以通过IHTMLSelectionObject接口来实现,流程可以为:首先根据
IHTMLDocument2指针取得IHTMLSelectionObject接口指针,然后再获得ITxtRange指针,取得选中的html文本内容,并得到选中的文本内容。
获取文本元素对应的搜索类别可以利用多种方式进行,例如使用用户的使用频率高的搜索类别、利用关键字匹配的方式确定搜索类别、结合网页确定搜索类别等。以下分别对步骤S406的各种实现方式进行介绍。
步骤S406的一种实现流程为:统计浏览器的各种搜索类别的使用频率,将使用频率排序靠前的搜索类别作为文本元素对应的搜索类别。这样确定的搜索类别是通过用户的使用习惯得出的,将用户使用最频繁的搜索类别最先加载。
步骤S406的另一种实现流程为:提取文本元素中的文本内容;对文本内容进行搜索关键词匹配,其中搜索关键词为在浏览器侧预置的按照搜索类别分类的词汇;将匹配的搜索关键词对应的搜索类别作为文本元素对应的搜索类别。浏览器侧进行搜索关键字的匹配,其中的搜索关键词预先按照类别进行分类,例如:网页、视频等。其中的搜索关键字是通过对网络搜索数据进行收集整理得出的,包括了网络中常见的搜索关键字及其类别。如果匹配得出了搜索关键字,就按照匹配结果显示分类的搜索引擎入口。如果匹配不成功,则可以按照默认一般的几种搜索类别,显示出所有的搜索入口供用户进行选择,即可以按照预置的搜索类型顺序进行加载各种搜索类型。表1示出了一种预置的搜索类型预置表。
表1
搜索类别 | 关键词1 | 关键词2 | …… |
新闻搜索 | 关键词A | 关键词B | |
音乐搜索 | 关键词C | 关键词D | |
视频搜索 | 关键词E | 关键词F | |
百科搜索 | 关键词G | 关键词H | |
…… |
利用以上搜索关键词预置表可以得出对应搜索类别,对应得出的搜索类别可以包括多种,例如百科搜索对应的搜索可以是百度百科、维基百科、360百科等。
步骤S406的又一种实现流程还可以包括:获取网页的网页信息;根据网页信息确定文本元素对应的搜索类别,其中,网页信息以下任意一项或多项:网页的统一资源定位符URL、文本元素所属文章的标题、文本元素的上下文内容、网页用户的用户标签。其中,根据网页信息确定文本元素对应的搜索类别的一种方式为:根据网页的统一资源定位符URL确定网页的内容类型,根据网页的内容类型结合文章的标题和上下文内容确定文本元素对应的搜索类别。
图5是根据本发明一个实施例的浏览器侧进行网络搜索的方法中利用网页信息
确定搜索类别的流程框图,如图,利用网页信息确定搜索类别的流程包括:
步骤S502,浏览器获取网页的URL以及选择的文本元素的文本内容、选择的文本元素的上下文内容、文本元素所属文章的标题;
步骤S504,利用URL确定网页类型;
步骤S506,按照选择的文本元素的文本内容、选择的文本元素的上下文内容、文本元素所属文章的标题确定内容分类信息;
步骤S508,根据网页类型和内容分类确定搜索分类。
以上步骤S504至S508可以在浏览器侧执行,也可以通过浏览器发送给服务器侧执行。利用服务器侧确定搜索分类时,浏览器侧将获取到的文字关键字,以及当前网页的URL和网页内容中的内容标题等文字相关信息与选择的文本元素的文本内容结合起来,打包发送到对应的服务器侧进行检索,其中服务器分析当前URL的类型,例如是视频网站、是新网站、图片网站等,或者是主流门户网站的分类二级网站,这些信息可以从URL中的特征值中提取和判断出来,并结合所述的划取关键字的所在文章的标题或者上下文关键字确定出当前划取的文字关键字的分类。分类也可以采用搜索关键词匹配的方式进行,利用根据网络搜索的数据统计得出搜索关键词,与以上分类信息进行匹配,得到最终的搜索类别。
选取的文本内容也可以利用浏览器侧预置的匹配策略,依据当前网页的标题、文本的主题内容等确定搜索类型,例如在一篇报道篮球的网页中点选了“姚明”这个关键字,就会自然地判断使用新闻、网页、视频作为推荐的搜索类别。
搜索类别的确定过程还可以结合浏览器用户的类别信息,通过统计用户浏览网页的类别,设定用户标签。例如某用户访问较多的网页为军事频道和影视频道,那么浏览器用户的标签关键字是:军事、影视,则在其划词搜索提供的搜索类别中优先级别高地提供上述军事、影视搜索类别。
以上确定搜索类别时,不同因素确定的搜索类别有可能不统一,这种情况下可以对不同方式确定搜索类别分别设置计算信息权重进行权重计算,将分值最高的搜索类别作为优先的搜索类别,例如分别根据文本元素的文本内容、网页的内容类型、用户标签匹配计算得出各自对应的搜索类别;为文本内容、网页信息、用户标签分别设置计算信息权重;将匹配计算得出的搜索类别按照信息权重进行加权计算,得出文本元素对应的搜索类别。
一个具体的例子为:预先设定网页内容判断得出的搜索类别权重为5,网页标题确定得出的搜索类别为3,浏览器用户标签确定的搜索类别为1,分别利用以上各种方式确定出的搜索类别进行权重叠加,将权重值最高的搜索类别作为优先的搜索
类别。
步骤S408中向与搜索类别对应的搜索引擎接口发起搜索请求的一种流程为:对文本元素进行分词处理,以得到一个或多个搜索字段;将一个或多个搜索字段发送给与搜索类别对应的搜索引擎接口;文本元素的分词处理是按照语法习惯,将较长的字段拆分成较短的关键词,避免了搜索条件过于严格导致错过搜索结果。
步骤S408中将搜索引擎接口返回的搜索结果在浏览器侧显示的一种流程为:在网页中生成搜索结果展示浮层,并在浮层中加载搜索结果。图6、图7、图8分别是根据本发明实施例的浏览器侧进行网络搜索的方法中搜索结果在浮层中展示的三种效果图。这种显示方法便于用户快速获得搜索结果,并且不影响用户对原页面浏览。从而实现了让用户快速直达内容,快速准确获取搜索结果,提高用户浏览网页时进行的搜索操作的效率。
从以上效果图中可以看出,利用本发明实施例提供的浏览器和网络搜索方法,搜索的分类与需要搜索的内容匹配,一般是用户最希望得到的搜索结果,满足了用户的搜索需要,提高了用户体验。
使用本实施例提供的浏览器侧进行网络搜索的方法和浏览器,根据选中的网页元素中的文本内容确定搜索类别,浏览器中显示的搜索结果与用户需要的搜索类别相匹配,从而获得更加符合用户预期的搜索结果,减少了用户对搜索过程的干预,提高了用户浏览网页时进行的搜索操作的效率。
进一步地,本发明的在页面中生成按照搜索类别进行分类的展示浮层,并在浮层中加载搜索结果,能够按精确分类显示,方便用户快速获得搜索结果,并且不影响用户对原页面浏览。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性
地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的浏览器的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图9示出了可以实现根据本发明的浏览器侧进行网络搜索的方法的计算设备,例如应用服务器、个人计算机等。该计算设备传统上包括处理器710和以存储器720形式的计算机程序产品或者计算机可读介质。存储器720可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器720具有用于执行上述方法中的任何方法步骤的程序代码731的存储空间730。例如,用于程序代码的存储空间730可以包括分别用于实现上面的方法中的各种步骤的各个程序代码731。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图10所述的便携式或者固定存储单元。该存储单元可以具有与图9的计算设备中的存储器720类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码731’,即可以由例如诸如710之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行
上面所描述的方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。
Claims (17)
- 一种浏览器侧进行网络搜索的方法,包括:获取网页中选定的网页元素;挑选出所述选定的网页元素中的文本元素;获取所述文本元素对应的搜索类别;向与所述搜索类别对应的搜索引擎接口发起搜索请求,并将所述搜索引擎接口返回的搜索结果在浏览器侧显示。
- 根据权利要求1所述的方法,其中,获取所述文本元素对应的搜索类别包括:统计浏览器的各种搜索类别的使用频率,将使用频率排序靠前的搜索类别作为所述文本元素对应的搜索类别。
- 根据权利要求1所述的方法,其中,获取所述文本元素对应的搜索类别包括:提取所述文本元素中的文本内容;对所述文本内容进行搜索关键词匹配,其中所述搜索关键词为在浏览器侧预置的按照搜索类别分类的词汇;将匹配的搜索关键词对应的搜索类别作为所述文本元素对应的搜索类别。
- 根据权利要求1所述的方法,其中,获取所述文本元素对应的搜索类别包括:获取所述网页的网页信息,所述网页信息以下任意一项或多项:所述网页的统一资源定位符、所述文本元素所属文章的标题、所述文本元素的上下文内容、网页用户的用户标签;根据所述网页信息确定所述文本元素对应的搜索类别。
- 根据权利要求4所述的方法,其中,根据所述网页信息确定所述文本元素对应的搜索类别包括:根据所述网页的统一资源定位符确定所述网页的内容类型,根据所述网页的内容类型结合所述文章的标题和所述上下文内容确定所述文本元素对应的搜索类别。
- 根据权利要求5所述的方法,其中,根据所述网页信息确定所述文本元素对应的搜索类别包括:分别根据所述文本元素的文本内容、所述网页的内容类型、所述用户标签匹配计算得出各自对应的搜索类别;为所述文本内容、所述网页信息、所述用户标签分别设置计算信息权重;将匹配计算得出的搜索类别按照所述信息权重进行加权计算,得出所述文本元素对应的搜索类别。
- 根据权利要求1至6中任一项所述的方法,其中,向与所述搜索类别对应的搜索引擎接口发起搜索请求:对所述文本元素进行分词处理,以得到一个或多个搜索字段;将所述一个或多个搜索字段发送给与所述搜索类别对应的搜索引擎接口。
- 根据权利要求1至7中任一项所述的方法,其中,将所述搜索引擎接口返回的搜索结果在浏览器侧显示包括:在所述网页中生成搜索结果展示浮层,并在所述浮层中加载所述搜索结果。
- 一种浏览器,包括:网页元素获取模块,用于获取网页中选定的网页元素;文本元素获取模块,用于挑选出所述选定的网页元素中的文本元素;分类模块,用于获取所述文本元素对应的搜索类别;搜索模块,用于向与所述搜索类别对应的搜索引擎接口发起搜索请求,并将所述搜索引擎接口返回的搜索结果在浏览器侧显示。
- 根据权利要求9所述的浏览器,其中,所述分类模块被配置为:统计浏览器的各种搜索类别的使用频率,将使用频率排序靠前的搜索类别作为所述文本元素对应的搜索类别。
- 根据权利要求9所述的浏览器,其中,所述分类模块被配置为:提取所述文本元素中的文本内容;对所述文本内容进行搜索关键词匹配,其中所述搜索关键词为在浏览器侧预置的按照搜索类别分类的词汇;将匹配的搜索关键词对应的搜索类别作为所述文本元素对应的搜索类别。
- 根据权利要求9所述的浏览器,其中,所述分类模块包括:网页信息获取子模块,用于获取所述网页的网页信息,所述网页信息以下任意一项或多项:所述网页的统一资源定位符、所述文本元素所属文章的标题、所述文本元素的上下文内容、网页用户的用户标签;类别匹配子模块,用于根据所述网页信息确定所述文本元素对应的搜索类别。
- 根据权利要求12所述的浏览器,其中,所述类别匹配子模块被配置为:根据所述网页的统一资源定位符确定所述网页的内容类型,根据所述网页的内容类型结合所述文章的标题和所述上下文内容确定所述文本元素对应的搜索类别。
- 根据权利要求12所述的浏览器,其中,所述类别匹配子模块被配置为:分别根据所述文本元素的文本内容、所述网页的内容类型、所述用户标签匹配计算得出各自对应的搜索类别;为所述文本内容、所述网页信息、所述用户标签分别设置计算信息权重;将匹配计算得出的搜索类别按照所述信息权重进行加权计算, 得出所述文本元素对应的搜索类别。
- 根据权利要求9至权利要求14中任一项所述的浏览器,其中,所述搜索模块被配置为:对所述文本元素进行分词处理,以得到一个或多个搜索字段;将所述一个或多个搜索字段发送给与所述搜索类别对应的搜索引擎接口;在所述网页中生成搜索结果展示浮层,并在所述浮层中加载所述搜索结果。
- 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1至8中的任一项所述的浏览器侧进行网络搜索的方法。
- 一种计算机可读介质,其中存储了如权利要求16所述的计算机程序。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US15/036,184 US20160267189A1 (en) | 2013-11-15 | 2014-09-24 | Method for performing network search at a browser side and a browser |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310575143.0A CN103631887B (zh) | 2013-11-15 | 2013-11-15 | 浏览器侧进行网络搜索的方法与浏览器 |
CN201310575143.0 | 2013-11-15 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015070673A1 true WO2015070673A1 (zh) | 2015-05-21 |
Family
ID=50212929
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/087294 WO2015070673A1 (zh) | 2013-11-15 | 2014-09-24 | 浏览器侧进行网络搜索的方法与浏览器 |
Country Status (3)
Country | Link |
---|---|
US (1) | US20160267189A1 (zh) |
CN (2) | CN103631887B (zh) |
WO (1) | WO2015070673A1 (zh) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110941500A (zh) * | 2016-08-29 | 2020-03-31 | 阿里巴巴集团控股有限公司 | 一种界面展示方法及装置 |
CN112825076A (zh) * | 2019-11-20 | 2021-05-21 | 北京搜狗科技发展有限公司 | 一种信息推荐方法、装置和电子设备 |
CN117076773A (zh) * | 2023-08-23 | 2023-11-17 | 上海兰桂骐技术发展股份有限公司 | 一种基于互联网信息的数据源筛选优化方法 |
Families Citing this family (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106980700B (zh) * | 2013-11-08 | 2021-04-09 | 北京奇虎科技有限公司 | 在浏览器侧进行网络搜索的方法与浏览器 |
CN103631887B (zh) * | 2013-11-15 | 2017-04-05 | 北京奇虎科技有限公司 | 浏览器侧进行网络搜索的方法与浏览器 |
US9613145B2 (en) | 2014-06-18 | 2017-04-04 | Google Inc. | Generating contextual search presentations |
CN104216979B (zh) * | 2014-09-01 | 2017-12-05 | 西北工业大学 | 中文工艺专利自动分类系统及利用该系统进行专利分类的方法 |
CN105488072B (zh) * | 2014-09-23 | 2019-07-02 | 阿里巴巴集团控股有限公司 | 一种目标库中目标对象选定方法、装置及系统 |
CN104536974B (zh) * | 2014-12-03 | 2018-03-02 | 北京奇虎科技有限公司 | 在浏览器中搜索信息的方法和浏览器客户端 |
CN105786849A (zh) * | 2014-12-22 | 2016-07-20 | 北京奇虎科技有限公司 | 一种文档类网页自定义摘要的生成方法和系统 |
CN105786840A (zh) * | 2014-12-22 | 2016-07-20 | 北京奇虎科技有限公司 | 一种音乐类网页的结构化摘要的显示方法和系统 |
CN104572887A (zh) * | 2014-12-24 | 2015-04-29 | 刘永健 | 一种产品信息的检索方法和系统 |
US10223453B2 (en) * | 2015-02-18 | 2019-03-05 | Ubunifu, LLC | Dynamic search set creation in a search engine |
CN105279248B (zh) * | 2015-09-30 | 2019-05-31 | 北京奇虎科技有限公司 | 一种网页浏览方法及电子设备 |
CN105260434A (zh) * | 2015-09-30 | 2016-01-20 | 北京奇虎科技有限公司 | 一种网页浏览控制方法及电子设备 |
CN106708885A (zh) * | 2015-11-17 | 2017-05-24 | 百度在线网络技术(北京)有限公司 | 一种实现搜索的方法和装置 |
CN107203557A (zh) * | 2016-03-17 | 2017-09-26 | 伊姆西公司 | 用于处理待搜索的对象的方法及装置 |
CN105975480B (zh) * | 2016-04-20 | 2019-06-07 | 广东精点数据科技股份有限公司 | 一种指令识别方法及系统 |
CN107545007A (zh) * | 2016-06-26 | 2018-01-05 | 国网天津市电力公司 | 电力大数据快速检索引擎 |
CN108153769A (zh) * | 2016-12-05 | 2018-06-12 | 天脉聚源(北京)科技有限公司 | 一种网页输入框自动补全提示的方法和系统 |
CN107302584A (zh) * | 2017-07-11 | 2017-10-27 | 上海精数信息科技有限公司 | 一种高效的数据采集方法 |
CN108984674A (zh) * | 2018-07-02 | 2018-12-11 | 上海哔哩哔哩科技有限公司 | 基于选定文字的网站内容搜索方法、装置和存储介质 |
CN111177523A (zh) * | 2018-11-09 | 2020-05-19 | 阿里巴巴集团控股有限公司 | 网页推荐方法、装置、电子设备及计算机可读介质 |
CN111008329A (zh) * | 2019-11-22 | 2020-04-14 | 厦门美柚股份有限公司 | 基于内容分类的页面内容推荐方法及装置 |
CN111355803A (zh) * | 2020-03-04 | 2020-06-30 | 海南金盘智能科技股份有限公司 | 网页的传输方法、客户端和应用服务器 |
CN111523036B (zh) * | 2020-04-24 | 2023-12-19 | 北京百度网讯科技有限公司 | 一种搜索行为挖掘方法、装置和电子设备 |
CN112417322B (zh) * | 2020-12-10 | 2024-03-22 | 长春理工大学 | 一种面向兴趣点名称文本的类型判别方法及系统 |
CN112579871A (zh) * | 2020-12-21 | 2021-03-30 | 维沃移动通信有限公司 | 信息搜索方法、装置和电子设备 |
CN113010072A (zh) * | 2021-04-27 | 2021-06-22 | 维沃移动通信(杭州)有限公司 | 搜索方法、装置、电子设备及可读存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102982177A (zh) * | 2012-12-17 | 2013-03-20 | 北京奇虎科技有限公司 | 一种浏览器中进行搜索的方法和装置 |
CN103164542A (zh) * | 2013-04-15 | 2013-06-19 | 北京奇虎科技有限公司 | 数据搜索的方法及客户端 |
CN103258000A (zh) * | 2013-03-29 | 2013-08-21 | 北界创想(北京)软件有限公司 | 对网页中高频关键词进行聚类的方法及装置 |
CN103631887A (zh) * | 2013-11-15 | 2014-03-12 | 北京奇虎科技有限公司 | 浏览器侧进行网络搜索的方法与浏览器 |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7643822B2 (en) * | 2004-09-30 | 2010-01-05 | Google Inc. | Method and system for processing queries initiated by users of mobile devices |
CN101266608A (zh) * | 2008-05-09 | 2008-09-17 | 魏新成 | 对电脑屏幕上显示的文本字符串进行在线搜索的方法 |
CN101751437A (zh) * | 2008-12-17 | 2010-06-23 | 中国科学院自动化研究所 | 基于强化学习的网页页面主动式检索系统 |
CN101788981A (zh) * | 2009-01-24 | 2010-07-28 | 华为技术有限公司 | 一种深层网移动搜索方法、服务器及系统 |
CN102073746A (zh) * | 2011-02-15 | 2011-05-25 | 魏新成 | 通过微搜操作在微窗中显示微搜结果网页的方法 |
CN102436495A (zh) * | 2011-11-14 | 2012-05-02 | 百度在线网络技术(北京)有限公司 | 一种提供动态搜索页面的方法及其装置 |
CN103294681B (zh) * | 2012-02-23 | 2017-02-08 | 北京百度网讯科技有限公司 | 一种搜索结果的生成方法和装置 |
CN102945243B (zh) * | 2012-09-20 | 2018-05-04 | 百度在线网络技术(北京)有限公司 | 一种基于浏览内容的联系信息识别方法 |
CN102999619A (zh) * | 2012-11-30 | 2013-03-27 | 北京奇虎科技有限公司 | 实现搜索的移动终端、服务器和方法 |
CN102982156A (zh) * | 2012-11-30 | 2013-03-20 | 北京奇虎科技有限公司 | 移动终端中实现搜索的系统和方法 |
CN103064945B (zh) * | 2012-12-26 | 2016-01-06 | 吉林大学 | 基于本体的情境搜索方法 |
-
2013
- 2013-11-15 CN CN201310575143.0A patent/CN103631887B/zh not_active Expired - Fee Related
- 2013-11-15 CN CN201710056661.XA patent/CN106933959A/zh active Pending
-
2014
- 2014-09-24 US US15/036,184 patent/US20160267189A1/en not_active Abandoned
- 2014-09-24 WO PCT/CN2014/087294 patent/WO2015070673A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102982177A (zh) * | 2012-12-17 | 2013-03-20 | 北京奇虎科技有限公司 | 一种浏览器中进行搜索的方法和装置 |
CN103258000A (zh) * | 2013-03-29 | 2013-08-21 | 北界创想(北京)软件有限公司 | 对网页中高频关键词进行聚类的方法及装置 |
CN103164542A (zh) * | 2013-04-15 | 2013-06-19 | 北京奇虎科技有限公司 | 数据搜索的方法及客户端 |
CN103631887A (zh) * | 2013-11-15 | 2014-03-12 | 北京奇虎科技有限公司 | 浏览器侧进行网络搜索的方法与浏览器 |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110941500A (zh) * | 2016-08-29 | 2020-03-31 | 阿里巴巴集团控股有限公司 | 一种界面展示方法及装置 |
CN110941500B (zh) * | 2016-08-29 | 2023-05-09 | 创新先进技术有限公司 | 一种界面展示方法及装置 |
CN112825076A (zh) * | 2019-11-20 | 2021-05-21 | 北京搜狗科技发展有限公司 | 一种信息推荐方法、装置和电子设备 |
CN112825076B (zh) * | 2019-11-20 | 2024-03-01 | 北京搜狗科技发展有限公司 | 一种信息推荐方法、装置和电子设备 |
CN117076773A (zh) * | 2023-08-23 | 2023-11-17 | 上海兰桂骐技术发展股份有限公司 | 一种基于互联网信息的数据源筛选优化方法 |
CN117076773B (zh) * | 2023-08-23 | 2024-05-28 | 上海兰桂骐技术发展股份有限公司 | 一种基于互联网信息的数据源筛选优化方法 |
Also Published As
Publication number | Publication date |
---|---|
CN106933959A (zh) | 2017-07-07 |
CN103631887B (zh) | 2017-04-05 |
US20160267189A1 (en) | 2016-09-15 |
CN103631887A (zh) | 2014-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2015070673A1 (zh) | 浏览器侧进行网络搜索的方法与浏览器 | |
WO2015067103A1 (zh) | 在浏览器侧进行网络搜索的方法与浏览器 | |
CN108804532B (zh) | 一种查询意图的挖掘和查询意图的识别方法、装置 | |
US10140368B2 (en) | Method and apparatus for generating a recommendation page | |
JP5736469B2 (ja) | ユーザ意図の有無に基づく検索キーワードの推薦 | |
JP6554685B2 (ja) | 検索結果を提供するための方法及び装置 | |
KR101994987B1 (ko) | 관련 엔티티들 | |
US10489448B2 (en) | Method and system for dynamically ranking images to be matched with content in response to a search query | |
US20190018900A1 (en) | Method and Apparatus for Displaying Search Results | |
JP5984917B2 (ja) | 提案される語を提供するための方法および装置 | |
US20170255652A1 (en) | Method for dynamically matching images with content items based on keywords in response to search queries | |
KR102249436B1 (ko) | 지식 패널들을 컨텍스트화 | |
JP6646931B2 (ja) | 推薦情報を提供するための方法および装置 | |
US20140019460A1 (en) | Targeted search suggestions | |
US20130212089A1 (en) | Search Result Categorization | |
CN108090111B (zh) | 用于搜索结果的动画摘录 | |
US9639627B2 (en) | Method to search a task-based web interaction | |
US20150310116A1 (en) | Providing search results corresponding to displayed content | |
US8880536B1 (en) | Providing book information in response to queries | |
US20180011876A1 (en) | Method and system for multi-dimensional image matching with content in response to a search query | |
CN102855256A (zh) | 用于确定网站评价信息的方法、装置及设备 | |
JP2017535860A (ja) | マルチメディア内容の提供方法および装置 | |
US9251262B1 (en) | Identifying media queries | |
CN107491465B (zh) | 用于搜索内容的方法和装置以及数据处理系统 | |
US9424353B2 (en) | Related entities |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14862176 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 15036184 Country of ref document: US |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 14862176 Country of ref document: EP Kind code of ref document: A1 |