[go: up one dir, main page]

CN110020082B - Searching method and device - Google Patents

Searching method and device Download PDF

Info

Publication number
CN110020082B
CN110020082B CN201711308330.7A CN201711308330A CN110020082B CN 110020082 B CN110020082 B CN 110020082B CN 201711308330 A CN201711308330 A CN 201711308330A CN 110020082 B CN110020082 B CN 110020082B
Authority
CN
China
Prior art keywords
search
search result
local
network
outputting
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
CN201711308330.7A
Other languages
Chinese (zh)
Other versions
CN110020082A (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 CN201711308330.7A priority Critical patent/CN110020082B/en
Publication of CN110020082A publication Critical patent/CN110020082A/en
Application granted granted Critical
Publication of CN110020082B publication Critical patent/CN110020082B/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/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • 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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a searching method, which comprises the following steps: acquiring a search keyword input by a user; based on the search keywords, carrying out local search on the terminal equipment locally and carrying out network search on the network; and outputting a final search result according to the local search and the network search. The invention solves or partially solves the technical problem that the searching method in the prior art is difficult to meet the searching requirement of the user, and realizes the technical effect of meeting the user requirement to a greater extent. Meanwhile, the invention also discloses a searching device.

Description

Searching method and device
Technical Field
The invention relates to the technical field of internet, in particular to a searching method and a searching device.
Background
With the continuous development of internet technology, users can conveniently search various information through a search engine. For example, the user can input an arbitrary search keyword in the search box, thereby easily obtaining information related to the search keyword through the search engine.
At present, the amount of information on the network is huge, a large amount of information is newly increased every day, and a user usually searches a large amount of related information when searching, but the information is really useful for the user and possibly few, and the requirement of the user is difficult to meet.
Disclosure of Invention
The embodiment of the invention provides a searching method and a searching device, solves or partially solves the technical problem that the searching method in the prior art is difficult to meet the searching requirement of a user, and achieves the technical effect of meeting the user requirement to a greater extent.
In a first aspect, the present invention provides the following technical solutions through an embodiment of the present invention:
a search method, comprising:
acquiring a search keyword input by a user;
based on the search keywords, carrying out local search on the terminal equipment locally and carrying out network search on the network;
and outputting a final search result according to the local search and the network search.
Preferably, the outputting a final search result according to the local search and the web search includes:
obtaining a local search result according to the local search;
extracting key information from the local search results;
taking the key information and the search keywords as new search keywords together, and performing the network search to obtain a network search result;
and outputting the network search result as the final search result.
Preferably, the outputting a final search result according to the local search and the web search includes:
obtaining a local search result according to the local search, and obtaining a network search result according to the network search;
and integrating the local search result and the network search result, and outputting the integrated search result as the final search result.
Preferably, the integrating the local search result and the network search result includes:
integrating the local search result and the network search result in a mixed sorting mode to obtain the integrated search result; or
And inserting the local search result into one of the network search results to obtain the integrated search result.
Preferably, the outputting a final search result according to the local search and the web search includes:
obtaining a local search result according to the local search, and obtaining a network search result according to the network search;
and screening the network search results based on the local search results, and outputting the screened network search results as the final search results.
Preferably, the obtaining a local search result according to the local search includes:
and searching in communication information, or an address list, or a picture database, or public platform information, or an instant communication system which is locally stored in the terminal equipment based on the search keyword to obtain a local search result matched with the search keyword.
Preferably, the outputting the final search result includes:
and outputting the final search result in a pop-up window mode.
Preferably, after the outputting the integrated search result as the final search result, the method further includes:
when the user carries out network search, outputting first identification information in a first display area corresponding to the local search result, wherein the first identification information is used for indicating that the local search result is from the local terminal equipment; or
And when the user carries out local search, outputting second identification information in a second display area corresponding to the network search result, wherein the second identification information is used for indicating that the network search result comes from the network.
In a second aspect, the present invention provides the following technical solutions through an embodiment of the present invention:
a search apparatus, comprising:
a keyword acquisition unit for acquiring a search keyword input by a user;
the joint search unit is used for carrying out local search on the terminal equipment and network search on the network based on the search keyword;
and the output unit is used for outputting a final search result according to the local search and the network search.
Preferably, the output unit is specifically configured to:
obtaining a local search result according to the local search; extracting key information from the local search results; taking the key information and the search keywords as new search keywords together, and performing the network search to obtain a network search result;
and outputting the network search result as the final search result.
Preferably, the output unit is specifically configured to:
obtaining a local search result according to the local search, and obtaining a network search result according to the network search; and integrating the local search result and the network search result, and outputting the integrated search result as the final search result.
Preferably, the output unit is specifically configured to:
integrating the local search result and the network search result in a mixed sorting mode to obtain the integrated search result; or inserting the local search result into one of the network search results to obtain the integrated search result.
Preferably, the output unit is specifically configured to:
obtaining a local search result according to the local search, and obtaining a network search result according to the network search; and screening the network search results based on the local search results, and outputting the screened network search results as the final search results.
Preferably, the output unit is specifically configured to:
and searching in communication information, or an address list, or a picture database, or public platform information, or an instant communication system which is locally stored in the terminal equipment based on the search keyword to obtain a local search result matched with the search keyword.
Preferably, the output unit is specifically configured to:
and outputting the final search result in a pop-up window mode.
Preferably, the output unit is specifically configured to:
when the user carries out network search, after the integrated search result is output as the final search result, outputting first identification information in a first display area corresponding to the local search result, wherein the first identification information is used for indicating that the local search result is from the local terminal equipment; or when the user performs local search, after the integrated search result is output as the final search result, outputting second identification information in a second display area corresponding to the network search result, where the second identification information is used to indicate that the network search result comes from the network.
In a third aspect, the present invention provides the following technical solutions through an embodiment of the present invention:
a search apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing the steps of:
acquiring a search keyword input by a user; based on the search keywords, carrying out local search on the terminal equipment locally and carrying out network search on the network; and outputting a final search result according to the local search and the network search.
In a fourth aspect, the present invention provides the following technical solutions according to an embodiment of the present invention:
a computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a search keyword input by a user; based on the search keywords, carrying out local search on the terminal equipment locally and carrying out network search on the network; and outputting a final search result according to the local search and the network search.
One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
in the embodiment of the invention, a searching method is disclosed, which comprises the following steps: acquiring a search keyword input by a user; based on the search keywords, carrying out local search on the terminal equipment locally and carrying out network search on the network; and outputting a final search result according to the local search and the network search. When a user searches, two search modes of network search and local search are combined, and the final search result is output to the user, so that the probability that the final search result meets the user requirement is improved, and therefore, the technical problem that the search method in the prior art cannot meet the search requirement of the user easily is effectively solved or partially solved, and the technical effect of meeting the user requirement to a greater extent is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a flow chart of a search method according to an embodiment of the present invention;
FIG. 2 is a block diagram of a searching apparatus 200 according to an embodiment of the present invention;
FIG. 3 is a block diagram of a searching apparatus 800 according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating a configuration of an apparatus for searching as a server according to an exemplary embodiment.
Detailed Description
The embodiment of the invention provides a searching method and a searching device, solves or partially solves the technical problem that the searching method in the prior art is difficult to meet the searching requirement of a user, and achieves the technical effect of meeting the user requirement to a greater extent.
In order to solve the technical problems, the embodiment of the invention has the following general idea:
a search method, comprising: acquiring a search keyword input by a user; based on the search keywords, carrying out local search on the terminal equipment locally and carrying out network search on the network; and outputting a final search result according to the local search and the network search.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
First, it is stated that the term "and/or" appearing herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Example one
The embodiment provides a search method, which is applied to a terminal device, where the terminal device may be a smart phone, a tablet computer, a vehicle-mounted computer, a desktop/notebook computer, a game console, a digital camera, or the like, and the specific type of the terminal device is not specifically limited in this embodiment.
Specifically, as shown in fig. 1, the search method includes:
step S101: and acquiring a search keyword input by a user.
As an optional implementation manner, step S101 includes:
when a user carries out network search, obtaining search keywords input by the user on a network search interface; or
When a user carries out local search, search keywords input by the user in a local search interface are obtained.
In the specific implementation process, two search modes are provided, one is 'network search', the other is 'local search', and a user can freely select one of the search modes to search.
In the implementation process, the term "web search" refers to a search performed on the internet by using a search engine (e.g., a "dog search" search engine, or a "hundred degree" search engine, or a "Google" search engine, etc.) so as to obtain a search result matching the search keyword.
For example, a page currently visited by the user may be detected, and if the URL of the page is found to be the URL of the search page (for example:https://www.sogou.com/or ishttps://www.baidu.com/Or ishttps:// www.google.com/And the like) or finding that the page is provided with the search box, monitoring the behavior of the user, and if the user is monitoredIf a search keyword is input in a search box of a search page, the search keyword is extracted. Or, when a search App (Application) corresponding to a search engine (for example, "dog search" App, or "mobile phone hundredth" App, or "Google search" App, etc.) is installed in the terminal device, when it is detected that the user starts the search App, the behavior of the user can be monitored, and if it is detected that the user inputs a search keyword in a search box on the search App, the search keyword is extracted.
In the implementation process, the term "local search" refers to searching in data local to the terminal device, and specifically, the search may be performed in communication information (e.g., short message, email, etc., which also includes information in an instant messaging system, such as information in WeChat or QQ), or an address book, or a picture, or public platform information (e.g., WeChat public number). Correspondingly, the terminal device provides a corresponding local search interface, a user can input any search keyword in a search box on the local search interface, and the terminal device can acquire the search keyword input by the user from the search box.
For example, if a user wants to search in a short message, the user can enter a short message application interface of the terminal device and input a search keyword in a search box therein, so that the user can search for information needed by the user in the short message stored in the terminal device; if a user wants to search in the WeChat, the user can enter a WeChat application interface installed on the terminal equipment and input search keywords in a search box in the WeChat application interface, so that the user can search for information needed by the user in the WeChat; if a user wants to search in the QQ, the user can enter a QQ application interface installed on the terminal equipment and input search keywords in a search box in the QQ application interface, so that the information required by the user is searched in the QQ information; if the user wants to search in the email, the user can enter an email application interface (or access a webpage of the email) and input a search keyword in a search box in the email application interface, so that the user can search for information needed by the user in the email.
For example, if a user wants to search in an address book of a terminal device (e.g., a phone number, an address, a work unit, an email address, etc. of a certain contact), the user may enter an address book application interface and input a search keyword in a search box therein, so as to search for information needed by the user in the address book.
For example, if a user wants to search in a picture library of a terminal device, the user may enter a picture library application interface and input a search keyword in a search box therein, so as to search a local picture for a picture required by the user. When searching local pictures, the attribute information (such as name information or author information) of each picture can be acquired, and the attribute information of the picture is matched with the search keyword input by the user (or the content in the picture is subjected to image recognition, and the recognized information is matched with the search keyword input by the user), so that the picture matched with the search keyword is acquired.
For example, if a user wants to search in public platform information (e.g., WeChat public number), the user may enter the public platform interface and input a search keyword in a search box therein, so as to search the public platform information for the public platform information required by the user.
In the specific implementation process, when a user performs local search, a unified local search entry (for example, a search box) may be provided, and a plurality of options including any combination of "short message," "WeChat," "QQ," "mail," "Address," "Picture," and "public platform information" are set below the search entry, the user may input a search keyword in the unified local search entry and select a certain option below, and the terminal device may perform search in local information corresponding to the option selected by the user based on the search keyword input by the user.
For example, if the user inputs "three in the unified local search entry and selects the" short message "option, it indicates that the user wants to search for information related to" three in the short message; if the user enters "XXX company" in the unified local search portal and selects the "picture" option, this indicates that the user wants to search for pictures related to "XXX company" in the pictures.
After step S101 is executed, step S102 may be executed based on the search keyword acquired in step S101.
Step S102: and based on the search keywords, carrying out local search locally on the terminal equipment and carrying out network search on the network.
In the specific implementation process, when the local search is performed, the local search can be performed in all local data (for example, short messages, WeChat, QQ, emails, address lists, pictures, public platform information, and the like) of the terminal device, and a local search result matched with the search keyword is obtained.
In a specific implementation process, when performing network search, a plurality of search engines may be provided, and a user selects one of the search engines as a default search engine, and in a subsequent network search process, the default search engine is directly used for performing search, and a corresponding network search result is obtained.
In particular, regardless of which search (e.g., "web search" or "local search") the user selects in step S101, both searches (i.e., joint searches of local and web) are performed in step S102.
Here, the terminal device performs a joint search based on the search keyword (i.e., performs a local search locally on the terminal device and performs a web search on the network), aiming at deeply mining the user's needs and providing a final search result that can satisfy the user's needs to a greater extent.
Step S103: and outputting a final search result according to the local search and the network search.
As an optional implementation, step S103 includes the following two implementations (i.e., implementation A and implementation B):
mode A: obtaining a local search result according to the local search, and obtaining a network search result according to the network search; integrating the local search result and the network search result, and outputting the integrated search result as a final search result; or; obtaining a local search result according to the local search, and obtaining a network search result according to the network search; and screening the network search results based on the local search results, and outputting the screened network search results as final search results.
Mode B: obtaining a local search result according to local search; extracting key information from local search results; taking the key information and the search keywords as new search keywords together, and performing network search to obtain a network search result; and outputting the network search result as a final search result.
The following is given as an example of the above mode a:
when a user performs a web search, if the user inputs a search keyword "zhang san" in a search box, a terminal device performs a search on the web using a search engine based on the search keyword "zhang san" to obtain one or more web search results. Meanwhile, the terminal equipment starts local search, and performs local search locally on the terminal equipment based on the search keyword 'zhang san', for example, a contact 'zhang san' is searched in an address book, and local search results of a mobile phone number, an address, a work unit, an email and the like of the contact are searched.
Furthermore, the local search results (namely information such as the mobile phone number, the address, the work unit, the email address and the like of Zhang III) and the network search results can be integrated to obtain the integrated search results. Therefore, when the integrated search results are output, the user can see the network search results and the local search results at the same time, and the requirements of the user are met to a greater extent.
Or, the network search result may be screened based on the local search result, for example, the city where the mobile phone number (or the address) of "zhang san" is located is determined to be "beijing", and at this time, the network search result may be screened to screen out the network search result that is matched with the mobile phone number (or the address) of "zhang san" and "beijing" at the same time. Therefore, the screened network search results can be output to the user, and the requirements of the user can be met to a greater extent.
When a user searches for a picture by performing a web search, if the user inputs "XXX building" in a search box, the terminal device searches on the web by using a search engine based on the search keyword "XXX building" to obtain one or more pictures (which are web search results) matching the "XXX building"; meanwhile, the terminal device starts local search, and performs local search locally on the terminal device based on the search keyword "XXX building", for example, one or more pictures (which are local search results) matching "XXX building" are searched in the local pictures.
Further, the picture matching with "XXX building" in the local search result and the picture matching with "XXX building" in the network search result may be integrated to obtain the integrated search result. Therefore, when the integrated search result is output, the user can see the picture obtained by network search and the picture obtained by local search at the same time, and the requirements of the user are met to a greater extent.
When a user performs network search, if the user inputs "XXX hotel" in a search box, the terminal device performs search on the network by using a search engine based on the search keyword "XXX hotel" to obtain a network search result matched with "XXX hotel"; meanwhile, the terminal device starts a local search, and performs the local search locally on the terminal device based on the search keyword "XXX hotel", for example, one or more local search results related to the keyword "XXX hotel" are searched in a short message (or WeChat, or email, or WeChat public number).
Further, after the local search result and the network search result matched with the "XXX hotel" are obtained, the local search result and the network search result may be integrated to obtain an integrated search result. Therefore, when the integrated search result is output, the user can see the picture obtained by network search and the picture obtained by local search at the same time, and the requirements of the user are met to a greater extent.
When a user performs local search, if the user inputs a search keyword 'lie four' in a search box of the local search, the terminal device searches in local data (such as short messages, WeChat, QQ, e-mails, address lists, pictures, public platform information and the like) based on the search keyword 'lie four', and obtains one or more network search results; meanwhile, the terminal equipment starts network search, and searches on the network by using a search engine by taking the Liqu as a search keyword to obtain a network search result related to the Liqu.
Further, after the local search result and the network search result matched with "lie four" are obtained, the local search result and the network search result can be integrated to obtain an integrated search result. Therefore, when the integrated search result is output, the user can see the network search result and the local search result at the same time, and the requirements of the user are met to a greater extent.
Or the network search results can be screened based on the local search results, so that the requirements of the user can be met to a greater extent.
The following is an example of the above mode B:
when a user performs a network search, if the user inputs a search keyword "zhang san" in a search box, the terminal device starts a local search first, and performs the local search locally on the terminal device based on the search keyword "zhang san", for example, a contact "zhang san" is searched in an address book, where the address is "beijing", or a mobile phone number of "zhang san" belongs to "beijing", where "beijing" is key information in the local search.
Further, the terminal device takes the key information (i.e.: Beijing) in the local search result and the search keyword (i.e.: zhang san) as a new search keyword (i.e.: Beijing '+' zhang san), and then starts the network search to obtain the network search result matched with the new search keyword on the network. Thus, the requirements of users can be met to a greater extent. The key information is extracted from the local search result, useless information is filtered, the key information and the search keyword input by the user are taken as the new search keyword instead of directly taking the local search result and the search keyword as the new search keyword, and therefore the problem that the new search keyword is too trivial and not beneficial to network search due to too many local search results can be solved.
Further, as an optional implementation manner, the integrating the local search result and the web search result includes:
integrating the local search result and the network search result in a mixed sorting mode to obtain an integrated search result; or
And inserting the local search result into one search result in the network search results to obtain an integrated search result.
In the specific implementation process, the term "mixed ordering" refers to: when the local search result and the network search result are integrated, the local search result is taken as a single search result and is mixed and arranged with other network search results for displaying, wherein the local search result and the network search result only have the difference of a display sequence and do not have the difference of a display hierarchy. For example, the total number of the search results after the integration is 10, where the 1 st is a local search result and the remaining 2 nd to 10 th are web search results, or the 4 th is a local search result and the remaining 1 st to 3 rd and the 5 th to 10 th are web search results.
In a specific implementation process, when the local search result and the network search result are integrated, the local search result may also be inserted into one of the network search results. For example, if 9 pieces of network search results are searched in total, the local search result is inserted into one of the network search results to obtain 9 pieces of search results after integration.
Further, as an optional implementation manner, the outputting the final search result includes: and outputting the final search result in a pop-up window mode.
In a specific implementation process, when a final search result (e.g., the integrated search result or the filtered search result in the manner a, or the web search result in the manner B) is output, a popup may be created and the final search result may be output in the popup.
Or, for the case of integrating the local search result and the network search result in the mode a, when the user performs local search, the local search result may be output on the local search interface, and the network search result may be output in the pop-up window; when the user searches the network, the network search result can be output on the network search interface, and the local search result can be output in the popup window.
Further, as an optional implementation manner, for the case of integrating the local search result and the network search result in the manner a, after the step S103, the method further includes:
when a user carries out network search, first identification information is output in a first display area corresponding to a local search result, and the first identification information is used for indicating that the local search result is from the local terminal equipment; or
And when the user carries out local search, outputting second identification information in a second display area corresponding to the network search result, wherein the second identification information is used for indicating that the network search result comes from the network.
The first mark may be an icon, a symbol or a character, the second mark may also be an icon, a symbol or a character, and the first mark is different from the second mark. Thus, when outputting the sorted search results, the user can easily know which search results come from the network and which search results come from the local.
For example, the first label is a "local search" word, and the second label is a "web search" word; alternatively, the second label is a "from local" word and the second label is a "from network" word.
In addition, when the user carries out network search, the first mark can be displayed in a certain display area near the network search result while the network search result is output, so as to remind the user that a local search result from the local terminal equipment exists; when a user triggers the first identifier, a local search result can be displayed to the user in a popup window or interface switching mode; and if the user does not trigger, the local search result is not displayed, so that unnecessary disturbance to the user is avoided.
Similarly, when the user performs local search, a second mark can be displayed in a certain display area near the local search result while outputting the local search result to remind the user that the local search result comes from the network; when the user triggers the second identifier, the network search result can be displayed to the user in a popup window or interface switching mode; and if the user does not trigger, the network search result is not displayed, so that unnecessary disturbance to the user is avoided.
The technical scheme in the embodiment of the invention at least has the following technical effects or advantages:
in the embodiment of the invention, a searching method is disclosed, which comprises the following steps: acquiring a search keyword input by a user; based on the search keywords, carrying out local search on the terminal equipment locally and carrying out network search on the network; and outputting a final search result according to the local search and the network search. When a user searches, two search modes of network search and local search are combined, and the final search result is output to the user, so that the probability that the final search result meets the user requirement is improved, and therefore, the technical problem that the search method in the prior art cannot meet the search requirement of the user easily is effectively solved or partially solved, and the technical effect of meeting the user requirement to a greater extent is achieved.
Example two
Based on the same inventive concept, the present embodiment provides a search apparatus 200, comprising:
a keyword acquisition unit 201 for acquiring a search keyword input by a user;
a joint search unit 202, configured to perform local search locally on the terminal device and perform network search on the network based on the search keyword;
and an output unit 203, configured to output a final search result according to the local search and the network search.
As an optional implementation manner, the output unit 203 is specifically configured to:
obtaining a local search result according to the local search; extracting key information from the local search results; taking the key information and the search keywords as new search keywords together, and performing the network search to obtain a network search result; and outputting the network search result as the final search result.
As an optional implementation manner, the output unit 203 is specifically configured to:
obtaining a local search result according to the local search, and obtaining a network search result according to the network search; and integrating the local search result and the network search result, and outputting the integrated search result as the final search result.
As an optional implementation manner, the output unit 203 is specifically configured to:
integrating the local search result and the network search result in a mixed sorting mode to obtain the integrated search result; or inserting the local search result into one of the network search results to obtain the integrated search result.
As an optional implementation manner, the output unit 203 is specifically configured to:
obtaining a local search result according to the local search, and obtaining a network search result according to the network search; and screening the network search results based on the local search results, and outputting the screened network search results as the final search results.
As an optional implementation manner, the output unit 203 is specifically configured to:
and searching in communication information, or an address list, or a picture database, or public platform information, or an instant communication system which is locally stored in the terminal equipment based on the search keyword to obtain a local search result matched with the search keyword.
As an optional implementation manner, the output unit 203 is specifically configured to:
and outputting the final search result in a pop-up window mode.
As an optional implementation manner, the output unit 203 is specifically configured to:
when the user carries out network search, outputting first identification information in a first display area corresponding to the local search result, wherein the first identification information is used for indicating that the local search result is from the local terminal equipment; or
And when the user carries out local search, outputting second identification information in a second display area corresponding to the network search result, wherein the second identification information is used for indicating that the network search result comes from the network.
Since the searching apparatus described in this embodiment is an apparatus used for implementing the searching method in the embodiment of the present invention, based on the searching method described in the embodiment of the present invention, a person skilled in the art can understand the specific implementation manner of the searching apparatus in this embodiment and various variations thereof, and therefore, a detailed description of how the searching apparatus implements the method in the embodiment of the present invention is not provided here. The search device adopted by the search method in the embodiment of the invention is all within the scope of the protection of the invention as long as the person skilled in the art implements the search device.
The technical scheme in the embodiment of the invention at least has the following technical effects or advantages:
in an embodiment of the present invention, a search apparatus is disclosed, including: a keyword acquisition unit for acquiring a search keyword input by a user; the joint search unit is used for carrying out local search on the terminal equipment and network search on the network based on the search keyword; and the output unit is used for outputting a final search result according to the local search and the network search. When a user searches, two search modes of network search and local search are combined, and the final search result is output to the user, so that the probability that the final search result can meet the user requirement is improved, the technical problem that the search method in the prior art cannot meet the search requirement of the user easily is effectively solved or partially solved, and the technical effect of meeting the user requirement to a greater extent is further achieved.
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 communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing 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 component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, 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-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast 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, microcontrollers, microprocessors or other electronic components for performing a method of managing favorites, the method comprising: accessing a network favorite stored in a server based on the access operation of the user; displaying M pieces of collection information in the network favorites, wherein M is a positive integer; determining first collection information from the M pieces of collection information based on a first selection operation of the user, wherein the number of the first collection information is one or more; and downloading the first favorite information to a local favorite of a browser based on the downloading operation of the user.
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.
Fig. 4 is a block diagram illustrating an apparatus for searching as a server according to an example embodiment. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of a terminal device, enable the terminal device to perform a search method, the method comprising: acquiring a search keyword input by a user; based on the search keywords, carrying out local search on the terminal equipment locally and carrying out network search on the network; and outputting a final search result according to the local search and the network search.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is defined only by the appended claims, which are not intended to limit the present invention, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (14)

1. A method of searching, comprising:
acquiring a search keyword input by a user;
based on the search keywords, carrying out local search on the terminal equipment locally and carrying out network search on the network; the network search is to search on the internet by utilizing a search engine or a search application corresponding to the search engine so as to obtain a search result matched with the search keyword; the local search refers to searching in local data of the terminal equipment;
outputting a final search result according to the local search and the network search, wherein the final search result comprises: obtaining a local search result according to the local search; extracting key information from the local search results; taking the key information and the search keywords as new search keywords together, and performing the network search to obtain a network search result; outputting the network search result as the final search result;
obtaining a local search result according to the local search, wherein the obtaining of the local search result comprises: and searching in communication information, or an address list, or a picture database, or public platform information, or an instant communication system which is locally stored in the terminal equipment based on the search keyword to obtain a local search result matched with the search keyword.
2. The search method of claim 1, wherein said outputting a final search result according to the local search and the web search comprises:
obtaining a local search result according to the local search, and obtaining a network search result according to the network search;
and integrating the local search result and the network search result, and outputting the integrated search result as the final search result.
3. The search method of claim 2, wherein said integrating the local search results and the web search results comprises:
integrating the local search result and the network search result in a mixed sorting mode to obtain the integrated search result; or
And inserting the local search result into one of the network search results to obtain the integrated search result.
4. The search method of claim 1, wherein said outputting a final search result according to the local search and the web search comprises:
obtaining a local search result according to the local search, and obtaining a network search result according to the network search;
and screening the network search results based on the local search results, and outputting the screened network search results as the final search results.
5. The search method of claim 1, wherein said outputting a final search result comprises:
and outputting the final search result in a pop-up window mode.
6. The search method of claim 2, further comprising, after said outputting the integrated search result as the final search result:
when the user carries out network search, outputting first identification information in a first display area corresponding to the local search result, wherein the first identification information is used for indicating that the local search result is from the local terminal equipment; or
And when the user carries out local search, outputting second identification information in a second display area corresponding to the network search result, wherein the second identification information is used for indicating that the network search result comes from the network.
7. A search apparatus, comprising:
a keyword acquisition unit for acquiring a search keyword input by a user;
the joint search unit is used for carrying out local search on the terminal equipment and network search on the network based on the search keyword; the network search is to search on the internet by utilizing a search engine or a search application corresponding to the search engine so as to obtain a search result matched with the search keyword; the local search refers to searching in local data of the terminal equipment;
an output unit, configured to output a final search result according to the local search and the network search, including: obtaining a local search result according to the local search; extracting key information from the local search results; taking the key information and the search keywords as new search keywords together, and performing the network search to obtain a network search result; outputting the network search result as the final search result;
the output unit is specifically configured to: and searching in communication information, or an address list, or a picture database, or public platform information, or an instant communication system which is locally stored in the terminal equipment based on the search keyword to obtain a local search result matched with the search keyword.
8. The apparatus of claim 7, wherein the output unit is specifically configured to:
obtaining a local search result according to the local search, and obtaining a network search result according to the network search; and integrating the local search result and the network search result, and outputting the integrated search result as the final search result.
9. The apparatus of claim 8, wherein the output unit is specifically configured to:
integrating the local search result and the network search result in a mixed sorting mode to obtain the integrated search result; or inserting the local search result into one of the network search results to obtain the integrated search result.
10. The apparatus of claim 7, wherein the output unit is specifically configured to:
obtaining a local search result according to the local search, and obtaining a network search result according to the network search; and screening the network search results based on the local search results, and outputting the screened network search results as the final search results.
11. The apparatus of claim 7, wherein the output unit is specifically configured to:
and outputting the final search result in a pop-up window mode.
12. The apparatus of claim 8, wherein the output unit is specifically configured to:
when the user carries out network search, outputting first identification information in a first display area corresponding to the local search result, wherein the first identification information is used for indicating that the local search result is from the local terminal equipment; or
And when the user carries out local search, outputting second identification information in a second display area corresponding to the network search result, wherein the second identification information is used for indicating that the network search result comes from the network.
13. A search apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method steps of any of claims 1-6 when executing the program.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
CN201711308330.7A 2017-12-11 2017-12-11 Searching method and device Active CN110020082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711308330.7A CN110020082B (en) 2017-12-11 2017-12-11 Searching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711308330.7A CN110020082B (en) 2017-12-11 2017-12-11 Searching method and device

Publications (2)

Publication Number Publication Date
CN110020082A CN110020082A (en) 2019-07-16
CN110020082B true CN110020082B (en) 2022-02-11

Family

ID=67186838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711308330.7A Active CN110020082B (en) 2017-12-11 2017-12-11 Searching method and device

Country Status (1)

Country Link
CN (1) CN110020082B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111597439A (en) * 2020-04-30 2020-08-28 北京字节跳动网络技术有限公司 Information processing method and device and electronic equipment
CN113704606A (en) * 2021-08-26 2021-11-26 山东库睿科技有限公司 Searching method, searching device, electronic equipment and storage medium
CN118277400A (en) * 2022-12-30 2024-07-02 华为技术有限公司 Display method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100337503C (en) * 2004-09-15 2007-09-12 北京中星微电子有限公司 Method and its system for searching network data by mobile communication terminal
CN101276361B (en) * 2007-03-28 2010-09-15 阿里巴巴集团控股有限公司 Method and system for displaying related key words
US20100306249A1 (en) * 2009-05-27 2010-12-02 James Hill Social network systems and methods
JP2011175453A (en) * 2010-02-24 2011-09-08 Kansai Electric Power Co Inc:The Keyword retrieval system
CN101916265B (en) * 2010-07-30 2012-07-25 百度在线网络技术(北京)有限公司 Inquiry based method and device for showing local resource of user equipment
CN102004765A (en) * 2010-11-09 2011-04-06 突触计算机系统(上海)有限公司 Method and equipment for searching media files based on internet television
CN103745013A (en) * 2014-01-28 2014-04-23 中科创达软件股份有限公司 Searching method and device
CN104572960B (en) * 2014-12-29 2018-07-06 北京奇虎科技有限公司 A kind of method and device of search
CN106897289B (en) * 2015-12-18 2020-07-10 北京奇虎科技有限公司 Optimization method and device for information search
CN105808740A (en) * 2016-03-11 2016-07-27 程书京 Information search method and information search device
CN107092621A (en) * 2016-11-24 2017-08-25 北京小度信息科技有限公司 Information search method and device

Also Published As

Publication number Publication date
CN110020082A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
US10990623B2 (en) Information retrieval method, eletronic device and storage medium
US20180121040A1 (en) Method and device for managing notification messages
CN104572942A (en) Push message display method and push message display device
CN109799916B (en) Candidate item association method and device
CN107330019A (en) Searching method and device
CN107315487B (en) Input processing method and device and electronic equipment
CN106897937B (en) Method and device for displaying social sharing information
CN108874827B (en) Searching method and related device
CN110391966B (en) Message processing method and device and message processing device
CN111382339A (en) Search processing method and device and search processing device
CN106815291B (en) Search result item display method and device and search result item display device
CN107402767B (en) Method and device for displaying push message
CN105373580A (en) Method and device for displaying subjects
CN110020082B (en) Searching method and device
CN110309431B (en) Data processing method, device and electronic equipment
CN104951522B (en) Method and device for searching
CN105117115B (en) A kind of method and apparatus for showing electronic document
CN107343104A (en) Handle the method, apparatus and terminal device of Information on Collection
CN110286775B (en) A vocabulary management method and device
CN111736752B (en) Content recommendation method and device
CN105550201B (en) Data display method and device
CN110213062B (en) Method and device for processing message
CN110147426B (en) Method for determining classification label of query text and related device
CN113779405B (en) A data processing method and device
CN112462992B (en) Information processing method and device, electronic equipment and medium

Legal Events

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