CN110069667B - Searching method, searching device and searching device - Google Patents

Searching method, searching device and searching device Download PDF

Info

Publication number
CN110069667B
CN110069667B CN201711071244.9A CN201711071244A CN110069667B CN 110069667 B CN110069667 B CN 110069667B CN 201711071244 A CN201711071244 A CN 201711071244A CN 110069667 B CN110069667 B CN 110069667B
Authority
CN
China
Prior art keywords
keyword
page content
local
searching
matched
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
CN201711071244.9A
Other languages
Chinese (zh)
Other versions
CN110069667A (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 CN201711071244.9A priority Critical patent/CN110069667B/en
Publication of CN110069667A publication Critical patent/CN110069667A/en
Application granted granted Critical
Publication of CN110069667B publication Critical patent/CN110069667B/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/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/83Querying
    • G06F16/835Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/83Querying
    • G06F16/838Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9562Bookmark management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a searching method, a searching device and a searching device, wherein the method comprises the following steps: responding to the collection operation of the online webpage, and storing the page content of the online webpage to the local; responding to an input keyword, and searching local page content matched with the keyword; and displaying the searched local page content as a search result. By adopting the embodiment of the application, the content of the webpage which is collected by the user can be retrieved by establishing the mapping relation between the content of the webpage and the keyword, so that the webpage which is stored by the user can be quickly and accurately searched, and the experience of searching the collected webpage by the user is improved.

Description

Searching method, searching device and searching device
Technical Field
The present application relates to the field of search technologies, and in particular, to a search method, a search device, and a search device.
Background
At present, when a user browses a web page, if the user likes a certain web page or wants to learn the content of a certain web page, the user can correspondingly collect the link and title of the web page in a local favorite through a collection function. When the user wants to browse the webpage next time, the corresponding link can be clicked directly through the title of each webpage in the favorite, and the webpage browsing content is opened.
However, in the process of implementing the present invention, the inventor finds that when a user collects a web page, only links, titles, etc. of the web page are generally saved, and some users need to search for a web page that they need to view from a large number of web page titles when needing to search for the content of a related web page because the web page is collected too much, thereby consuming a large amount of time to find a target web page. In addition, if the titles of the web pages are similar, the user may open the web pages with similar titles by mistake, or if the collected web pages are invalid or web pages are disconnected, the user cannot open the collected web pages normally, so that unnecessary interaction is generated, and the experience of the user in the favorite is reduced.
Disclosure of Invention
Based on the search scheme, even under the condition that the webpage is invalid or disconnected, the user can browse the contents of the collected webpages directly through the local webpage contents stored locally, and when the user inputs keywords, the user can be provided with the local webpage contents of the webpages related to the keywords input by the user. Therefore, the content of the webpage collected by the user can be retrieved by establishing the mapping relation between the content of the webpage and the keyword, so that the webpage saved by the user can be quickly and accurately searched, and the experience of the user in searching the collected webpage is improved.
The application also provides a searching device for ensuring the realization and the application of the method in practice.
The application provides a search method, which comprises the following steps:
responding to the collection operation of the online webpage, and storing the page content of the online webpage to the local;
responding to an input keyword, and searching local page content matched with the keyword;
and displaying the searched local page content as a search result.
Wherein the searching for local page content matching the keyword in response to the input keyword comprises:
responding to an input keyword, and judging whether a mapping relation matched with the keyword and established in advance exists or not, wherein the mapping relation is used for representing the corresponding relation between the keyword and the local page content;
and if the mapping relation matched with the keyword and established in advance exists, determining the page content in the mapping relation as the local page content matched with the keyword.
Wherein, if there is no mapping relation matched with the keyword and pre-established, the method further comprises:
searching for a substitute word of the keyword, and judging whether a pre-established mapping relation matched with the substitute word exists or not; the alternative words include: synonyms or approximations;
And if the mapping relation matched with the substitute word and established in advance exists, determining the page content in the mapping relation as the local page content matched with the keyword.
After the page content of the online webpage is stored locally, the method further comprises the following steps:
monitoring whether the page content of the online webpage is updated or not, and if the page content of the online webpage is updated, replacing the stored local page content with the updated page content, or correspondingly storing the updated page content and the local page content.
Wherein the method may further comprise:
and searching the webpage matched with the keyword in real time through the Internet, and displaying the search result.
Wherein, the displaying the searched local page content as the search result comprises:
obtaining the correlation of the searched local page content;
and respectively showing the local page contents as search result items according to the sequence of the relevance from large to small.
The application also discloses a search device, includes:
the storage unit is used for responding to the collection operation of the online webpage and storing the page content of the online webpage to the local;
The search unit is used for responding to an input keyword and searching local page content matched with the keyword;
and the display unit is used for displaying the searched local page content as a search result.
Wherein the search unit includes:
the judging subunit is used for responding to the input keyword, judging whether a mapping relation matched with the keyword and established in advance exists or not, wherein the mapping relation is used for expressing the corresponding relation between the keyword and the local page content;
and the determining subunit is used for determining the page content in the mapping relation as the local page content matched with the keyword if the mapping relation matched with the keyword and established in advance exists.
Wherein, if there is no pre-established mapping relation matching the keyword, the apparatus may further include:
the searching unit is used for searching for the alternative words of the key words;
the judging unit is used for judging whether a mapping relation which is matched with the substitutive words and is established in advance exists or not; the alternative words include: synonyms or approximations;
and the determining unit is used for determining the page content in the mapping relation as the local page content matched with the keyword if the mapping relation which is matched with the substitute word and is established in advance exists.
After the page content of the online webpage is saved locally, the apparatus may further include:
the monitoring unit is used for monitoring whether the page content of the online webpage generates an update or not, and if the page content of the online webpage generates an update;
and the updating unit is used for replacing the stored local page content with the updated page content, or correspondingly storing the updated page content and the local page content.
Wherein the apparatus may further comprise:
and the second searching unit is used for searching the webpage matched with the keyword in real time through the Internet and displaying the searching result.
Wherein the presentation unit may include:
the acquisition subunit is used for acquiring the correlation of the searched local page content; and the display subunit is used for respectively displaying the local page contents as search result items according to the sequence of the relevance from large to small.
The application also discloses an apparatus for 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 the one or more processors, the one or more programs including instructions for:
Responding to the collection operation of the online webpage, and storing the page content of the online webpage to the local;
responding to an input keyword, and searching local page content matched with the keyword;
and displaying the searched local page content as a search result.
The present application also discloses a computer readable medium having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform a search method as described above.
In the embodiment of the application, even under the condition that the webpage is invalid or disconnected, the user can browse the content of the collected webpage directly through the locally stored local page content, and when the user inputs the keyword, the local page content of the webpage related to the keyword input by the user can be provided for the user, so that the content of the webpage collected by the user can be retrieved by establishing the mapping relation between the content of the webpage and the keyword, the webpage stored by the user can be quickly and accurately searched, and the experience of the user in searching the collected webpage is improved.
In addition, even if the keyword and its substitute word input by the user are retrieved at the same time locally, the content of the local page matching the keyword may not be searched, which may be that the user does not collect the web page related to the keyword. By the method, the searching effectiveness is improved, even if the user does not collect related webpages, the searching result can be provided for the user on line, and the searching experience of the user is further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a flow chart of a search method embodiment of the present application;
FIG. 2 is a block diagram of a search apparatus according to an embodiment of the present application;
fig. 3 is a block diagram illustrating an apparatus 800 for searching according to an example embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
The application is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
Referring to fig. 1, a flowchart of an embodiment of a search method according to the present application is shown, where the embodiment may be applied to an application program such as a browser that can open a web page and display the web page to a user, and the embodiment may include the following steps:
step 101: and responding to the collection operation of the online webpage, and saving the page content of the online webpage to the local.
In this embodiment, when a user browses a web page through the internet, if the user triggers a collection operation of a certain web page, for example, triggers a collection operation of a web page with a title "singer a issues a new album", taking application to a browser as an example, the browser stores a link and a title of the web page in correspondence, and the browser stores content currently displayed on the web page locally, for example, the browser corresponds to a storage location in a hard disk. When the content currently displayed on the web page is stored locally, the web page snapshot may be stored by capturing the web page snapshot, or the web page content may be stored locally as an XML (extensible Markup Language) file or an HTML (HyperText Markup Language) file, and the specific storage method is not limited as long as the web page content during collection can be restored according to the locally stored content.
It can be understood that after the step 101 is executed to save the page content of the online webpage to the local, because the local saving is only the page content when the user browses the webpage online, and for different webpages, the online content of the webpage may be updated over time due to the update of news or user comments, for example, for a web portal, the news may change, and the like.
Therefore, after step 101, the browser may also monitor whether the web page that stores the web page content is online and generates an update on the content, and if the web page content is updated online, the browser may replace the stored local page content with the updated online page content, so that the updated online page content may be provided to the user later; or the updated page content and the local page content are correspondingly stored, so that the local page content and the updated page content can be provided for the user in the following; or, the local page content may not be replaced, and the originally stored local page content is still provided to the user subsequently. In addition, if it is not monitored that the webpage is updated online, real-time or timed judgment can be continued, the real-time judgment can make the locally stored webpage content more timely, and the period of the timed judgment can be preset by a person skilled in the art, for example, the period of the timed judgment is judged once every other day, and the implementation of the embodiment of the application is not affected by the size of the period of the timed judgment.
Step 102: and responding to the input keywords, and searching local page content matched with the keywords.
In this embodiment, the keywords may be extracted based on locally stored local page content, for example, a title of the web page, content of the web page, and the like, so that a mapping relationship between the keywords and the local page content of the web page is established by using the keywords extracted from each web page. In practical applications, a person skilled in the art may only extract keywords from the local page content, so as to establish a mapping relationship between each keyword and each local page content, and certainly, may also extract keywords of the local page content and the title of the web page at the same time to establish a mapping relationship.
In practical application, the browser may provide an input box, where the input box may be used to input, as a keyword, content that a user desires to search for when the user desires to search for a locally-collected web page in a search manner, and the browser may search for, as a search term, content of each local page of each web page that is locally stored by using the keyword input by the user as the search term, and search for content of the local page that matches the keyword input by the user. Of course, when the keyword extraction is performed on the title of the web page in advance to establish the mapping relationship, the browser may search from the local page content and the title of the web page at the same time.
Certainly, the keywords input by the user are not only searched in the favorites, but also submitted to the search engine to search the results online in real time, and meanwhile, the local page content is searched in the locally collected web pages, and the online search results and the searched local page content are provided to the user as search results.
Thus, step 102, when implemented, may include the steps of:
step A1: responding to an input keyword, and judging whether a mapping relation matched with the keyword and established in advance exists or not; if so, step A2 is entered, and if not, step A3 is entered.
Based on a mapping relationship pre-established by the browser, the mapping relationship is used for representing the corresponding relationship between the keywords and the local page content, or the mapping relationship can also represent the corresponding relationship between the keywords and the local page content and the title, and the browser judges whether the mapping relationship matched with the keywords input by the user exists.
For example, the user has collected a web page introducing the "deep learning LSTM (Long Short-Term Memory network) model" and the content of the web page has been saved locally through step 101. And the user can input 'deep learning LSTM' as a key word in an input box provided by the browser because of too many web pages in the favorite or hope to quickly browse the local page content of the web page, and the key word is submitted to the browser for searching so that the browser can search whether the mapping relation matched with the 'deep learning LSTM' exists or not.
Step A2: and determining the page content in the mapping relation as the local page content matched with the keyword.
If the local page content exists, the local page content corresponding to the keyword input by the user exists, and the page content in the mapping relation can be determined as the local page content matched with the keyword input by the user. For example, the page content in the mapping relationship matching the "deep learning LSTM" is the local page content matching the keyword "deep learning LSTM" retrieved this time. Of course, there may be a plurality of existing mapping relationships, and the page contents in the plurality of mapping relationships may all be used as a plurality of local page contents matched with the keyword.
Step A3: and searching for the substitute word of the keyword, judging whether a mapping relation which is matched with the substitute word and is established in advance exists, and if so, entering the step A4.
If the mapping relation matched with the keyword input by the user cannot be found in the local page content stored locally, the substitute word of the keyword, namely the similar word or the synonym of the keyword, can be searched online through the Internet, and whether the mapping relation matched with the substitute word exists or not is searched locally. For example, if the user inputs "LSTM" and does not retrieve the corresponding mapping relationship, the user may search online for synonyms of "LSTM", such as "Long and Short Term Memory network" or "Long Short-Term Memory", and then search whether there is a mapping relationship matching the substitute word "Long and Short Term Memory network" or "Long Short-Term Memory".
Of course, a mapping relationship between the keyword and the corresponding alternative word may be pre-established, or a relationship table between the keyword and the alternative word thereof may be locally stored, and then whether the keyword has the alternative word may also be determined by querying the mapping relationship or the relationship table.
Step A4: and determining the page content in the mapping relation as the local page content matched with the keyword.
Then, the page content in the mapping relation matching the substitute word can be determined as the local page content matching the keyword. In some cases, because the local page content may be a web page introducing LSTM, but the local page content only includes "Long Short Term Memory network" or "Long Short-Term Memory" and does not include "LSTM", the user inputs "LSTM" and cannot retrieve the matched local page content, so if a result matching the keyword is not retrieved locally, if a substitute word of the keyword input by the user is also added to the search, missed detection is avoided as much as possible, and the accuracy of the search is improved.
It is understood that, step 101 and step 102 may be executed simultaneously or step 102 is executed first and then step 101 is executed, and in practical applications, step 101 or step 102 is selected to be executed according to whether the user collects online web pages or inputs keywords for searching. When the user collects the online web pages, step 101 may be performed to save the page contents of the online web pages to the local, and when the user inputs a keyword search, step 102 may be performed to search for local page contents matching the keyword.
Step 103: and displaying the searched local page content as a search result.
In this step, the local page content searched in step 102 is displayed as a search result, and the web page can be directly displayed on the browser under the condition that only one local page content exists; when there are multiple local page contents, the multiple local page contents may be respectively presented as search result items according to the relevance of each local page content.
Specifically, the relevance of each local page content with respect to a certain keyword may be calculated in advance according to parameters such as the number of times of keywords appearing in the local page content, the authority of a web page source, and the like, and the relevance is stored locally in correspondence with the keywords and the corresponding relationship between the local page content, and then when a search result needs to be displayed, the relevance of each searched local page content is obtained first, and then each local page content is displayed to the user as a search result item according to the sequence of the relevance from large to small.
Therefore, in the embodiment of the application, even if the webpage is invalid or disconnected, the user can browse the content of the collected webpage directly through the locally stored local page content, and when the user inputs the keyword, the local page content of the webpage related to the keyword input by the user can be provided for the user.
In practical applications, even if the keyword and its alternative word input by the user are retrieved locally and simultaneously, the local page content matching the keyword may not be searched, which may be that the user does not collect the web page related to the keyword, or the local page content may be searched, in order to provide the local page content and the online search result to the user simultaneously, the web page matching the keyword input by the user may be searched in real time through the accessed internet, and the search result is displayed to the user. By the method, the searching effectiveness is improved, even if the user does not collect related webpages, the user can be provided with the online searching result, or the online searching result and the local webpage content are provided for the user, and the searching experience of the user is further improved.
For simplicity of explanation, the foregoing method embodiments are described as a series of acts or combinations, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may occur in other orders or concurrently with other steps based on the disclosure herein. Further, those skilled in the art will recognize that the embodiments described in this specification are preferred embodiments and that acts or modules referred to are not necessarily required for this application.
Corresponding to the method provided by the above-mentioned embodiment of a search method in the present application, referring to fig. 2, the present application further provides an embodiment of a search apparatus, and in this embodiment, the apparatus may include:
the saving unit 201 is configured to respond to a collection operation of an online webpage, and save page content of the online webpage to a local area.
The first search unit 202 is configured to search for local page content matching the keyword in response to the input keyword.
And the presentation unit 203 is configured to present the searched content of the local page as a search result.
Wherein the search unit 202 may include:
the system comprises a judging subunit, a processing unit and a display unit, wherein the judging subunit is used for responding to an input keyword, judging whether a mapping relation matched with the keyword and established in advance exists or not, and the mapping relation is used for representing the corresponding relation between the keyword and the content of a local page; and the determining subunit is used for determining the page content in the mapping relation as the local page content matched with the keyword if the mapping relation matched with the keyword and established in advance exists.
Wherein, if there is no pre-established mapping relation matching the keyword, the apparatus may further include:
The searching unit is used for searching for the alternative words of the key words;
the judging unit is used for judging whether a mapping relation which is matched with the substitutive words and is established in advance exists or not; the alternative words include: synonyms or approximations;
and the determining unit is used for determining the page content in the mapping relation as the local page content matched with the keyword if the mapping relation matched with the substitute word and established in advance exists.
After the page content of the online webpage is saved locally, the apparatus may further include:
the monitoring unit is used for monitoring whether the page content of the online webpage generates an update or not, and if the page content of the online webpage generates an update;
and the updating unit is used for replacing the stored local page content with the updated page content, or correspondingly storing the updated page content and the local page content.
Wherein the apparatus may further comprise:
and the second searching unit is used for searching the webpage matched with the keyword in real time through the Internet and displaying the searching result.
The display unit 203 may specifically include:
the acquisition subunit is used for acquiring the correlation of the searched local page content; and the display subunit is used for respectively displaying the local page contents as search result items according to the sequence of the relevance from large to small.
Therefore, in the embodiment of the application, even if the webpage is invalid or disconnected, the user can browse the content of the collected webpage directly through the locally stored local page content, and when the user inputs the keyword, the local page content of the webpage related to the keyword input by the user can be provided for the user.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 3 is a block diagram illustrating a search apparatus 800 according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 3, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communications component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the 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 having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a search method, the method comprising: responding to the collection operation of the online webpage, and storing the page content of the online webpage to the local; responding to an input keyword, and searching local page content matched with the keyword; and displaying the searched local page content as a search result.
Wherein, the searching for the local page content matched with the keyword in response to the input keyword may include:
responding to an input keyword, judging whether a mapping relation matched with the keyword and established in advance exists or not, wherein the mapping relation is used for representing the corresponding relation between the keyword and the local page content;
and if the mapping relation matched with the keyword and established in advance exists, determining the page content in the mapping relation as the local page content matched with the keyword.
Wherein, if there is no mapping relation matched with the keyword and established in advance, the method further comprises:
searching for a substitute word of the keyword, and judging whether a pre-established mapping relation matched with the substitute word exists or not; the alternative words include: synonyms or approximations;
And if the mapping relation which is matched with the substitute word and is established in advance exists, determining the page content in the mapping relation as the local page content matched with the keyword.
After the page content of the online webpage is saved locally, the method may further include:
monitoring whether the page content of the online webpage is updated, and if the page content of the online webpage is updated, replacing the stored local page content with the updated page content, or storing the updated page content in correspondence with the local page content.
Wherein, can also include:
and searching the webpage matched with the keyword in real time through the Internet, and displaying the search result.
Wherein, the displaying the searched local page content as the search result may include:
obtaining the correlation of the searched local page content;
and respectively displaying the local page contents as search result items according to the sequence of the relevance from large to small.
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 only limited by the appended claims
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and should not be taken as limiting the scope of the present invention, which is intended to cover any modifications, equivalents, improvements, etc. within the spirit and scope of the present invention.

Claims (8)

1. A method for searching local page content in a locally-collected web page, comprising:
responding to the collection operation of the online webpage, and storing the page content of the online webpage to the local;
responding to an input keyword, and searching local page content matched with the keyword or a substitute word of the keyword; the alternative words include: synonyms or approximations;
acquiring the relevance of the searched local page content;
according to the sequence of the relevance from big to small, the contents of the local page are respectively displayed as search result items;
the searching for the local page content matched with the keyword or the substitute word of the keyword in response to the input keyword comprises:
Responding to a keyword or a substitute word of the keyword input in an input box, judging whether a pre-established mapping relation matched with the keyword or the substitute word of the keyword exists or not, wherein the mapping relation is used for representing the corresponding relation between the keyword and local page content, and the input box is used for searching local webpage content collected locally;
and if a pre-established mapping relation matched with the keyword or the substitute word of the keyword exists, determining the page content in the mapping relation as the local page content matched with the keyword.
2. The method of claim 1, further comprising, after saving the page content of the online web page locally:
monitoring whether the page content of the online webpage is updated or not, and if the page content of the online webpage is updated, replacing the stored local page content with the updated page content, or correspondingly storing the updated page content and the local page content.
3. The method of claim 1, further comprising:
and searching the webpage matched with the keyword in real time through the Internet, and displaying the search result.
4. A search apparatus, comprising:
the storage unit is used for responding to the collection operation of the online webpage and storing the page content of the online webpage to the local;
the search unit is used for responding to an input keyword and searching local page content matched with the keyword or a substitute word of the keyword; the alternative words include: synonyms or approximations;
the display unit is used for acquiring the relevance of the searched local page content; according to the sequence of the relevance from big to small, the contents of the local page are respectively displayed as search result items;
the search unit includes:
the system comprises a judging subunit, a searching unit and a display unit, wherein the judging subunit is used for responding to a keyword input in an input box, judging whether a mapping relation matched with the keyword and established in advance exists or not, the mapping relation is used for representing a corresponding relation between the keyword and local page content, and the input box is used for searching local webpage content collected locally;
a determining subunit, configured to determine, if a mapping relationship that is matched with the keyword and is established in advance exists, a page content in the mapping relationship as a local page content matched with the keyword; or the like, or, alternatively,
The search unit includes:
the searching unit is used for searching the alternative words of the key words;
the judging unit is used for judging whether a pre-established mapping relation matched with the substitutive words exists or not;
and the determining unit is used for determining the page content in the mapping relation as the local page content matched with the keyword if the mapping relation matched with the substitute word and established in advance exists.
5. The apparatus of claim 4, wherein after the page content of the online web page is saved locally, the apparatus further comprises:
the monitoring unit is used for monitoring whether the page content of the online webpage generates update or not, and if the page content of the online webpage generates update;
and the updating unit is used for replacing the stored local page content with the updated page content, or correspondingly storing the updated page content and the local page content.
6. The apparatus of claim 4, further comprising:
and the second searching unit is used for searching the webpage matched with the keyword in real time through the Internet and displaying the searching result.
7. An apparatus for searching, comprising a memory, and one or more programs for finding local page content in locally-hosted web pages, wherein the one or more programs are stored in the memory and configured for execution by one or more processors to include instructions for:
responding to the collection operation of the online webpage, and storing the page content of the online webpage to the local;
responding to an input keyword, and searching local page content matched with the keyword or a substitute word of the keyword; the alternative words include: synonyms or approximations;
acquiring the relevance of the searched local page content;
according to the sequence of the relevance from big to small, the contents of the local page are respectively displayed as search result items;
the searching for the local page content matched with the keyword or the substitute word of the keyword in response to the input keyword comprises:
responding to a keyword or a substitute word of the keyword input in an input box, judging whether a pre-established mapping relation matched with the keyword or the substitute word of the keyword exists or not, wherein the mapping relation is used for representing the corresponding relation between the keyword and local page content, and the input box is used for searching local webpage content collected locally;
And if a pre-established mapping relation matched with the keyword or the substitute word of the keyword exists, determining the page content in the mapping relation as the local page content matched with the keyword.
8. A computer-readable medium having stored thereon instructions, which, when executed by one or more processors, cause an apparatus to perform a search method as recited in one or more of claims 1-3.
CN201711071244.9A 2017-11-03 2017-11-03 Searching method, searching device and searching device Active CN110069667B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711071244.9A CN110069667B (en) 2017-11-03 2017-11-03 Searching method, searching device and searching device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711071244.9A CN110069667B (en) 2017-11-03 2017-11-03 Searching method, searching device and searching device

Publications (2)

Publication Number Publication Date
CN110069667A CN110069667A (en) 2019-07-30
CN110069667B true CN110069667B (en) 2022-07-19

Family

ID=67364520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711071244.9A Active CN110069667B (en) 2017-11-03 2017-11-03 Searching method, searching device and searching device

Country Status (1)

Country Link
CN (1) CN110069667B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1912869A (en) * 2005-08-11 2007-02-14 腾讯科技(深圳)有限公司 Implementing method of network profile
CN102831186A (en) * 2012-08-02 2012-12-19 深圳市同洲电子股份有限公司 Method and device for storing and searching webpage
CN102945259A (en) * 2012-10-18 2013-02-27 北京奇虎科技有限公司 Searching method and device based on favorites
CN102982118A (en) * 2012-11-09 2013-03-20 北京奇虎科技有限公司 Searching method and device based on favorites
CN103246746A (en) * 2013-05-23 2013-08-14 百度在线网络技术(北京)有限公司 Method, device and system for searching information

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040026167A (en) * 2002-09-23 2004-03-30 인터내셔널 비지네스 머신즈 코포레이션 Method and Apparatus for providing an advertisement based on an URL and/or search keyword input by a user
US9690804B2 (en) * 2010-05-28 2017-06-27 Rakuten, Inc. Information processing device, information processing method, information processing program, and recording medium
CN103744853B (en) * 2013-11-08 2017-10-17 北京奇虎科技有限公司 The method and device of Research of Search Engine Website Snapshot System information is provided
CN104391978B (en) * 2014-12-05 2018-05-15 北京国双科技有限公司 Web page storage processing method and processing device for browser
CN106156193A (en) * 2015-04-22 2016-11-23 阿里巴巴集团控股有限公司 Search and the collection method of network address, browser, server and system
CN106886540B (en) * 2015-12-16 2020-08-28 北京搜狗科技发展有限公司 Data searching method and device for data searching
CN106886541B (en) * 2015-12-16 2020-06-30 北京搜狗科技发展有限公司 Data searching method and device for data searching
CN106844484B (en) * 2016-12-23 2020-08-28 北京安云世纪科技有限公司 Information searching method and device and mobile terminal
CN107229705A (en) * 2017-05-25 2017-10-03 北京小米移动软件有限公司 Information resources lookup method, device and computer-readable recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1912869A (en) * 2005-08-11 2007-02-14 腾讯科技(深圳)有限公司 Implementing method of network profile
CN102831186A (en) * 2012-08-02 2012-12-19 深圳市同洲电子股份有限公司 Method and device for storing and searching webpage
CN102945259A (en) * 2012-10-18 2013-02-27 北京奇虎科技有限公司 Searching method and device based on favorites
CN102982118A (en) * 2012-11-09 2013-03-20 北京奇虎科技有限公司 Searching method and device based on favorites
CN103246746A (en) * 2013-05-23 2013-08-14 百度在线网络技术(北京)有限公司 Method, device and system for searching information

Also Published As

Publication number Publication date
CN110069667A (en) 2019-07-30

Similar Documents

Publication Publication Date Title
CN107329743B (en) Application page display method and device and storage medium
US20180046625A1 (en) Information retrieval method, eletronic device and storage medium
US11216525B2 (en) Information resource collection method, device, and computer-readable storage medium
CN107958042B (en) Target topic pushing method and mobile terminal
CN103914523A (en) Page rollback controlling method and page rollback controlling device
CN110688527A (en) Video recommendation method and device, storage medium and electronic equipment
CN106896991B (en) Method and device for updating information
KR101626874B1 (en) Mobile terminal and method for transmitting contents thereof
CN110989847B (en) Information recommendation method, device, terminal equipment and storage medium
CN117390330A (en) Webpage access method and device
CN106815291B (en) Search result item display method and device and search result item display device
CN104111979A (en) Search recommendation method and device
CN103970841A (en) Label management method and device
CN111382339A (en) Search processing method and device and search processing device
CN111708943A (en) Search result display method and device and search result display device
CN107045541A (en) data display method and device
KR101777035B1 (en) Method and device for filtering address, program and recording medium
CN107870721B (en) Search result display method and device for search result display
CN107784037B (en) Information processing method and device, and device for information processing
CN110020082B (en) Searching method and device
CN110069667B (en) Searching method, searching device and searching device
CN112052395B (en) Data processing method and device
CN113918661A (en) Knowledge graph generation method and device and electronic equipment
CN104376030B (en) The method and apparatus of browser bookmark intelligent packet
CN110147426B (en) Method for determining classification label of query text and related device

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