WO2018032271A1 - 信息搜索方法、装置、电子设备及服务器 - Google Patents
信息搜索方法、装置、电子设备及服务器 Download PDFInfo
- Publication number
- WO2018032271A1 WO2018032271A1 PCT/CN2016/095359 CN2016095359W WO2018032271A1 WO 2018032271 A1 WO2018032271 A1 WO 2018032271A1 CN 2016095359 W CN2016095359 W CN 2016095359W WO 2018032271 A1 WO2018032271 A1 WO 2018032271A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- content
- category
- search
- chat
- keyword
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/48—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/334—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/214—Monitoring or handling of messages using selective forwarding
Definitions
- the present disclosure relates to the field of information processing technologies, and in particular, to an information search method, apparatus, electronic device, and server.
- the user needs to open the browser, enter the link address of the search engine in the browser, and then input the keyword to be searched on the search engine page.
- the search engine finds the search result by keywords, the user copies the link address or copies the content on the page, and then pastes the link address or the content on the page through the instant chat tool and then shares it with the chat party.
- the embodiments of the present disclosure provide an information search method, device, electronic device, and server, to ensure that a user needs to search for information related to a chat content during a live chat process without interrupting the chat partner.
- the live chat process is a process that a user needs to search for information related to a chat content during a live chat process without interrupting the chat partner.
- an information search method including:
- the search content is classified on the current interface based on the at least one category.
- the text information in the chat content is identified, and at least one keyword in the chat content is obtained;
- the method may further include:
- the search content to be shared is sent to the communication peer.
- the classifying the search content on the current interface based on the at least one category comprises:
- the search content is classified in a chat interface based on the at least one category.
- the classifying the search content on the current interface based on the at least one category may include:
- the method can include:
- the display order of the at least one category is determined according to a preset display order.
- the determining, according to the most recent action keyword, the received display order of the at least one category including:
- the display order of the plurality of categories with the same matching degree on the current interface is determined according to a preset order.
- the method may further include:
- the picture is sent to the server as at least one keyword, or the picture is identified, and the recognized picture key is The information is sent to the server as at least one keyword.
- an information search method including:
- the searching for the search content that matches the at least one keyword and determining the at least one category in which the search content is classified and stored may include:
- Searching in a plurality of databases, search content that matches the at least one keyword, each of the plurality of databases corresponding to one category;
- the category corresponding to the database in which the search content is located determines at least one category in which the search content is classified and stored.
- the method may further include:
- the Internet content is stored in a corresponding database according to respective corresponding categories.
- the method may further include:
- the search content matching the picture key information and the category corresponding to the database in which the search content is located are sent to the electronic device.
- an information search apparatus including:
- the first sending module is configured to: when it is detected that the chat content in the input box needs to be sent to the communication peer, send at least one keyword in the chat content to the server;
- a first receiving module configured to receive, by the server, search content that is found based on the at least one keyword sent by the first sending module, and at least one category that the search content is classified and stored in the server;
- the classification display module is configured to display the search content received by the first receiving module on the current interface based on the at least one category received by the first receiving module.
- the first sending module may include:
- the information identification sub-module is configured to: when detecting that the text content has been input in the input box of the instant chat tool, identify the text information in the chat message, and obtain at least one keyword in the chat content in the input box;
- the sending submodule is configured to send at least one keyword of the chat content identified by the information identifying submodule to the server.
- the apparatus may further include:
- An event detecting module configured to detect, on a current interface displayed by the search content classification, whether there is a sharing trigger event for the search content
- the second sending module is configured to send the search content to be shared to the communication peer when the event detecting module detects that there is a sharing triggering event for the search content.
- the classification display module may include:
- a first display submodule configured to display the search content classification on an input method interface based on the at least one category
- the second presentation sub-module is configured to display the search content category on the chat interface based on the at least one category.
- the classification display module may include:
- Obtaining a submodule configured to acquire a chat record or a recent action keyword in the chat content when the at least one category is received from the server;
- a first determining submodule configured to determine, according to the most recent action keyword acquired by the second acquiring submodule, the received display order of the at least one category
- the third display sub-module is configured to display the at least one category and the corresponding search content in the at least one category according to the display order determined by the first determining sub-module;
- the first determining submodule is specifically configured to:
- the second acquisition sub-module fails to obtain the most recent action keyword in the chat record, determining the display order of the at least one category according to a preset display order.
- the first determining submodule is specifically configured to:
- the display order of the plurality of categories with the same matching degree on the current interface is determined according to a preset order.
- the first sending module when it is detected that the first sending module needs to send a picture in the input box to the communication peer, the first sending module is further configured to send the picture as at least one keyword.
- the server or,
- the device may also include:
- An information identification module configured to send to the communication peer to the first sending module The picture is identified, and the first sending module sends the picture key information identified by the information identifying module to the server as at least one keyword.
- an information search apparatus including:
- a second receiving module configured to receive at least one keyword from the electronic device, the at least one keyword being used by the electronic device from the chat content when detecting that the chat content in the input box needs to be sent to the communication peer Recognized in
- a first searching module configured to search for search content that matches the at least one keyword received by the second receiving module, and determine at least one category in which the search content is classified and stored;
- a third sending module configured to send the search content and the at least one category found by the first searching module to the electronic device.
- the first search module may include:
- a first search submodule configured to sequentially search, in a plurality of databases, search content that matches the at least one keyword, each of the plurality of databases corresponding to one category;
- a second determining submodule configured to determine, by the category corresponding to the database in which the search content is found by the first search submodule, the at least one category in which the search content is classified and stored.
- the apparatus may further include:
- An obtaining module configured to control the plurality of databases to obtain Internet content corresponding to each category from the Internet in real time or periodically;
- the storage module is configured to store the Internet content acquired by the obtaining module into a corresponding database according to respective corresponding categories.
- the apparatus may further include:
- the image recognition module is configured to perform image recognition on the picture when the second receiving module receives a picture from the electronic device, and extract picture key information in the picture;
- a second search module configured to search, from the plurality of databases, search content that matches the picture key information identified by the image recognition module
- the third sending module is further configured to send the search content matched by the second search module and the category corresponding to the database in which the search content is located to the electronic device.
- an electronic device including:
- a memory for storing processor executable instructions
- processor is configured to:
- the search content is classified on the current interface based on the at least one category.
- a server including:
- a memory for storing processor executable instructions
- processor is configured to:
- At least one keyword in the chat content in the input box is sent to the server, and the search content and the category corresponding to the search content searched by the server based on the at least one keyword are displayed at the current Interface, since at least one keyword is obtained based on the chat content in the user's input box, so that the search content and the chat master can be ensured
- the question is closely related.
- searching the content the user can directly obtain the information required by the user, avoiding the switching operation from the instant chat tool to the browser, and then from the browser to the instant chat tool, ensuring that the user needs in the instant chat process. Searching for information related to the chat content does not interrupt the live chat process with the correspondent peer.
- FIG. 1A is a schematic flow chart of an information search method according to an exemplary embodiment.
- FIG. 1B is a scene diagram of an information search method according to an exemplary embodiment.
- FIG. 2A is a schematic flowchart diagram of an information searching method according to an exemplary embodiment.
- FIG. 2B is one of scene diagrams of an information search method according to an exemplary embodiment.
- FIG. 2C is a second scene view of the information search method according to an exemplary embodiment.
- FIG. 3A is a schematic flowchart of an information search method according to an exemplary embodiment.
- FIG. 3B is one of scene views of an information search method according to an exemplary embodiment.
- FIG. 3C is a second scene view of the information search method according to an exemplary embodiment.
- FIG. 4A is a schematic flowchart diagram of an information searching method according to an exemplary embodiment 3.
- FIG. 4B is one of scene views of an information search method according to an exemplary embodiment 3.
- FIG. 4C is a second scene view of the information search method according to an exemplary embodiment 3.
- FIG. 5 is a schematic flow chart of an information search method according to an exemplary embodiment 4.
- FIG. 6A is a schematic flowchart diagram of an information search method according to an exemplary embodiment 5.
- FIG. 6B is a scene diagram of an information search method according to an exemplary embodiment 5.
- FIG. 7 is a schematic structural diagram of an information search apparatus according to an exemplary embodiment.
- FIG. 8 is a schematic structural diagram of another information search apparatus according to an exemplary embodiment.
- FIG. 9 is a schematic structural diagram of still another information search apparatus according to an exemplary embodiment.
- FIG. 10 is a schematic structural diagram of still another information search apparatus according to an exemplary embodiment.
- FIG. 11 is a schematic structural diagram of still another information search apparatus according to an exemplary embodiment.
- FIG. 12 is a schematic structural diagram of still another information search apparatus according to an exemplary embodiment.
- FIG. 13 is a schematic structural diagram of still another information search apparatus according to an exemplary embodiment.
- FIG. 14 is a block diagram suitable for an information search apparatus, according to an exemplary embodiment.
- FIG. 15 is a block diagram showing another suitable for an information search device, according to an exemplary embodiment.
- FIG. 1A is a schematic flowchart diagram of an information search method according to an exemplary embodiment
- FIG. 1B is a scene diagram of an information search method according to an exemplary embodiment
- the information search method may be applied to an electronic device (for example: Smartphones, tablets, personal computers, etc.
- the device can be implemented by installing a live chat tool on the electronic device.
- the information search method includes the following steps 101-103:
- step 101 when it is detected that the chat content in the input box needs to be sent to the communication peer, at least one keyword in the chat content is sent to the server.
- the input method software can determine whether the input box of the instant chat tool has the chat content that needs to be sent to the input box of the communication peer by interacting with the instant chat tool, and the input box needs to be sent.
- the input method software can identify the text information in the chat content, and obtain at least one keyword in the chat content.
- the chat content may include text information, and may also include a picture.
- the keyword in the text information may be regarded as at least one keyword in the disclosure, and when the image is included, The picture key information in the picture is regarded as a keyword in the disclosure, wherein the picture key information in the picture can be recognized by the server or locally.
- step 102 the search content that the server finds based on the at least one keyword and the search content are at least one category that is classified and stored in the server.
- the server may include a plurality of different categories of databases, and each category of the database stores information corresponding to the category, wherein the categories may be video, audio, pictures, books, news, etc., and the server may The at least one keyword determines at least one category corresponding to the at least one keyword from all categories of the server, and then obtains the search content that matches the keyword from the database corresponding to the category.
- the server may retrieve the latest content information from the Internet and store the content information in a category to a different category of database.
- step 103 the search content is classified on the current interface based on the at least one category.
- the search content may be displayed on the chat interface of the instant chat tool or on the input method interface corresponding to the input method software.
- the search interface or the input method interface may be used.
- the side of the scroll bar is set, the instant chat tool or the input method software displays the search content corresponding to each category by monitoring the scroll bar scrolling.
- the search interface or the input method interface can be used.
- the page shows the search content under each category, and each page can contain the search content corresponding to one category.
- the input method software is used as an example for the Jiugong grid input method software.
- the user Simon uses the electronic device 11 and Xiaobai (which can be regarded as the communication peer in the disclosure).
- Xiaobai which can be regarded as the communication peer in the disclosure.
- Xiao Bai sends "What is the movie you like to watch” to Simon, Simon enters the "Game of Thrones" into the input box 113 of the live chat tool based on the Jiugong grid input method 112.
- the nine-square grid input method 112 obtains the keyword "game of power” by semantically recognizing the text information in the input box 113, and transmits the "game of power” to the server 12, and the server 12 is based on the "game of power” in the film and television, Searching for the search content in a database such as audio, and returning the search content found in the server to the electronic device 11 for the category corresponding to the search content, for example, the link address " http://v.qq.com/x/cover/54ntb912jygjxd7 .html "The category "video” corresponding to the link is returned to the electronic device 11.
- the electronic device 11 can display the search content on the current interface based on categories such as video, audio, and the like.
- At least one keyword in the chat content in the input box is sent to the server, and the search content searched by the server based on the at least one keyword corresponds to the search content.
- the category is displayed in the current interface. Since at least one keyword is obtained based on the chat content in the input box of the user, it is ensured that the search content is closely related to the chat theme, and the search content can enable the user to directly obtain the information required by the user. Avoiding the switching operation from the instant chat tool to the browser, and then from the browser to the instant chat tool, ensures that the user needs to search for information related to the chat content during the instant chat process without interrupting the instant chat process with the communication peer.
- sending at least one keyword in the chat content to the server includes:
- the method may further include:
- the search content to be shared is sent to the communication peer.
- the search content is displayed on the current interface based on the at least one category, including:
- the search content is classified into a chat interface based on at least one category.
- the search content is displayed on the current interface based on the at least one category, including:
- the method can include:
- the order of display of the at least one category is determined according to a preset display order.
- determining the order of presentation of the received at least one category based on the most recent action keyword comprises:
- the order of displaying the multiple categories with the same matching degree on the current interface is determined according to the preset order.
- the method may further include:
- the chat content in the input box to be sent to the communication peer includes a picture
- the picture is sent to the server as at least one keyword, or the picture is identified, and the identified picture key information is used as at least one keyword. Send to the server.
- the above method provided by the embodiment of the present disclosure can ensure that the search content is closely related to the chat topic, and the search content can enable the user to directly obtain the information required by the user, avoiding the instant chat tool to the browser, and then from the browser to the instant.
- the switching operation between the chat tools ensures that the user needs to search for information related to the chat content in the input box during the live chat process without interrupting the instant chat process with the communication peer.
- FIG. 2A is a schematic flowchart of an information search method according to an exemplary embodiment
- FIG. 2B is a scene diagram of an information search method according to an exemplary embodiment
- FIG. 2C is an exemplary implementation according to an exemplary embodiment.
- the scene graph of the information search method shown in the first example is the second embodiment of the present disclosure.
- the present embodiment uses the above method provided by the embodiment of the present disclosure to take the current interface as an input method interface and classify the search content from the server by using the input method software.
- An exemplary description is made in conjunction with FIG. 1B, as shown in FIG. 2A, including the following steps:
- step 201 it is detected whether the text content in the input method interface has been input to the input box of the instant chat tool.
- step 202 is performed, when the text content is not input to When the chat tool is in the input box, the input method software remains listening.
- the input method software may be used to detect whether the text content in the input method interface has been input to the input box of the instant chat tool, as shown in FIG. 1B, when the input method software detects that the input button 115 is triggered. It is determined that the current text content has been entered into the input box 114 of the live chat tool.
- step 202 when the text content has been input to the input box of the instant chat tool, the text content is determined as the chat content in the input box, and it is determined that the chat content needs to be sent to the communication peer.
- step 203 when it is detected that the chat content needs to be sent to the communication peer, the text information in the chat message is identified, and at least one keyword in the chat content is obtained, and at least one key in the chat content is obtained. The word is sent to the server.
- the search content that the server finds based on the at least one keyword and the search content are at least one category that is classified and stored in the server.
- step 205 the search content is classified on the input method interface based on the at least one category.
- related search content of "game of power” classified as a video is displayed, and the search content includes a link, a name corresponding to the link, and related information of the video.
- step 206 it is detected whether there is a first preset trigger event on the input method interface.
- step 207 is performed, and there is no first preset trigger event on the input method interface.
- the input method software continues to be in the detection state.
- step 207 when there is a first preset trigger event on the input method interface, the search content corresponding to the first preset trigger event is determined.
- step 208 the search content corresponding to the first preset trigger event is sent to the communication peer.
- the first preset trigger event may be a send button trigger event or a share button trigger event on the input method interface 112, as shown in FIG. 2C, when the user Simon needs to send the link to the white,
- the input method software sends the link corresponding to the send button 116 directly to the communication peer (small white) after the monitor send button 116 is triggered.
- the send button 116 can communicate with the send button interface of the instant messenger tool, thereby enabling the user to directly send the search content that needs to be shared to the communication peer of the instant chat tool through the input method software.
- the present embodiment directly transmits the search content that needs to be shared to the communication peer end on the input method interface, thereby reducing the operation of the user to share information during the instant chat, and improving the user. Share the efficiency of your search.
- FIG. 3A is a schematic flowchart of an information search method according to an exemplary embodiment
- FIG. 3B is one of scene diagrams of an information search method according to an exemplary embodiment
- FIG. 3C is an exemplary implementation according to an exemplary embodiment.
- step 301 it is determined whether the text content has been input in the input box of the instant chat tool.
- step 302 is performed, and when no text content is input in the input box, the instant chat tool maintains the detection state.
- the text content in the input box can be detected by real-time interaction between the instant chat tool and the input method software.
- the instant chat tool can interact with the input method software in real time, when the input method software
- the input method software can notify the live chat tool that the text content has been entered into the input box 114.
- step 302 when the text content has been input in the input box, the text content is determined as the chat content in the input box, and it is determined that the chat content in the input box needs to be sent to the communication peer.
- step 303 when it is detected that the content of the input box needs to be sent to the communication peer, the text information in the chat message is identified, and at least one keyword in the content of the input box is obtained, and the content in the input box is At least one keyword is sent to the server.
- step 304 the search content that the server finds based on the at least one keyword and the search content are at least one category that is classified and stored in the server.
- step 305 the search content is classified on the chat interface based on the at least one category.
- search content of "game of power" classified as video is displayed, and the search content includes a link, a name corresponding to the link, and related information of the video.
- step 306 it is detected whether there is a second preset trigger event on the chat interface.
- step 307 is performed.
- step 307 when there is a second preset trigger event on the chat interface, a link corresponding to the second preset trigger event is displayed in an input box of the instant chat tool.
- step 308 when the third preset trigger event is detected on the chat interface, the search content corresponding to the link is sent to the communication peer.
- the second preset trigger event may be a send button trigger event or a share button trigger event on the chat interface 117, as shown in FIG. 3B, when the user Simon needs to send the link to the white
- the link address of the search content is displayed in the input box 113 of the instant chat tool, and when the instant chat tool monitors that the send button 114 is triggered,
- the link corresponding to the send button 114 is directly sent to the communication peer (white), as shown in FIG. 3C, the link address is displayed in the chat record.
- the operation event selected from the search content for the search content to be shared may be regarded as the second preset trigger event in the disclosure, and the event triggered by the send button 114 may be regarded as the third preset trigger event in the disclosure.
- the present embodiment directly transmits the search content that needs to be shared to the communication peer end on the chat interface, thereby ensuring that the user can directly share information through the instant chat tool, thereby improving user sharing.
- the efficiency of searching for content
- FIG. 4A is a schematic flowchart diagram of an information search method according to an exemplary embodiment 3
- FIG. 4B is a flowchart diagram of an information search method according to an exemplary embodiment 3
- FIG. 4C The second is the scene view of the information search method according to an exemplary embodiment.
- the present embodiment uses the above method provided by the embodiment of the present disclosure to sort the search content on the current interface as an example and combines FIG. 1B. For exemplary explanation, as shown in FIG. 4A, the following steps are included:
- step 401 it is determined whether there is an action keyword associated with the at least one keyword in the chat content in the input box. If the action keyword exists in the chat content, step 402 is performed, if there is no action key in the input box content Word, step 404 is performed.
- the action keyword may be a preset verb, for example, watching, listening, going, checking, eating, and thus, "seeing” may correspond to categories such as videos, books, news, etc., and "listening”
- the “go” corresponds to the map
- the “check” corresponds to the encyclopedia
- the “eat” corresponds to the catering, wherein the video, the book, the news, the music, the map, the encyclopedia, and the catering each correspond to one category.
- the action keywords in the chat content in the input box 113 can be identified by means of semantic recognition. As shown in FIG. 4B, Xiao Bai sends "What do you like to eat” to Simon, and Simon passes the input method software. Entering "like to eat sea fishing" into the input box 113 of the instant chat tool, the input method software or the instant chat tool can identify the action keyword as "eat” from the chat content by means of semantic recognition, at least one Keywords include “sea fishing”.
- step 402 if there is an action keyword in the chat content, at least one category is sorted according to the action keyword.
- step 403 based on the sorted at least one category, the search content is classified and displayed on the chat interface, and the process ends.
- the search content is acquired by any of the above-described embodiments of FIG. 1A, FIG. 2A, and FIG. 3A, for example, the "eat” is recognized in the chat content in the input box 113 of FIG. 4B, and the server 12 can be returned.
- the search content with the category "food” is ranked first or the first page, and the search content of other categories (for example, the search content corresponding to the category "news" and "book") is ranked in the category "catering". Behind the search content.
- step 404 if there is no action keyword in the chat content, the chat record is obtained.
- Xiao Bai sent Simon "What do you like to eat", Simon passed
- the input content entered into the input box 113 by the input method software is “sea fishing”. Since there is no action keyword “eat” in “sea fishing”, in order to ensure that the search content is closely related to the chat theme, the input method software or the instant chat tool can be used. Get the chat history of the chat tool in time, for example, the most recent chat record is "What do you like to eat" sent by Xiaobai.
- step 405 it is determined whether there is an action keyword in the chat record. If there is a action keyword in the chat record, step 406 is performed. If there is no action keyword in the chat record, step 408 is performed.
- step 406 if there is an action keyword in the chat record, the order of presentation of the received at least one category is determined according to the most recent action keyword.
- the matching degree between the most recent action keyword and the at least one category may be determined to obtain a matching result; and the display order of the at least one category is determined according to the matching result from high to low.
- the most recent action keyword is “eat”
- the category is: catering, news, books
- the matching degree is 50%
- the matching degree between “eat” and “book” is 30%
- the order of presentation is: catering > news > books.
- the matching degree may be preset by the degree of association between the action keyword and the search content corresponding to the category, for example, the matching degree between “eat” and “food” is 100%, “eat” The match with "News" is 30%.
- the display order of the multiple categories with the same matching degree in the current interface is determined according to a preset order. For example, if the match between "eat” and “news” and “book” is 40%, if the preset order is "news" > "books", the search with the category "news” can be searched. Show before the search for the category "Books.”
- step 404 by means of semantic recognition, "eat” is identified from the chat content in the input box closest to the current time point, and at least one category can still be sorted according to the action keyword.
- the description of step 404 is not described in detail herein.
- step 407 at least one category, and corresponding search content in at least one category are displayed in the order of presentation, and the process ends.
- step 408 if there is no action keyword in the chat record, the latest action keyword in the chat record is failed, and the display order of at least one category is determined according to the preset display order, and the search content is displayed in the display order according to the display order. Chat interface, the process ends.
- the preset display order may be preset by the instant chat tool or the input method software, or may be set by the user according to the requirement of the search information.
- the preset display order is the search content whose category is video. In the forefront, followed by the category is the search content of music, again the category is the search content of the book, namely: video > music > books, etc., if the user sets according to the needs of their search information, instant chat tool or input method
- the software can set the appropriate options for user-defined settings.
- FIG. 5 is a schematic flowchart of an information search method according to an exemplary embodiment of the present invention.
- This embodiment uses the foregoing method provided by the embodiment of the present disclosure to search for a picture when a picture in a chat box is included in the input box.
- the search content is shared to the communication peer as an example and is exemplarily described with reference to FIG. 1B. As shown in FIG. 5, the following steps are included:
- step 501 it is determined whether the chat content in the input box includes a picture. If the chat content in the input box includes a picture, step 502 is performed. If the chat content in the input box includes a picture, according to FIG. 1A above, The manner in any of the embodiments of Figures 2A and 3A determines the search content and categorizes the search content.
- step 502 if the chat content in the input box contains a picture, the picture is sent to the server.
- step 503 the search server searches for the search content related to the picture and the category corresponding to the search content.
- step 504 the search content is classified and displayed on the current interface based on the category corresponding to the search content.
- the input method software performs the above steps 501 - 504 as an example for example.
- the instant chat tool can notify the input method software to the input method.
- the software sends the picture to the server 12 through the corresponding interface.
- the server 12 can be in a database corresponding to the video, audio, news, picture, and the like. Searching for the celebrity search content and determining the category corresponding to the search content.
- the search content is classified and displayed on the input method interface according to the category corresponding to the search content, for example, respectively Categories such as video, audio, news, and images are displayed on the input method interface in the form of pagination or scroll bars.
- the above-mentioned steps 501 - 504 are performed by the instant chat tool as an example.
- the instant chat tool sends the picture to the server 12 through the corresponding interface.
- the server 12 After the server 12 identifies the picture, for example, the picture is a person's face feature, the server 12 can search for the celebrity's search content in the database corresponding to the video, audio, news, picture, and the like and determine the search content.
- the category the instant chat tool receives the search content and the category corresponding to the search content, and displays the search content in the chat interface based on the category corresponding to the search content, for example, paging, video, audio, news, pictures, etc. The way the scroll bar is displayed on the chat interface.
- the input method software or the live chat tool installed on the electronic device 11 may identify image key information in the picture (for example, a face feature in a picture or a text in a picture, etc.) by an image recognition method, or
- the image recognition software installed on the electronic device 11 identifies the image key information in the image (for example, the face feature in the picture or the text in the picture, etc.) by the image recognition method when the instant chat tool needs to send the image, and the image is captured.
- the key information is sent to the server 12, which searches for search content matching the image key information from a plurality of databases, and transmits the search content to the electronic device 11.
- the search content required by the user is displayed based on the features in the image, so that the chat process of the user is more intuitive.
- FIG. 6A is a schematic flowchart diagram of an information searching method according to an exemplary embodiment 5
- FIG. 6B is a scene diagram of an information search method according to an exemplary embodiment 5; the information search method may be applied to a server, which is exemplarily illustrated in conjunction with FIG. 1B, as shown in FIG. 6A, the information search The method includes the following steps 601-603:
- step 601 at least one keyword from the electronic device is received, and the at least one keyword is recognized by the electronic device from the chat content when it detects that the chat content in the input box needs to be sent to the communication peer.
- step 602 the search content matching the at least one keyword and the at least one category in which the search content is classified and stored are found.
- step 603 the search content and the at least one category are transmitted to the electronic device.
- the server 12 may correspond to a plurality of database servers.
- the server 12 searches for the search content in the database server 121, the database server 122, the database server 12N, and N is the number of database servers.
- each database server stores a category of search content, or each database server can search the Internet for search content consistent with the category of the database server according to the instructions of the server 12, for example, a database
- the category of the server 121 is news, and the database server 121 can acquire and store news-type Internet information from the Internet in real time or periodically.
- the server side can be implemented in a distributed manner, reducing the pressure on the server to store search content.
- the server 12 may sequentially search the database server 121, the database server 122, ..., the database server 12N for a search that matches at least one keyword.
- Content for example, at least one keyword includes a "game of power”
- the server 12 needs to search for a search content matching the "game of power" in the database server 121, the database server 122, ..., the database server 12N, for example,
- 10 videos related to "games of power” are searched, 5 news related to "games of power” are searched in the database server 122, and games related to "power" are not searched on other database servers.
- server 12 can have 10 videos related to "Game of Thrones” and 5 and "rights"
- the related game of the game is transmitted to the electronic device 11 as search content, and further, since the category related to the search content is video and news, the video and news can be transmitted to the electronic device 11 as two categories.
- the server 12 receives the picture from the electronic device 11, the image is recognized by the image, the picture key information in the picture is extracted, and the key information of the picture is searched from the database server 121, the database server 122, ..., the database server 12N.
- the matching search content; the search content matching the picture key information and the category corresponding to the database in which the search content is located are sent to the electronic device 11. Searching for the content that the user needs based on the features in the image makes the user's chat process more intuitive.
- the search content searched by the server based on the at least one keyword and the category corresponding to the search content are displayed on the current interface, and since at least one keyword is obtained based on the content in the input box of the user, the search content and the chat can be ensured.
- the topic is closely related, and by searching for content, the user can directly obtain the information that the user needs.
- FIG. 7 is a schematic structural diagram of an information search apparatus according to an exemplary embodiment. As shown in FIG. 7, the information search apparatus includes:
- the first sending module 71 is configured to: when it is detected that the chat content in the input box needs to be sent to the communication peer, send at least one keyword in the chat content to the server;
- the first receiving module 72 is configured to receive, by the server, the search content and the search content that are searched based on the at least one keyword sent by the first sending module 71, at least one category that is classified and stored in the server;
- the category display module 73 is configured to display the search content received by the first receiving module 72 on the current interface based on the at least one category received by the first receiving module 72.
- FIG. 8 is a schematic structural diagram of another information search apparatus according to an exemplary embodiment.
- the first sending module 71 include:
- the information identification sub-module 711 is configured to identify the text information in the chat message when the input text content is detected in the input box of the instant chat tool, and obtain the input box At least one keyword in the chat content;
- the sending submodule 712 is configured to send at least one keyword of the chat content identified by the information identifying submodule 711 to the server.
- the apparatus may further include:
- the event detection module 74 is configured to detect, on the current interface displayed by the category display module 73, whether there is a sharing trigger event for the search content;
- the second sending module 75 is configured to send the search content to be shared to the communication peer when the event detecting module 74 detects that there is a sharing triggering event for the search content.
- FIG. 9 is a schematic structural diagram of still another information search apparatus according to an exemplary embodiment. As shown in FIG. 9, on the basis of any of the foregoing embodiments shown in FIG. 6-8, in an embodiment, classification The display module 73 can include:
- the first display sub-module 731 is configured to display the search content classification on the input method interface based on the at least one category;
- the second presentation sub-module 732 is configured to display the search content classification on the chat interface based on the at least one category.
- FIG. 10 is a schematic structural diagram of still another information search apparatus according to an exemplary embodiment. As shown in FIG. 10, on the basis of the foregoing embodiments shown in FIG. 6 to FIG. 9, in an embodiment, classification is performed.
- the display module 73 can include:
- the obtaining submodule 733 is configured to acquire the most recent action keyword in the chat record when receiving at least one category from the server;
- the first determining sub-module 734 is configured to determine, according to the most recent action keyword acquired by the obtaining sub-module 733, the displayed order of the received at least one category;
- the third presentation sub-module 735 is configured to display at least one category, and corresponding search content in the at least one category, according to the display order determined by the first determining sub-module 734.
- the first determining submodule 734 can be specifically configured to:
- the display order of the at least one category is determined according to the preset display order.
- the first determining submodule 734 can be specifically configured to:
- the order of displaying the multiple categories with the same matching degree on the current interface is determined according to the preset order.
- FIG. 11 is a schematic structural diagram of still another information searching apparatus according to an exemplary embodiment. As shown in FIG. 11, on the basis of any of the foregoing embodiments shown in FIG. 7 to FIG. 10, in an embodiment, when When the first sending module needs to send the communication content to the communication peer to include the picture in the chat content, the first sending module 71 is further configured to send the picture to the server as at least one keyword, or
- the device may also include:
- the information identification module 76 is configured to identify the picture that the first sending module 71 needs to send to the communication peer, and the first sending module 71 sends the picture key information recognized by the information identifying module 76 to the server as at least one keyword.
- FIG. 12 is a schematic structural diagram of still another information search apparatus according to an exemplary embodiment. As shown in FIG. 12, the information search apparatus may include:
- the second receiving module 81 is configured to receive at least one keyword from the electronic device, where the at least one keyword is recognized by the electronic device from the chat content when detecting that the chat content in the input box needs to be sent to the communication peer;
- the first searching module 82 is configured to search for the search content that matches the at least one keyword received by the second receiving module 81 and determine at least one category in which the search content is classified and stored;
- the third sending module 83 is configured to send the search content and the at least one category found by the first searching module 82 to the electronic device.
- FIG. 13 is a schematic structural diagram of still another information searching apparatus according to an exemplary embodiment. As shown in FIG. 13, on the basis of the foregoing embodiment shown in FIG. 12, in an embodiment, the first lookup module 82 can include:
- the first search sub-module 821 is configured to sequentially search, in a plurality of databases, search content that matches at least one keyword, and each of the plurality of databases corresponds to one category;
- the second determining sub-module 822 is configured to determine, by the category corresponding to the database in which the search content found by the first search sub-module 821 is located, at least one category in which the search content is classified and stored.
- the information search device further includes:
- the obtaining module 84 is configured to control multiple databases to obtain Internet content corresponding to each category from the Internet in real time or periodically;
- the storage module 85 is configured to store the Internet content acquired by the obtaining module 84 into a corresponding database according to respective corresponding categories, so that the first searching module 82 searches for a search content matching the at least one keyword from the database and Determining at least one category in which the search content is classified and stored.
- the information search device further includes:
- the image recognition module 86 is configured to perform image recognition on the picture when the second receiving module 81 receives the picture from the electronic device, and extract the picture key information in the picture;
- the second searching module 87 is configured to search, from the plurality of databases, the search content that matches the picture key information recognized by the image recognition module 86;
- the third sending module 83 is further configured to send, to the electronic device, the search content matched by the second search module 87 and the category corresponding to the database in which the search content is located.
- FIG. 14 is a block diagram suitable for an information search apparatus, according to an exemplary embodiment.
- the device 1400 can be a mobile phone with a camera, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
- apparatus 1400 can include one or more of the following components: processing component 1402, memory 1404, power component 1406, multimedia component 1408, audio component 1410, input/output (I/O) interface 1412, sensor component 1414, And a communication component 1416.
- Processing component 1402 typically controls the overall operation of device 1400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
- Processing component 1402 can include one or more processors 1420 to execute instructions to perform all or part of the steps of the above described methods.
- processing component 1402 can include one or more modules to facilitate interaction between component 1402 and other components.
- processing component 1402 can include a multimedia module to facilitate interaction between multimedia component 1408 and processing component 1402.
- Memory 1404 is configured to store various types of data to support operation at device 1400. Examples of such data include instructions for any application or method operating on device 1400, contact data, phone book data, messages, pictures, videos, and the like.
- the memory 1404 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable.
- SRAM static random access memory
- EEPROM electrically erasable programmable read only memory
- EPROM Programmable Read Only Memory
- PROM Programmable Read Only Memory
- ROM Read Only Memory
- Magnetic Memory Flash Memory
- Disk Disk or Optical Disk.
- Power component 1406 provides power to various components of device 1400.
- Power component 1406 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 1400.
- the multimedia component 1408 includes a screen between the device 1400 and the user that provides an output interface.
- the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
- the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
- the multimedia component 1408 includes a front camera and/or a rear camera. When the device 1400 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or rear The camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
- the audio component 1410 is configured to output and/or input an audio signal.
- the audio component 1410 includes a microphone (MIC) that is configured to receive an external audio signal when the device 1400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
- the received audio signal may be further stored in memory 1404 or transmitted via communication component 1416.
- the audio component 1410 also includes a speaker for outputting an audio signal.
- the I/O interface 1412 provides an interface between the processing component 1402 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
- Sensor assembly 1414 includes one or more sensors for providing a status assessment of various aspects to device 1400.
- sensor component 1414 can detect an open/closed state of device 1400, a relative positioning of components, such as the display and keypad of device 1400, and sensor component 1414 can also detect a change in position of one component of device 1400 or device 1400. The presence or absence of contact by the user with the device 1400, the orientation or acceleration/deceleration of the device 1400 and the temperature change of the device 1400.
- Sensor assembly 1414 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
- Sensor assembly 1414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
- the sensor component 1414 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
- Communication component 1416 is configured to facilitate wired or wireless communication between device 1400 and other devices.
- the device 1400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
- communication component 1416 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
- the communication component 1416 also includes a near field communication (NFC) module to facilitate short range communication.
- NFC near field communication
- the NFC module can be based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies. achieve.
- RFID radio frequency identification
- IrDA infrared data association
- UWB ultra-wideband
- Bluetooth Bluetooth
- device 1400 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 A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the above information search method, the method comprising:
- ASICs application specific integrated circuits
- DSPs digital signal processors
- DSPDs digital signal processing devices
- PLDs programmable logic devices
- FPGA field programmable A gate array
- controller microcontroller, microprocessor or other electronic component implementation for performing the above information search method, the method comprising:
- At least one keyword in the chat content is sent to the server; the search content and the search content found by the receiving server based on the at least one keyword are classified and stored in the server. At least one category; based on at least one category, the search content is classified in the current interface.
- a non-transitory computer readable storage medium comprising instructions, such as a memory 1404 comprising instructions executable by processor 1420 of apparatus 1400 to perform the above method.
- 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, and an optical data storage device.
- the processor 1420 is configured to:
- At least one keyword in the chat content is sent to the server; the search content and the search content found by the receiving server based on the at least one keyword are classified and stored in the server. At least one category; based on at least one category, the search content is classified in the current interface.
- FIG. 15 is a block diagram suitable for an information search apparatus, according to an exemplary embodiment.
- device 1500 can be provided as a server that can correspond to multiple database servers.
- apparatus 1500 includes a processing component 1522 that further includes one or more processors, and memory resources represented by memory 1532 for storing instructions executable by processing component 1522, such as an application.
- An application stored in memory 1532 can include one or more modules each corresponding to a set of instructions.
- the processing component 1522 is configured to execute instructions to perform the information search method described above, the method comprising:
- Apparatus 1500 can also include a power supply component 1526 configured to perform power management of apparatus 1500, a wired or wireless network interface 1550 configured to connect apparatus 1500 to the network, and an input/output (I/O) interface 1558.
- Device 1500 can operate based on an operating system stored in memory 1532, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
- non-transitory computer readable storage medium comprising instructions, such as a memory 1532 comprising instructions executable by processing component 1522 of apparatus 1500 to perform the above method.
- the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
- a non-transitory computer readable storage medium when executed by a processor of a mobile terminal/server, enables a mobile terminal/server to perform an information search method, the method comprising:
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Library & Information Science (AREA)
- Multimedia (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Information Transfer Between Computers (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本公开是关于一种信息搜索方法、装置、电子设备及服务器。所述方法包括:当检测到需要向通信对端发送输入框中的聊天内容时,将所述聊天内容中的至少一个关键词发送至服务器;接收所述服务器基于所述至少一个关键词查找到的搜索内容和所述搜索内容在所述服务器被分类存储的至少一个类别;基于所述至少一个类别,将所述搜索内容分类展示在当前界面。本公开技术方案可以确保搜索内容与聊天主题密切相关,通过搜索内容可以使用户直接获取到用户需要的信息,避免从即时聊天工具到浏览器,再由浏览器到即时聊天工具之间的切换操作,确保用户在即时聊天过程中需要搜索与输入框中的聊天内容相关的信息时不中断与通信对端的即时聊天过程。
Description
本公开涉及信息处理技术领域,尤其涉及一种信息搜索方法、装置、电子设备及服务器。
相关技术中,如果用户需要通过搜索引擎将搜索到的内容分享给聊天对方,用户需要开启浏览器,在浏览器中输入搜索引擎的链接地址,之后在搜索引擎页面上输入需要搜索的关键词,搜索引擎通过关键词找到搜索结果后,用户拷贝链接地址或者拷贝页面上的内容,再通过即时聊天工具将链接地址或者页面上的内容粘贴后分享给聊天对方。
发明内容
为克服相关技术中存在的问题,本公开实施例提供一种信息搜索方法、装置、电子设备及服务器,用以确保用户在即时聊天过程中需要搜索与聊天内容相关的信息时不中断与聊天对方的即时聊天过程。
根据本公开实施例的第一方面,提供一种信息搜索方法,包括:
当检测到需要向通信对端发送输入框中的聊天内容时,将所述聊天内容中的至少一个关键词发送至服务器;
接收所述服务器基于所述至少一个关键词查找到的搜索内容和所述搜索内容在所述服务器被分类存储的至少一个类别;
基于所述至少一个类别,将所述搜索内容分类展示在当前界面。
在一实施例中,当检测到需要向通信对端发送输入框中的聊天内容
时,将所述聊天内容中的至少一个关键词发送至服务器,包括:
当检测到即时聊天工具的输入框中有已输入聊天内容时,对聊天内容中的文本信息进行识别,得到该聊天内容中的至少一个关键词;
将所述聊天内容中的至少一个关键词发送至服务器。
在一实施例中,所述方法还可包括:
在所述搜索内容分类展示的当前界面上检测是否有对搜索内容的分享触发事件;
当检测到有对搜索内容的分享触发事件时,将待分享的搜索内容发送至所述通信对端。
在一实施例中,所述基于所述至少一个类别,将所述搜索内容分类展示在当前界面,包括:
基于所述至少一个类别,将所述搜索内容分类展示在输入法界面;或,
基于所述至少一个类别,将所述搜索内容分类展示在聊天界面。
在一实施例中,所述基于所述至少一个类别,将所述搜索内容分类展示在当前界面,可包括:
当从所述服务器接收到所述至少一个类别时,获取聊天记录或者所述聊天内容中最近的动作关键词;
根据所述最近的动作关键词确定接收到的所述至少一个类别的展示顺序;
按照所述展示顺序展示所述至少一个类别,及所述至少一个类别中各自对应的搜索内容。
在一实施例中,所述方法可包括:
若获取聊天记录或者所述聊天内容中最近的动作关键词失败,则根据预设的展示顺序确定所述至少一个类别的展示顺序。
在一实施例中,所述根据所述最近的动作关键词确定接收到的所述至少一个类别的展示顺序,包括:
判断最近的动作关键词与所述至少一个类别之间的匹配度,得到匹配结果;
根据所述匹配结果由高至低的顺序确定所述至少一个类别的展示顺序;
若所述匹配结果中有匹配度相同的多个类别,则按照预设顺序确定所述匹配度相同的多个类别在所述当前界面的展示顺序。
在一实施例中,所述方法还可包括:
当检测到需要向通信对端发送输入框中的聊天内容中包括图片时,将所述图片作为至少一个关键词发送至所述服务器,或,对所述图片进行识别,将识别到的图片关键信息作为至少一个关键词发送至所述服务器。
根据本公开实施例的第二方面,提供一种信息搜索方法,包括:
接收来自电子设备的至少一个关键词,所述至少一个关键词是由所述电子设备在检测到需要向通信对端发送输入框中的聊天内容时从所述聊天内容中识别到的;
查找与所述至少一个关键词相匹配的搜索内容并确定所述搜索内容被分类存储的至少一个类别;
将所述搜索内容以及所述至少一个类别发送给所述电子设备。
在一实施例中,所述查找与所述至少一个关键词相匹配的搜索内容并确定所述搜索内容被分类存储的至少一个类别,可包括:
依次在多个数据库中查找与所述至少一个关键词相匹配的搜索内容,所述多个数据库各自对应一个类别;
将搜索内容所在的数据库对应的类别确定所述搜索内容被分类存储的至少一个类别。
在一实施例中,所述方法还可包括:
控制所述多个数据库实时性或者周期性地从互联网获取各个类别对应的互联网内容;
将所述互联网内容根据各自对应的类别存储到对应的数据库中。
在一实施例中,所述方法还可包括:
当接收到来自电子设备的图片时,对所述图片进行图像识别,提取出所述图片中的图片关键信息;
从所述多个数据库中查找与所述图片关键信息相匹配的搜索内容;
将与所述图片关键信息相匹配的搜索内容和搜索内容所在的数据库对应的类别发送至所述电子设备。
根据本公开实施例的第三方面,提供一种信息搜索装置,包括:
第一发送模块,被配置为当检测到需要向通信对端发送输入框中的聊天内容时,将所述聊天内容中的至少一个关键词发送至服务器;
第一接收模块,被配置为接收所述服务器基于所述第一发送模块发送的所述至少一个关键词查找到的搜索内容和所述搜索内容在所述服务器被分类存储的至少一个类别;
分类展示模块,被配置为基于所述第一接收模块接收到的所述至少一个类别,将所述第一接收模块接收到的所述搜索内容分类展示在当前界面。
在一实施例中,所述第一发送模块可包括:
信息识别子模块,被配置为当检测到即时聊天工具的输入框中有已输入文本内容时,对聊天消息中的文本信息进行识别,得到该输入框中的聊天内容中的至少一个关键词;
发送子模块,被配置为将所述信息识别子模块识别到的所述聊天内容中的至少一个关键词发送至服务器。
在一实施例中,所述装置还可包括:
事件检测模块,被配置为在所述搜索内容分类展示的当前界面上检测是否有对搜索内容的分享触发事件;
第二发送模块,被配置为当所述事件检测模块检测到有对搜索内容的分享触发事件时,将待分享的搜索内容发送至所述通信对端。
在一实施例中,所述分类展示模块可包括:
第一展示子模块,被配置为基于所述至少一个类别,将所述搜索内容分类展示在输入法界面;或,
第二展示子模块,被配置为基于所述至少一个类别,将所述搜索内容分类展示在聊天界面。
在一实施例中,所述分类展示模块可包括:
获取子模块,被配置为当从所述服务器接收到所述至少一个类别时,获取聊天记录或者所述聊天内容中最近的动作关键词;
第一确定子模块,被配置为根据所述第二获取子模块获取到的所述最近的动作关键词确定接收到的所述至少一个类别的展示顺序;
第三展示子模块,被配置为按照所述第一确定子模块确定的所述展示顺序展示所述至少一个类别,及所述至少一个类别中各自对应的搜索内容;
在一实施例中,所述第一确定子模块具体被配置为:
若所述第二获取子模块获取所述聊天记录中最近的动作关键词失败,则根据预设的展示顺序确定所述至少一个类别的展示顺序。
在一实施例中,所述第一确定子模块具体被配置为:
判断最近的动作关键词与所述至少一个类别之间的匹配度,得到匹配结果;
根据所述匹配结果由高至低的顺序确定所述至少一个类别的展示顺序;
若所述匹配结果中有匹配度相同的多个类别,则按照预设顺序确定所述匹配度相同的多个类别在所述当前界面的展示顺序。
在一实施例中,当检测到所述第一发送模块需要向通信对端发送输入框中内容中包括图片时,所述第一发送模块还被配置为将所述图片作为至少一个关键词发送至所述服务器,或,
所述装置还可包括:
信息识别模块,被配置为对所述第一发送模块需要向通信对端发送
的所述图片进行识别,所述第一发送模块将所述信息识别模块识别到的图片关键信息作为至少一个关键词发送至所述服务器。
根据本公开实施例的第四方面,提供一种信息搜索装置,包括:
第二接收模块,被配置为接收来自电子设备的至少一个关键词,所述至少一个关键词由所述电子设备在检测到需要向通信对端发送输入框中的聊天内容时从所述聊天内容中识别到的;
第一查找模块,被配置为查找与所述第二接收模块接收到的所述至少一个关键词相匹配的搜索内容并确定所述搜索内容被分类存储的至少一个类别;
第三发送模块,被配置为将所述第一查找模块查找到的所述搜索内容以及所述至少一个类别发送给所述电子设备。
在一实施例中,所述第一查找模块可包括:
第一查找子模块,被配置为依次在多个数据库中查找与所述至少一个关键词相匹配的搜索内容,所述多个数据库各自对应一个类别;
第二确定子模块,被配置为将所述第一查找子模块查找到的所述搜索内容所在的数据库对应的类别确定所述搜索内容被分类存储的至少一个类别。
在一实施例中,所述装置还可包括:
获取模块,被配置为控制所述多个数据库实时性或者周期性地从互联网获取各个类别对应的互联网内容;
存储模块,被配置为将所述获取模块获取到的所述互联网内容根据各自对应的类别存储到对应的数据库中。
在一实施例中,所述装置还可包括:
图像识别模块,被配置为当所述第二接收模块接收到来自电子设备的图片时,对所述图片进行图像识别,提取出所述图片中的图片关键信息;
第二查找模块,被配置为从所述多个数据库中查找与所述图像识别模块识别到的所述图片关键信息相匹配的搜索内容;
所述第三发送模块还被配置为将所述第二查找模块查找到的与所述图片关键信息相匹配的搜索内容和搜索内容所在的数据库对应的类别发送至所述电子设备。
根据本公开实施例的第五方面,提供一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
当检测到需要向通信对端发送输入框中的聊天内容时,将所述聊天内容中的至少一个关键词发送至服务器;
接收所述服务器基于所述至少一个关键词查找到的搜索内容和所述搜索内容在所述服务器被分类存储的至少一个类别;
基于所述至少一个类别,将所述搜索内容分类展示在当前界面。
根据本公开实施例的第六方面,提供一种服务器,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
接收来自电子设备的至少一个关键词,所述至少一个关键词由所述电子设备在检测到需要向通信对端发送输入框中的聊天内容时从所述聊天内容中识别到的;
查找与所述至少一个关键词相匹配的搜索内容并确定所述搜索内容被分类存储的至少一个类别;
将所述搜索内容以及所述至少一个类别发送给所述电子设备。
本公开的实施例提供的技术方案可以包括以下有益效果:
在用户与通信对端的聊天过程中,通过将输入框中的聊天内容中的至少一个关键词发送至服务器,并将服务器基于至少一个关键词查找到的搜索内容和搜索内容对应的类别展示在当前界面,由于至少一个关键词是基于用户的输入框中的聊天内容获取的,因此可以确保搜索内容与聊天主
题密切相关,通过搜索内容可以使用户直接获取到用户需要的信息,避免从即时聊天工具到浏览器,再由浏览器到即时聊天工具之间的切换操作,确保了用户在即时聊天过程中需要搜索与聊天内容相关的信息时不中断与通信对端的即时聊天过程。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。
图1A是根据一示例性实施例示出的信息搜索方法的流程示意图。
图1B是根据一示例性实施例一示出的信息搜索方法的场景图。
图2A是根据一示例性实施例一示出的信息搜索方法的流程示意图。
图2B是根据一示例性实施例一示出的信息搜索方法的场景图之一。
图2C是根据一示例性实施例一示出的信息搜索方法的场景图之二。
图3A是根据一示例性实施例二示出的信息搜索方法的流程示意图。
图3B是根据一示例性实施例二示出的信息搜索方法的场景图之一。
图3C是根据一示例性实施例二示出的信息搜索方法的场景图之二。
图4A是根据一示例性实施例三示出的信息搜索方法的流程示意图。
图4B是根据一示例性实施例三示出的信息搜索方法的场景图之一。
图4C是根据一示例性实施例三示出的信息搜索方法的场景图之二。
图5是根据一示例性实施例四示出的信息搜索方法的流程示意图。
图6A是根据一示例性实施例五示出的信息搜索方法的流程示意图。
图6B是根据一示例性实施例五示出的信息搜索方法的场景图。
图7是根据一示例性实施例示出的一种信息搜索装置的结构示意图。
图8是根据一示例性实施例示出的另一种信息搜索装置的结构示意图。
图9是根据一示例性实施例示出的又一种信息搜索装置的结构示意图。
图10是根据一示例性实施例示出的再一种信息搜索装置的结构示意图。
图11是根据一示例性实施例示出的再一种信息搜索装置的结构示意图。
图12是根据一示例性实施例示出的再一种信息搜索装置的结构示意图。
图13是根据一示例性实施例示出的再一种信息搜索装置的结构示意图。
图14是根据一示例性实施例示出的一种适用于信息搜索装置的框图。
图15是根据一示例性实施例示出的另一种适用于信息搜索装置的框图。
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。
图1A是根据一示例性实施例示出的信息搜索方法的流程示意图,图1B是根据一示例性实施例一示出的信息搜索方法的场景图;该信息搜索方法可以应用在电子设备(例如:智能手机、平板电脑、个人计算机等
设备)上,可以通过在电子设备上安装即时聊天工具的方式实现,如图1A所示,该信息搜索方法包括以下步骤101-103:
在步骤101中,当检测到需要向通信对端发送输入框中的聊天内容时,将聊天内容中的至少一个关键词发送至服务器。
在一实施例中,输入法软件可以通过与即时聊天工具的交互,来确定即时聊天工具的输入框中是否已经有需要发送给通信对端的输入框中的聊天内容,当输入框中有需要发送给通信对端的聊天内容时,输入法软件可以对聊天内容中的文本信息进行识别,得到该聊天内容中的至少一个关键词。在一实施例中,聊天内容即可以包括文本信息,也可以包括图片,当包括文本信息时,可以将文本信息中的关键词视为本公开中的至少一个关键词,当包括图片时,可以将图片中的图片关键信息视为本公开中的关键词,其中,对于图片中的图片关键信息,既可以通过服务器识别,也可以本地识别。
在步骤102中,接收服务器基于至少一个关键词查找到的搜索内容和搜索内容在服务器被分类存储的至少一个类别。
在一实施例中,服务器可以包含多个不同类别的数据库,每一个类别的数据库存储有该类别对应的信息,其中,类别可以为视频、音频、图片、图书、新闻等等,服务器可以根据该至少一个关键词从服务器的全部类别中确定该至少一个关键词对应的至少一个类别,然后从类别对应的数据库中获取到与关键词相匹配的搜索内容。在一实施例中,服务器可以从互联网上抓取到最新的内容信息,将内容信息按照类别存储到不同类别的数据库中。
在步骤103中,基于至少一个类别,将搜索内容分类展示在当前界面。
在一实施例中,搜索内容既可以展示在即时聊天工具的聊天界面上,也可以展示在输入法软件对应的输入法界面上。在聊天界面或者输入法界面分类展示搜索内容时,在一实施例中,可以在搜索界面或者输入法界面
的侧边设置滚动条的方式,即时聊天工具或者输入法软件通过监听滚动条的滚动为用户展示每个类别对应的搜索内容,在另一实施例中,可以在搜索界面或者输入法界面采用多页的方式展示每个类别下的搜索内容,每一页可包含一个类别对应的搜索内容。
在一示例性场景中,以输入法软件为九宫格输入法软件为例进行示例性说明,如图1B所示,用户Simon使用电子设备11与小白(可视为本公开中的通信对端)通过一即时聊天工具111进行即时聊天,当小白向Simon发送了“你喜欢看的电影是什么”时,Simon基于九宫格输入法112向即时聊天工具的输入框113中输入了“权力的游戏”,九宫格输入法112通过对输入框113中的文本信息进行语义识别,得到关键词为“权力的游戏”,将“权力的游戏”发送至服务器12,服务器12基于“权力的游戏”在影视、音频等数据库中查找搜索内容,并将服务器中查找到的搜索内容与搜索内容对应的类别返回给电子设备11,例如,将链接地址“http://v.qq.com/x/cover/54ntb912jygjxd7.html”与该链接对应的类别“视频”返回给电子设备11。电子设备11可以基于影视、音频等类别,将搜索内容展示在当前界面。
本实施例中,在用户与通信对端的聊天过程中,通过将输入框中的聊天内容中的至少一个关键词发送至服务器,并将服务器基于至少一个关键词查找到的搜索内容和搜索内容对应的类别展示在当前界面,由于至少一个关键词是基于用户的输入框中的聊天内容获取的,因此可以确保搜索内容与聊天主题密切相关,通过搜索内容可以使用户直接获取到用户需要的信息,避免从即时聊天工具到浏览器,再由浏览器到即时聊天工具之间的切换操作,确保了用户在即时聊天过程中需要搜索与聊天内容相关的信息时不中断与通信对端的即时聊天过程。
在一实施例中,当检测到需要向通信对端发送输入框中的聊天内容时,将聊天内容中的至少一个关键词发送至服务器,包括:
当检测到即时聊天工具的输入框中有已输入聊天内容时,对聊天内
容中的文本信息进行识别,得到该输入框中的聊天内容中的至少一个关键词;
将聊天内容中的至少一个关键词发送至服务器。
在一实施例中,方法还可包括:
在搜索内容分类展示的当前界面上检测是否有对搜索内容的分享触发事件;
当检测到有对搜索内容的分享触发事件时,将待分享的搜索内容发送至通信对端。
在一实施例中,基于至少一个类别,将搜索内容分类展示在当前界面,包括:
基于至少一个类别,将搜索内容分类展示在输入法界面;或,
基于至少一个类别,将搜索内容分类展示在聊天界面。
在一实施例中,基于至少一个类别,将搜索内容分类展示在当前界面,包括:
当从服务器接收到至少一个类别时,获取聊天记录或者聊天内容中最近的动作关键词;
根据最近的动作关键词确定接收到的至少一个类别的展示顺序;
按照展示顺序展示至少一个类别,及至少一个类别中各自对应的搜索内容。
在一实施例中,方法可包括:
若获取聊天界面或或者聊天内容中最近的动作关键词失败,则根据预设的展示顺序确定至少一个类别的展示顺序。
在一实施例中,根据最近的动作关键词确定接收到的至少一个类别的展示顺序,包括:
判断最近的动作关键词与至少一个类别之间的匹配度,得到匹配结果;
根据匹配结果由高至低的顺序确定至少一个类别的展示顺序;
若匹配结果中有匹配度相同的多个类别,则按照预设顺序确定匹配度相同的多个类别在当前界面的展示顺序。
在一实施例中,方法还可包括:
当检测到需要向通信对端发送输入框中的聊天内容中包括图片时,将图片作为至少一个关键词发送至服务器,或,对图片进行识别,将识别到的图片关键信息作为至少一个关键词发送至服务器。
具体如何实现信息搜索的,请参考后续实施例。
至此,本公开实施例提供的上述方法,可以确保搜索内容与聊天主题密切相关,通过搜索内容可以使用户直接获取到用户需要的信息,避免从即时聊天工具到浏览器,再由浏览器到即时聊天工具之间的切换操作,确保用户在即时聊天过程中需要搜索与输入框中的聊天内容相关的信息时不中断与通信对端的即时聊天过程。
下面以具体实施例来说明本公开实施例提供的技术方案。
图2A是根据一示例性实施例一示出的信息搜索方法的流程示意图,图2B是根据一示例性实施例一示出的信息搜索方法的场景图之一,图2C是根据一示例性实施例一示出的信息搜索方法的场景图之二;本实施例利用本公开实施例提供的上述方法,以当前界面为输入法界面并且通过输入法软件对来自服务器的搜索内容进行分类展示为例并结合图1B进行示例性说明,如图2A所示,包括如下步骤:
在步骤201中,检测输入法界面中的文本内容是否已输入至即时聊天工具的输入框中,当文本内容已输入至即时聊天工具的输入框中时,执行步骤202,当文本内容未输入至即时聊天工具的输入框中时,输入法软件保持监听状态。
在一实施例中,可以通过输入法软件来检测输入法界面中的文本内容是否已经输入至即时聊天工具的输入框中,如图1B所示,当输入法软件检测到输入按键115被触发时,确定当前的文本内容已经输入至即时聊天工具的输入框114中。
在步骤202中,当文本内容已输入至即时聊天工具的输入框中时,将文本内容确定为输入框中的聊天内容,并确定检测到需要向通信对端发送该聊天内容。
在步骤203中,当检测到需要向通信对端发送该聊天内容时,对聊天消息中的文本信息进行识别,得到该该聊天内容中的至少一个关键词,将该聊天内容中的至少一个关键词发送至服务器。
在步骤204中,接收服务器基于至少一个关键词查找到的搜索内容和搜索内容在服务器被分类存储的至少一个类别。
步骤203-步骤204的描述可以参见上述图1A所示实施例的描述,在此不再详述。
在步骤205中,基于至少一个类别,将搜索内容分类展示在输入法界面。
如图2B所示,在输入法界面112上,显示了类别为视频的“权力的游戏”的相关搜索内容,该搜索内容包含了链接、该链接对应的名称以及视频的相关信息。
在步骤206中,在输入法界面上检测是否有第一预设触发事件,当输入法界面上有第一预设触发事件时,执行步骤207,当输入法界面上无第一预设触发事件时,输入法软件继续保持检测状态。
在步骤207中,当输入法界面上有第一预设触发事件时,确定与第一预设触发事件对应的搜索内容。
在步骤208中,将与第一预设触发事件对应的搜索内容发送至通信对端。
在一示例性场景中,第一预设触发事件可以为输入法界面112上的发送按键触发事件或者分享按键触发事件,如图2C所示,当用户Simon需要将该链接发送给小白时,可以通过触发在输入法界面112上的发送按键116,输入法软件在监听到发送按键116被触发后,将发送按键116对应的链接直接发送至通信对端(小白)。在一实施例中,输入法界面上的
发送按键116可以与即时聊天工具的发送按键接口相通,由此可以使用户通过输入法软件即可将需要共享的搜索内容直接发送给即时聊天工具的通信对端。
本实施例在具有上述实施例的有益技术效果的基础上,通过在输入法界面上直接向通信对端发送需要共享的搜索内容,减少了用户在即时聊天时需要分享信息的操作,提高了用户分享搜索内容的效率。
图3A是根据一示例性实施例二示出的信息搜索方法的流程示意图,图3B是根据一示例性实施例二示出的信息搜索方法的场景图之一,图3C是根据一示例性实施例二示出的信息搜索方法的场景图之二;本实施例利用本公开实施例提供的上述方法,以当前界面为即时聊天工具的聊天界面并且通过即时聊天工具对来自服务器的搜索内容进行分类展示为例并结合图1B进行示例性说明,如图3A所示,包括如下步骤:
在步骤301中,确定即时聊天工具的输入框中是否已输入文本内容,当输入框中已输入文本内容时,执行步骤302,当输入框中无输入文本内容时,即时聊天工具保持检测状态。
在一实施例中,可以通过即时聊天工具与输入法软件的实时交互来检测输入框中的文本内容,如图1B所示,即时聊天工具可以与输入法软件进行实时交互,当输入法软件的输入按键115被触发时,输入法软件可以通知即时聊天工具已经将文本内容输入至输入框114中。
在步骤302中,当输入框中已输入文本内容时,将文本内容确定为输入框中的聊天内容,并确定检测到需要向通信对端发送输入框中的聊天内容。
在步骤303中,当检测到需要向通信对端发送输入框中内容时,对聊天消息中的文本信息进行识别,得到该输入框中内容中的至少一个关键词,将输入框中内容中的至少一个关键词发送至服务器。
在步骤304中,接收服务器基于至少一个关键词查找到的搜索内容和搜索内容在服务器被分类存储的至少一个类别。
步骤303-步骤304的描述可以参见上述图1A所示实施例的描述,在此不再详述。
在步骤305中,基于至少一个类别,将搜索内容分类展示在聊天界面。
如图3B所示,在即时聊天工具的聊天界面117上,显示了类别为视频的“权力的游戏”的相关搜索内容,该搜索内容包含了链接、该链接对应的名称以及视频的相关信息。
在步骤306中,在聊天界面上检测是否有第二预设触发事件,当聊天界面上有第二预设触发事件时,执行步骤307。
在步骤307中,当聊天界面上有第二预设触发事件时,将与第二预设触发事件对应的链接显示在所述即时聊天工具的输入框。
在步骤308中,当在聊天界面上检测到第三预设触发事件时,将与链接对应的搜索内容发送至通信对端。
在一示例性场景中,第二预设触发事件可以为聊天界面117上的发送按键触发事件或者分享按键触发事件,如图3B所示,当用户Simon需要将该链接发送给小白时,可以通过在聊天界面117上选中需要共享的搜索内容,当触发该搜索内容时,将该搜索内容的链接地址展示在即时聊天工具的输入框113中,当即时聊天工具监听到发送按键114被触发后,将发送按键114对应的链接直接发送至通信对端(小白),如图3C,链接地址显示在了聊天记录中。其中,从搜索内容中选中需要共享的搜索内容的操作事件可视为本公开中的第二预设触发事件,由发送按键114触发的事件可视为本公开中的第三预设触发事件。
本实施例在具有上述实施例的有益技术效果的基础上,通过在聊天界面上直接向通信对端发送需要共享的搜索内容,确保了用户可以直接通过即时聊天工具即时分享信息,提高了用户分享搜索内容的效率。
图4A是根据一示例性实施例三示出的信息搜索方法的流程示意图,图4B是根据一示例性实施例三示出的信息搜索方法的场景图之一,图4C
是根据一示例性实施例三示出的信息搜索方法的场景图之二;本实施例利用本公开实施例提供的上述方法,以如何在当前界面上对搜索内容进行排序为例并结合图1B进行示例性说明,如图4A所示,包括如下步骤:
在步骤401中,确定输入框中的聊天内容中是否存在与至少一个关键词相关联的动作关键词,若聊天内容中存在动作关键词,执行步骤402,若输入框中内容中不存在动作关键词,执行步骤404。
在一实施例中,动作关键词可以为预设的动词,例如,看、听,去、查、吃,由此,可以将“看”与视频、图书、新闻等类别对应,将“听”与音乐对应,将“去”与地图对应、将“查”与百科对应,将“吃”与餐饮对应,其中,视频、图书、新闻、音乐、地图、百科、餐饮各对应一个类别。在一实施例中,可以通过语义识别的方式识别输入框113中的聊天内容中的动作关键词,如图4B所示,小白向Simon发送了“你喜欢吃什么”,Simon通过输入法软件向即时聊天工具的输入框113输入了“喜欢吃海底捞”,则输入法软件或者即时聊天工具可以通过语义识别的方式,从该条聊天内容中识别出动作关键词为“吃”,至少一个关键词包括“海底捞”。
在步骤402中,若聊天内容中存在动作关键词,根据动作关键词对至少一个类别排序。
在步骤403中,基于排序后的至少一个类别,将搜索内容分类展示在聊天界面,流程结束。
例如,通过上述图1A、图2A、图3A中的任意一个实施例获取到搜索内容后,例如,通过图4B的输入框113中的聊天内容中识别到“吃”,则可以将服务器12返回的全部搜索内容中类别为“餐饮”的搜索内容排在最前面或者最前页,其它类别的搜索内容(例如,类别为“新闻”、“图书”对应的搜索内容)排在类别为“餐饮”的搜索内容的后面。
在步骤404中,若聊天内容中不存在动作关键词,获取聊天记录。
如图4C所示,小白向Simon发送了“你喜欢吃什么”,Simon通过
输入法软件向输入框113中输入的聊天内容为“海底捞”,由于“海底捞”中不存在动作关键词“吃”,为了确保搜索内容紧扣聊天主题,输入法软件或者即时聊天工具可以获取及时聊天工具的聊天记录,例如,最近的一条聊天记录为小白发送的“你喜欢吃什么”。
在步骤405中,确定聊天记录中是否存在动作关键词,若聊天记录中存在动作关键词,执行步骤406,若聊天记录中不存在动作关键词,执行步骤408。
在步骤406中,若聊天记录中存在动作关键词,根据最近的动作关键词确定接收到的至少一个类别的展示顺序。
在一实施例中,可以判断最近的动作关键词与至少一个类别之间的匹配度,得到匹配结果;根据匹配结果由高至低的顺序确定至少一个类别的展示顺序。例如,最近的动作关键词为“吃”,类别为:餐饮、新闻、图书,则可以判断“吃”与“餐饮”之间的匹配度为100%,“吃”与“新闻”之间的匹配度为50%,“吃”与“图书”之间的匹配度为30%,则展示顺序为:餐饮>新闻>图书。在一实施例中,匹配度可以通过动作关键词与类别对应的搜索内容之间的关联程度来预先设定,例如,“吃”与“餐饮”之间的匹配度为100%,“吃”与“新闻”之间的匹配度为30%。
在另一实施例中,若匹配结果中有匹配度相同的多个类别,则按照预设顺序确定匹配度相同的多个类别在当前界面的展示顺序。例如,“吃”与“新闻”和“图书”之间的匹配度均为40%的情形下,如果预设顺序为“新闻”>“图书”,则可以将类别为“新闻”的搜索内容展示在类别为“图书”的搜索内容之前。
在一实施例中,通过语义识别的方式从该条距离当前时间点最近的输入框中的聊天内容中识别出“吃”,则仍可以根据动作关键词对至少一个类别排序,相关描述可以参见步骤404的描述,在此不再详述。
在步骤407中,按照展示顺序展示至少一个类别,及至少一个类别中各自对应的搜索内容,流程结束。
在步骤408中,若聊天记录中没有动作关键词在,则获取聊天记录中最近的动作关键词失败,根据预设的展示顺序确定至少一个类别的展示顺序,基于展示顺序将搜索内容分类展示在聊天界面,流程结束。
在一实施例中,预设的展示顺序可以由即时聊天工具或者输入法软件预先设置,也可以由用户根据其搜索信息的需求来设置,例如,预设的展示顺序为类别是视频的搜索内容排在最前面,其次为类别是音乐的搜索内容,再次是类别为图书的搜索内容,即:视频>音乐>图书等,如果由用户根据其搜索信息的需求来设置,即时聊天工具或者输入法软件可以设置相应的选项供用户自定义设置。
本实施例中,通过对至少一个类别进行排序,基于排序后的至少一个类别将搜索内容分类展示在聊天界面上,可以确保能够将与当前的聊天主题相关的搜索内容排在较佳的位置,避免用户从全部搜索内容中查找需要分享的搜索内容,提高用户分享搜索内容的效率。
图5是根据一示例性实施例四示出的信息搜索方法的流程示意图;本实施例利用本公开实施例提供的上述方法,以输入框中的聊天内容中包含图片时如何针对图片进行搜索并将搜索内容共享给通信对端为例并结合图1B进行示例性说明,如图5所示,包括如下步骤:
在步骤501中,确定输入框中的聊天内容中是否包含有图片,若输入框中的聊天内容中包含图片,执行步骤502,若输入框中的聊天内容中包含图片,可按照上述图1A、图2A、图3A中任意实施例中的方式确定搜索内容并分类展示搜索内容。
在步骤502中,若输入框中的聊天内容中包含图片,将图片发送至服务器。
在步骤503中,接收服务器根据图片查找到的与图片相关的搜索内容和搜索内容对应的类别。
在步骤504中,基于搜索内容对应的类别,将搜索内容分类展示在当前界面。
在一示例性场景中,以输入法软件执行上述步骤501-步骤504为例进行示例性说明,当用户需要向通信对端发送图片时,即时聊天工具可以将图片通知给输入法软件,输入法软件通过相应的接口将图片发送至服务器12,服务器12对图片进行识别后,例如,图片上为一名人的人脸特征,则服务器12可以在视频、音频、新闻、图片等类别对应的数据库中查找该名人的搜索内容并确定搜索内容对应的类别,输入法软件接收到搜索内容和搜索内容对应的类别后,基于搜索内容对应的类别,将搜索内容分类展示在输入法界面,例如,分别将视频、音频、新闻、图片等类别以分页或者滚动条的方式展示在输入法界面上。
在另一示例性场景中,以即时聊天工具执行上述步骤501-步骤504为例进行示例性说明,当用户需要向通信对端发送图片时,即时聊天工具通过相应的接口将图片发送至服务器12,服务器12对图片进行识别后,例如,图片上为一名人的人脸特征,则服务器12可以在视频、音频、新闻、图片等类别对应的数据库中查找该名人的搜索内容并确定搜索内容对应的类别,即时聊天工具接收到搜索内容和搜索内容对应的类别后,基于搜索内容对应的类别,将搜索内容分类展示在聊天界面,例如,分别将视频、音频、新闻、图片等类别以分页或者滚动条的方式展示在聊天界面上。
可替换地,安装在电子设备11上的输入法软件或者即时聊天工具可以通过图像识别的方法识别图片中的图像关键信息(例如,图片中的人脸特征或者图片中的文字等),或者,安装在电子设备11上的图像识别软件在即时聊天工具需要发送图片时,通过图像识别的方法识别图片中的图像关键信息(例如,图片中的人脸特征或者图片中的文字等),将图像关键信息发送至服务器12,服务器12从多个数据库中查找与图像关键信息相匹配的搜索内容,并将搜索内容发送至电子设备11。
本实施例中,当用户与通信对端的聊天内容涉及到图片时,基于图片中的特征展示用户需要的搜索内容,使得用户的聊天过程更具直观性。
图6A是根据一示例性实施例五示出的信息搜索方法的流程示意图,
图6B是根据一示例性实施例五示出的信息搜索方法的场景图;该信息搜索方法可以应用在服务器上,本实施例结合图1B进行示例性说明,如图6A所示,该信息搜索方法包括以下步骤601-603:
在步骤601中,接收来自电子设备的至少一个关键词,至少一个关键词由电子设备在检测到需要向通信对端发送输入框中的聊天内容时从聊天内容中识别到的。
在步骤602中,查找到与至少一个关键词相匹配的搜索内容和搜索内容被分类存储的至少一个类别。
在步骤603中,将搜索内容以及至少一个类别发送给电子设备。
如图6B所示,在一示例性场景中,服务器12可对应多个数据库服务器,例如,服务器12在数据库服务器121、数据库服务器122、…数据库服务器12N中查找搜索内容,N为数据库服务器的数量,为正整数,每一台数据库服务器存储有一个类别的搜索内容,或者,每一台数据库服务器可以根据服务器12的指令从互联网上搜索与该数据库服务器的类别相一致的搜索内容,例如,数据库服务器121的类别为新闻,则数据库服务器121可以实时性或者周期性的从互联网上获取新闻类的互联网信息并存储。通过将数据库以多台数据库服务器的方式实现,可以使服务器侧能够以分布式的方式实现,减轻服务器存储搜索内容的压力。
在一实施例中,服务器12在接收到来自电子设备11的至少一个关键词时,可以依次在数据库服务器121、数据库服务器122、…、数据库服务器12N中查找搜索与至少一个关键词相匹配的搜索内容,例如,至少一个关键词包括“权力的游戏”,服务器12需要通过在数据库服务器121、数据库服务器122、…、数据库服务器12N中查找与“权力的游戏”相匹配的搜索内容,例如,在数据库服务器121中搜索到了10个与“权力的游戏”相关的视频,在数据库服务器122中搜索到了5个与“权力的游戏”相关的新闻,未在其它数据库服务器上搜索到与“权力的游戏”相关的内容,则服务器12可以将10个与“权力的游戏”相关的视频和5个与“权
力的游戏”相关的新闻作为搜索内容发送给电子设备11,此外,由于搜索内容涉及到的类别为视频和新闻,则视频和新闻可以作为两个类别发送给电子设备11。
此外,当服务器12接收到来自电子设备11的图片时,对图片进行图像识别,提取出图片中的图片关键信息,从数据库服务器121、数据库服务器122、…、数据库服务器12N中查找与图片关键信息相匹配的搜索内容;将与图片关键信息相匹配的搜索内容和搜索内容所在的数据库对应的类别发送至电子设备11。基于图片中的特征搜索用户需要的内容,使得用户的聊天过程更具直观性。
本实施例中,服务器基于至少一个关键词查找到的搜索内容和搜索内容对应的类别展示在当前界面,由于至少一个关键词是基于用户的输入框中内容获取的,因此可以确保搜索内容与聊天主题密切相关,通过搜索内容可以使用户直接获取到用户需要的信息。
图7是根据一示例性实施例示出的一种信息搜索装置的结构示意图,如图7所示,信息搜索装置包括:
第一发送模块71,被配置为当检测到需要向通信对端发送输入框中的聊天内容时,将聊天内容中的至少一个关键词发送至服务器;
第一接收模块72,被配置为接收服务器基于第一发送模块71发送的至少一个关键词查找到的搜索内容和搜索内容在服务器被分类存储的至少一个类别;
分类展示模块73,被配置为基于第一接收模块72接收到的至少一个类别,将第一接收模块72接收到的搜索内容分类展示在当前界面。
图8是根据一示例性实施例示出的另一种信息搜索装置的结构示意图,如图8所示,在上述图7所示实施例的基础上,在一实施例中,第一发送模块71包括:
信息识别子模块711,被配置为当检测到即时聊天工具的输入框中有已输入文本内容时,对聊天消息中的文本信息进行识别,得到该输入框
中的聊天内容中的至少一个关键词;
发送子模块712,被配置为将信息识别子模块711识别到的聊天内容中的至少一个关键词发送至服务器。
在一实施例中,装置还可包括:
事件检测模块74,被配置为在分类展示模块73展示的当前界面上检测是否有对搜索内容的分享触发事件;
第二发送模块75,被配置为当事件检测模块74检测到有对搜索内容的分享触发事件时,将待分享的搜索内容发送至通信对端。
图9是根据一示例性实施例示出的又一种信息搜索装置的结构示意图,如图9所示,在上述图6-图8任意所示实施例的基础上,在一实施例中,分类展示模块73可包括:
第一展示子模块731,被配置为基于至少一个类别,将搜索内容分类展示在输入法界面;或,
第二展示子模块732,被配置为基于至少一个类别,将搜索内容分类展示在聊天界面。
图10是根据一示例性实施例示出的再一种信息搜索装置的结构示意图,如图10所示,在上述图6-图9任意所示实施例的基础上,在一实施例中,分类展示模块73可包括:
获取子模块733,被配置为当从服务器接收到至少一个类别时,获取聊天记录中最近的动作关键词;
第一确定子模块734,被配置为根据获取子模块733获取到的最近的动作关键词确定接收到的至少一个类别的展示顺序;
第三展示子模块735,被配置为按照第一确定子模块734确定的展示顺序展示至少一个类别,及至少一个类别中各自对应的搜索内容。
在一实施例中,第一确定子模块734具体可被配置为:
若获取子模块733获取聊天记录或者聊天内容中最近的动作关键词失败,则根据预设的展示顺序确定至少一个类别的展示顺序。
在一实施例中,第一确定子模块734具体可被配置为:
判断最近的动作关键词与至少一个类别之间的匹配度,得到匹配结果;
根据匹配结果由高至低的顺序确定至少一个类别的展示顺序;
若匹配结果中有匹配度相同的多个类别,则按照预设顺序确定匹配度相同的多个类别在当前界面的展示顺序。
图11是根据一示例性实施例示出的再一种信息搜索装置的结构示意图,如图11所示,在上述图7-图10任意所示实施例的基础上,在一实施例中,当检测到第一发送模块需要向通信对端发送输入框中的聊天内容中包括图片时,第一发送模块71还被配置为将图片作为至少一个关键词发送至服务器,或,
装置还可包括:
信息识别模块76,被配置为对第一发送模块71需要向通信对端发送的图片进行识别,第一发送模块71将信息识别模块76识别到的图片关键信息作为至少一个关键词发送至服务器。
图12是根据一示例性实施例示出的再一种信息搜索装置的结构示意图,如图12所示,信息搜索装置可包括:
第二接收模块81,被配置为接收来自电子设备的至少一个关键词,至少一个关键词由电子设备在检测到需要向通信对端发送输入框中的聊天内容时从聊天内容中识别到的;
第一查找模块82,被配置为查找与第二接收模块81接收到的至少一个关键词相匹配的搜索内容并确定搜索内容被分类存储的至少一个类别;
第三发送模块83,被配置为将第一查找模块82查找到的搜索内容以及至少一个类别发送给电子设备。
图13是根据一示例性实施例示出的再一种信息搜索装置的结构示意图,如图13所示,在上述图12所示实施例的基础上,在一实施例中,
第一查找模块82可包括:
第一查找子模块821,被配置为依次在多个数据库中查找与至少一个关键词相匹配的搜索内容,多个数据库各自对应一个类别;
第二确定子模块822,被配置为将第一查找子模块821查找到的搜索内容所在的数据库对应的类别确定搜索内容被分类存储的至少一个类别。
在一实施例中,信息搜索装置还包括:
获取模块84,被配置为控制多个数据库实时性或者周期性地从互联网获取各个类别对应的互联网内容;
存储模块85,被配置为将获取模块84获取到的互联网内容根据各自对应的类别存储到对应的数据库中,以供第一查找模块82从数据库中查找与至少一个关键词相匹配的搜索内容并确定搜索内容被分类存储的至少一个类别。
在一实施例中,信息搜索装置还包括:
图像识别模块86,被配置为当第二接收模块81接收到来自电子设备的图片时,对图片进行图像识别,提取出图片中的图片关键信息;
第二查找模块87,被配置为从多个数据库中查找与图像识别模块86识别到的图片关键信息相匹配的搜索内容;
第三发送模块83还被配置为将第二查找模块87查找到的与图片关键信息相匹配的搜索内容和搜索内容所在的数据库对应的类别发送至电子设备。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图14是根据一示例性实施例示出的一种适用于信息搜索装置的框图。例如,装置1400可以是具有摄像头的移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等电子设备。
参照图14,装置1400可以包括以下一个或多个组件:处理组件1402,存储器1404,电源组件1406,多媒体组件1408,音频组件1410,输入/输出(I/O)的接口1412,传感器组件1414,以及通信组件1416。
处理组件1402通常控制装置1400的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件1402可以包括一个或多个处理器1420来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1402可以包括一个或多个模块,便于处理组件1402和其他组件之间的交互。例如,处理部件1402可以包括多媒体模块,以方便多媒体组件1408和处理组件1402之间的交互。
存储器1404被配置为存储各种类型的数据以支持在设备1400的操作。这些数据的示例包括用于在装置1400上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1404可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电力组件1406为装置1400的各种组件提供电力。电力组件1406可以包括电源管理系统,一个或多个电源,及其他与为装置1400生成、管理和分配电力相关联的组件。
多媒体组件1408包括在所述装置1400和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1408包括一个前置摄像头和/或后置摄像头。当设备1400处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后
置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件1410被配置为输出和/或输入音频信号。例如,音频组件1410包括一个麦克风(MIC),当装置1400处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1404或经由通信组件1416发送。在一些实施例中,音频组件1410还包括一个扬声器,用于输出音频信号。
I/O接口1412为处理组件1402和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件1414包括一个或多个传感器,用于为装置1400提供各个方面的状态评估。例如,传感器组件1414可以检测到设备1400的打开/关闭状态,组件的相对定位,例如所述组件为装置1400的显示器和小键盘,传感器组件1414还可以检测装置1400或装置1400一个组件的位置改变,用户与装置1400接触的存在或不存在,装置1400方位或加速/减速和装置1400的温度变化。传感器组件1414可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1414还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1414还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件1416被配置为便于装置1400和其他设备之间有线或无线方式的通信。装置1400可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件1416经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件1416还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来
实现。
在示例性实施例中,装置1400可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述信息搜索方法,方法包括:
当检测到需要向通信对端发送输入框中的聊天内容时,将聊天内容中的至少一个关键词发送至服务器;接收服务器基于至少一个关键词查找到的搜索内容和搜索内容在服务器被分类存储的至少一个类别;基于至少一个类别,将搜索内容分类展示在当前界面。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1404,上述指令可由装置1400的处理器1420执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。处理器1420被配置为:
当检测到需要向通信对端发送输入框中的聊天内容时,将聊天内容中的至少一个关键词发送至服务器;接收服务器基于至少一个关键词查找到的搜索内容和搜索内容在服务器被分类存储的至少一个类别;基于至少一个类别,将搜索内容分类展示在当前界面。
图15是根据一示例性实施例示出的一种适用于信息搜索装置的框图。例如,装置1500可以被提供为一服务器,该服务器可对应多台数据库服务器。参照图15,装置1500包括处理组件1522,其进一步包括一个或多个处理器,以及由存储器1532所代表的存储器资源,用于存储可由处理部件1522的执行的指令,例如应用程序。存储器1532中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1522被配置为执行指令,以执行上述信息搜索方法,方法包括:
接收来自电子设备的至少一个关键词,至少一个关键词由电子设备在检测到需要向通信对端发送输入框中的聊天内容时从聊天内容中识别到
的;查找与至少一个关键词相匹配的搜索内容并确定搜索内容被分类存储的至少一个类别;将搜索内容以及至少一个类别发送给电子设备。
装置1500还可以包括一个电源组件1526被配置为执行装置1500的电源管理,一个有线或无线网络接口1550被配置为将装置1500连接到网络,和一个输入输出(I/O)接口1558。装置1500可以操作基于存储在存储器1532的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1532,上述指令可由装置1500的处理组件1522执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
一种非临时性计算机可读存储介质,当存储介质中的指令由移动终端/服务端的处理器执行时,使得移动终端/服务端能够执行一种信息搜索方法,方法包括:
接收来自电子设备的至少一个关键词,至少一个关键词由电子设备在检测到需要向通信对端发送输入框中的聊天内容时从聊天内容中识别到的;查找与至少一个关键词相匹配的搜索内容并确定搜索内容被分类存储的至少一个类别;将搜索内容以及至少一个类别发送给电子设备。
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围
仅由所附的权利要求来限制。
Claims (26)
- 一种信息搜索方法,其特征在于,所述方法包括:当检测到需要向通信对端发送输入框中的聊天内容时,将所述聊天内容中的至少一个关键词发送至服务器;接收所述服务器基于所述至少一个关键词查找到的搜索内容和所述搜索内容在所述服务器被分类存储的至少一个类别;基于所述至少一个类别,将所述搜索内容分类展示在当前界面。
- 根据权利要求1所述的方法,其特征在于,所述当检测到需要向通信对端发送输入框中的聊天内容时,将所述聊天内容中的至少一个关键词发送至服务器,包括:当检测到即时聊天工具的输入框中有已输入聊天内容时,对所述聊天内容中的文本信息进行识别,得到该聊天内容中的至少一个关键词;将所述聊天内容中的至少一个关键词发送至服务器。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:在所述搜索内容分类展示的当前界面上检测是否有对搜索内容的分享触发事件;当检测到有对搜索内容的分享触发事件时,将待分享的搜索内容发送至所述通信对端。
- 根据权利要求1所述的方法,其特征在于,所述基于所述至少一个类别,将所述搜索内容分类展示在当前界面,包括:基于所述至少一个类别,将所述搜索内容分类展示在输入法界面;或,基于所述至少一个类别,将所述搜索内容分类展示在聊天界面。
- 根据权利要求1所述的方法,其特征在于,所述基于所述至少一个类别,将所述搜索内容分类展示在当前界面,包括:当从所述服务器接收到所述至少一个类别时,获取聊天记录或者所述聊天内容中最近的动作关键词;根据所述最近的动作关键词确定接收到的所述至少一个类别的展示顺序;按照所述展示顺序展示所述至少一个类别,及所述至少一个类别中各自对应的搜索内容。
- 根据权利要求5所述的方法,其特征在于,所述方法还包括:若获取所述聊天记录或者所述聊天内容中最近的动作关键词失败,则根据预设的展示顺序确定所述至少一个类别的展示顺序。
- 根据权利要求5所述的方法,其特征在于,所述根据所述最近的动作关键词确定接收到的所述至少一个类别的展示顺序,包括:判断最近的动作关键词与所述至少一个类别之间的匹配度,得到匹配结果;根据所述匹配结果由高至低的顺序确定所述至少一个类别的展示顺序;若所述匹配结果中有匹配度相同的多个类别,则按照预设顺序确定所述匹配度相同的多个类别在所述当前界面的展示顺序。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:当检测到需要向通信对端发送输入框中的聊天内容中包括图片时,将所述图片作为至少一个关键词发送至所述服务器,或,对所述图片进行识别,将识别到的图片关键信息作为至少一个关键词发送至所述服务器。
- 一种信息搜索方法,其特征在于,所述方法包括:接收来自电子设备的至少一个关键词,所述至少一个关键词由所述电子设备在检测到需要向通信对端发送输入框中的聊天内容时从所述聊天内容中识别到的;查找与所述至少一个关键词相匹配的搜索内容并确定所述搜索内容被分类存储的至少一个类别;将所述搜索内容以及所述至少一个类别发送给所述电子设备。
- 根据权利要求9所述的方法,其特征在于,所述查找与所述至少 一个关键词相匹配的搜索内容并确定所述搜索内容被分类存储的至少一个类别,包括:依次在多个数据库中查找与所述至少一个关键词相匹配的搜索内容,所述多个数据库各自对应一个类别;将搜索内容所在的数据库对应的类别确定所述搜索内容被分类存储的至少一个类别。
- 根据权利要求10所述的方法,其特征在于,所述方法还包括:控制所述多个数据库实时性或者周期性地从互联网获取各个类别对应的互联网内容;将所述互联网内容根据各自对应的类别存储到对应的数据库中。
- 根据权利要求10所述的方法,其特征在于,所述方法还包括:当接收到来自电子设备的图片时,对所述图片进行图像识别,提取出所述图片中的图片关键信息;从所述多个数据库中查找与所述图片关键信息相匹配的搜索内容;将与所述图片关键信息相匹配的搜索内容和搜索内容所在的数据库对应的类别发送至所述电子设备。
- 一种信息搜索装置,其特征在于,所述装置包括:第一发送模块,被配置为当检测到需要向通信对端发送输入框中的聊天内容时,将所述聊天内容中的至少一个关键词发送至服务器;第一接收模块,被配置为接收所述服务器基于所述第一发送模块发送的所述至少一个关键词查找到的搜索内容和所述搜索内容在所述服务器被分类存储的至少一个类别;分类展示模块,被配置为基于所述第一接收模块接收到的所述至少一个类别,将所述第一接收模块接收到的所述搜索内容分类展示在当前界面。
- 根据权利要求13所述的装置,其特征在于,所述第一发送模块包括:信息识别子模块,被配置为当检测到即时聊天工具的输入框中有已输 入文本内容时,对聊天消息中的文本信息进行识别,得到该输入框中的聊天内容中的至少一个关键词;发送子模块,被配置为将所述信息识别子模块识别到的所述聊天内容中的至少一个关键词发送至服务器。
- 根据权利要求13所述的装置,其特征在于,所述装置还包括:事件检测模块,被配置为在所述搜索内容分类展示的当前界面上检测是否有对搜索内容的分享触发事件;第二发送模块,被配置为当所述事件检测模块检测到有对搜索内容的分享触发事件时,将待分享的搜索内容发送至所述通信对端。
- 根据权利要求13所述的装置,其特征在于,所述分类展示模块包括:第一展示子模块,被配置为基于所述至少一个类别,将所述搜索内容分类展示在输入法界面;或,第二展示子模块,被配置为基于所述至少一个类别,将所述搜索内容分类展示在聊天界面。
- 根据权利要求13所述的装置,其特征在于,所述分类展示模块包括:获取子模块,被配置为当从所述服务器接收到所述至少一个类别时,获取聊天记录或者所述聊天内容中最近的动作关键词;第一确定子模块,被配置为根据所述获取子模块获取到的所述最近的动作关键词确定接收到的所述至少一个类别的展示顺序;第三展示子模块,被配置为按照所述第一确定子模块确定的所述展示顺序展示所述至少一个类别,及所述至少一个类别中各自对应的搜索内容。
- 根据权利要求17所述的装置,其特征在于,所述第一确定子模块具体被配置为:若所述获取子模块获取所述聊天记录或者所述聊天内容中最近的动作关键词失败,则根据预设的展示顺序确定所述至少一个类别的展示顺序。
- 根据权利要求17所述的装置,其特征在于,所述第一确定子模块具体被配置为:判断最近的动作关键词与所述至少一个类别之间的匹配度,得到匹配结果;根据所述匹配结果由高至低的顺序确定所述至少一个类别的展示顺序;若所述匹配结果中有匹配度相同的多个类别,则按照预设顺序确定所述匹配度相同的多个类别在所述当前界面的展示顺序。
- 根据权利要求13所述的装置,其特征在于,当检测到所述第一发送模块需要向通信对端发送所述输入框中的聊天内容中包括图片时,所述第一发送模块还被配置为将所述图片作为至少一个关键词发送至所述服务器,或,所述装置还包括:信息识别模块,被配置为对所述第一发送模块需要向通信对端发送的所述图片进行识别,所述第一发送模块将所述信息识别模块识别到的图片关键信息作为至少一个关键词发送至所述服务器。
- 一种信息搜索装置,其特征在于,所述装置包括:第二接收模块,被配置为接收来自电子设备的至少一个关键词,所述至少一个关键词由所述电子设备在检测到需要向通信对端发送输入框中的聊天内容时从所述聊天内容中识别到的;第一查找模块,被配置为查找与所述第二接收模块接收到的所述至少一个关键词相匹配的搜索内容并确定所述搜索内容被分类存储的至少一个类别;第三发送模块,被配置为将所述第一查找模块查找到的所述搜索内容以及所述至少一个类别发送给所述电子设备。
- 根据权利要求21所述的装置,其特征在于,所述第一查找模块包括:第一查找子模块,被配置为依次在多个数据库中查找与所述至少一个关键词相匹配的搜索内容,所述多个数据库各自对应一个类别;第二确定子模块,被配置为将所述第一查找子模块查找到的所述搜索内容所在的数据库对应的类别确定所述搜索内容被分类存储的至少一个类别。
- 根据权利要求22所述的装置,其特征在于,所述装置还包括:获取模块,被配置为控制所述多个数据库实时性或者周期性地从互联网获取各个类别对应的互联网内容;存储模块,被配置为将所述获取模块获取到的所述互联网内容根据各自对应的类别存储到对应的数据库中。
- 根据权利要求22所述的装置,其特征在于,所述装置还包括:图像识别模块,被配置为当所述第二接收模块接收到来自电子设备的图片时,对所述图片进行图像识别,提取出所述图片中的图片关键信息;第二查找模块,被配置为从所述多个数据库中查找与所述图像识别模块识别到的所述图片关键信息相匹配的搜索内容;所述第三发送模块还被配置为将所述第二查找模块查找到的与所述图片关键信息相匹配的搜索内容和搜索内容所在的数据库对应的类别发送至所述电子设备。
- 一种电子设备,其特征在于,所述电子设备包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:当检测到需要向通信对端发送输入框中的聊天内容时,将所述聊天内容中的至少一个关键词发送至服务器;接收所述服务器基于所述至少一个关键词查找到的搜索内容和所述搜索内容在所述服务器被分类存储的至少一个类别;基于所述至少一个类别,将所述搜索内容分类展示在当前界面。
- 一种服务器,其特征在于,所述服务器包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:接收来自电子设备的至少一个关键词,所述至少一个关键词由所述电子设备在检测到需要向通信对端发送输入框中的聊天内容时从所述聊天内容中识别到的;查找与所述至少一个关键词相匹配的搜索内容并确定所述搜索内容被分类存储的至少一个类别;将所述搜索内容以及所述至少一个类别发送给所述电子设备。
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201680000760.XA CN106605224B (zh) | 2016-08-15 | 2016-08-15 | 信息搜索方法、装置、电子设备及服务器 |
PCT/CN2016/095359 WO2018032271A1 (zh) | 2016-08-15 | 2016-08-15 | 信息搜索方法、装置、电子设备及服务器 |
EP17183103.5A EP3285185A1 (en) | 2016-08-15 | 2017-07-25 | Information retrieval method and apparatus, electronic device and server, computer program and recording medium |
US15/721,736 US10990623B2 (en) | 2016-08-15 | 2017-09-30 | Information retrieval method, eletronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2016/095359 WO2018032271A1 (zh) | 2016-08-15 | 2016-08-15 | 信息搜索方法、装置、电子设备及服务器 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US15/721,736 Continuation US10990623B2 (en) | 2016-08-15 | 2017-09-30 | Information retrieval method, eletronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018032271A1 true WO2018032271A1 (zh) | 2018-02-22 |
Family
ID=58582639
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/095359 WO2018032271A1 (zh) | 2016-08-15 | 2016-08-15 | 信息搜索方法、装置、电子设备及服务器 |
Country Status (4)
Country | Link |
---|---|
US (1) | US10990623B2 (zh) |
EP (1) | EP3285185A1 (zh) |
CN (1) | CN106605224B (zh) |
WO (1) | WO2018032271A1 (zh) |
Families Citing this family (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11121991B2 (en) * | 2017-07-03 | 2021-09-14 | Mycelebs Co., Ltd. | User terminal and search server providing a search service using emoticons and operating method thereof |
CN107402702A (zh) | 2017-07-17 | 2017-11-28 | 北京小米移动软件有限公司 | 运营入口获取方法和装置 |
CN107453980A (zh) * | 2017-07-26 | 2017-12-08 | 北京小米移动软件有限公司 | 即时通信中问题响应方法及装置 |
CN108306814B (zh) * | 2017-08-11 | 2020-07-28 | 腾讯科技(深圳)有限公司 | 基于即时通讯的信息推送方法、装置、终端及存储介质 |
CN110494835A (zh) * | 2017-12-20 | 2019-11-22 | 华为技术有限公司 | 一种控制方法及装置 |
CN108491535B (zh) * | 2018-03-29 | 2023-04-07 | 北京小米移动软件有限公司 | 信息的分类存储方法及装置 |
CN108520046B (zh) * | 2018-03-30 | 2022-04-22 | 上海掌门科技有限公司 | 搜索聊天记录的方法及设备 |
CN110472206A (zh) * | 2018-05-09 | 2019-11-19 | 成都野望数码科技有限公司 | 一种信息搜索方法、装置以及终端设备 |
CN108768824B (zh) * | 2018-05-15 | 2023-03-31 | 腾讯科技(深圳)有限公司 | 信息处理方法及装置 |
CN108874975A (zh) * | 2018-06-08 | 2018-11-23 | Oppo(重庆)智能科技有限公司 | 搜索内容推荐方法、装置、终端设备及存储介质 |
CN110717011B (zh) * | 2018-06-27 | 2022-08-16 | 北京百度网讯科技有限公司 | 会话消息处理方法和装置 |
CN110929058B (zh) * | 2018-08-30 | 2023-01-31 | 北京蓝灯鱼智能科技有限公司 | 商标图片的检索方法、装置、存储介质及电子装置 |
CN109151225A (zh) * | 2018-09-04 | 2019-01-04 | 北京小鱼在家科技有限公司 | 通话处理方法、装置和通话设备 |
CN109857293B (zh) * | 2018-12-28 | 2021-04-13 | 维沃移动通信有限公司 | 显示方法及终端设备 |
CN109710088B (zh) * | 2018-12-29 | 2022-12-27 | 北京金山安全软件有限公司 | 一种信息搜索方法及装置 |
CN110532459A (zh) * | 2019-09-02 | 2019-12-03 | 深圳传音控股股份有限公司 | 检索方法 |
CN111368110B (zh) * | 2020-02-18 | 2023-10-17 | 深圳传音控股股份有限公司 | 图库搜索方法、终端及计算机存储介质 |
CN113589955B (zh) * | 2020-04-30 | 2024-07-26 | 北京搜狗科技发展有限公司 | 一种数据处理方法、装置和电子设备 |
US11023688B1 (en) * | 2020-05-27 | 2021-06-01 | Roblox Corporation | Generation of text tags from game communication transcripts |
CN111752448A (zh) * | 2020-05-28 | 2020-10-09 | 维沃移动通信有限公司 | 信息显示方法、装置及电子设备 |
US11583779B2 (en) * | 2020-06-10 | 2023-02-21 | Snap Inc. | Message interface expansion system |
CN111813236B (zh) * | 2020-06-17 | 2024-04-19 | 维沃移动通信有限公司 | 输入方法、装置、电子设备及可读存储介质 |
CN111782945B (zh) * | 2020-06-28 | 2022-11-15 | 掌阅科技股份有限公司 | 书籍搜索方法、计算设备及存储介质 |
CN112000766B (zh) * | 2020-07-15 | 2024-08-16 | 北京搜狗科技发展有限公司 | 一种数据处理方法、装置和介质 |
CN112016968A (zh) * | 2020-08-28 | 2020-12-01 | 搜索亚洲科技(深圳)有限公司 | 一种信息推送方法、装置、电子设备及存储介质 |
CN113158094B (zh) * | 2021-03-31 | 2024-03-01 | 北京达佳互联信息技术有限公司 | 信息分享方法、装置及电子设备 |
US12118051B2 (en) * | 2021-12-07 | 2024-10-15 | Samsung Electronics Co., Ltd. | Electronic device for searching for content and method thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610164A (zh) * | 2009-07-03 | 2009-12-23 | 腾讯科技(北京)有限公司 | 多人会话的实现方法、装置和系统 |
CN102298627A (zh) * | 2011-08-29 | 2011-12-28 | 上海量明科技发展有限公司 | 针对于即时通信工具提供搜索的方法及系统 |
CN102955798A (zh) * | 2011-08-25 | 2013-03-06 | 腾讯科技(深圳)有限公司 | 一种基于搜索引擎的搜索方法及搜索服务器 |
CN104917669A (zh) * | 2015-05-29 | 2015-09-16 | 北京搜狗科技发展有限公司 | 一种信息处理方法和装置 |
Family Cites Families (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6519571B1 (en) * | 1999-05-27 | 2003-02-11 | Accenture Llp | Dynamic customer profile management |
US20050198124A1 (en) * | 2004-03-03 | 2005-09-08 | Mccarthy Shawn J. | System and method for embedded instant messaging collaboration |
US7917866B1 (en) * | 2005-12-30 | 2011-03-29 | Google Inc. | Method, system, and graphical user interface for meeting-spot-related online communications |
US8756501B1 (en) * | 2005-12-30 | 2014-06-17 | Google Inc. | Method, system, and graphical user interface for meeting-spot-related introductions |
US8171424B1 (en) * | 2005-12-30 | 2012-05-01 | Google Inc. | Method, system, and graphical user interface for meeting-spot maps for online communications |
US7831917B1 (en) * | 2005-12-30 | 2010-11-09 | Google Inc. | Method, system, and graphical user interface for identifying and communicating with meeting spots |
US7797642B1 (en) * | 2005-12-30 | 2010-09-14 | Google Inc. | Method, system, and graphical user interface for meeting-spot-related contact lists |
CN101610163A (zh) * | 2009-07-03 | 2009-12-23 | 腾讯科技(北京)有限公司 | 多人会话的实现方法、装置和系统 |
US20110178881A1 (en) * | 2010-01-18 | 2011-07-21 | Pulletikurty Ravi Kumar Pulletikurty | Collaborative match making system and method with a per-profile confidential information purchase option |
US20130144951A1 (en) * | 2010-07-23 | 2013-06-06 | Smeak, Inc. | Communication management system with extensible command language to consolidate and control multiple diverse communication mechanisms |
US20140019884A1 (en) * | 2012-07-10 | 2014-01-16 | Mark Andrew Dinan | Enhanced synchronous communication channel for interactive communications between participants |
KR101390228B1 (ko) * | 2012-10-22 | 2014-05-07 | (주)카카오 | 채팅 영역에 이미지를 표시하는 디바이스 및 방법, 그리고 채팅 데이터를 관리하는 서버 |
CN103699619A (zh) * | 2013-12-18 | 2014-04-02 | 北京百度网讯科技有限公司 | 一种用于提供搜索结果的方法及装置 |
CN103812931B (zh) * | 2014-01-24 | 2015-07-29 | 腾讯科技(深圳)有限公司 | 一种用户信息共享方法、装置及系统 |
CN105005457B (zh) * | 2014-04-25 | 2019-04-09 | 腾讯科技(深圳)有限公司 | 地理位置展示方法及装置 |
US20160034977A1 (en) * | 2014-08-01 | 2016-02-04 | Yahoo! Inc. | System and method for embedded search within messaging applications |
US10706233B2 (en) * | 2015-03-06 | 2020-07-07 | M-Files Oy | System and method for extracting and utilizing information from digital communications |
CN208093769U (zh) * | 2016-04-05 | 2018-11-13 | 日本电产株式会社 | 雷达 |
WO2019122990A1 (en) * | 2017-12-23 | 2019-06-27 | Yogesh Chunilal Rathod | Providing interface for identifying one or more types of user actions & criteria specific users |
-
2016
- 2016-08-15 CN CN201680000760.XA patent/CN106605224B/zh active Active
- 2016-08-15 WO PCT/CN2016/095359 patent/WO2018032271A1/zh active Application Filing
-
2017
- 2017-07-25 EP EP17183103.5A patent/EP3285185A1/en not_active Ceased
- 2017-09-30 US US15/721,736 patent/US10990623B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610164A (zh) * | 2009-07-03 | 2009-12-23 | 腾讯科技(北京)有限公司 | 多人会话的实现方法、装置和系统 |
CN102955798A (zh) * | 2011-08-25 | 2013-03-06 | 腾讯科技(深圳)有限公司 | 一种基于搜索引擎的搜索方法及搜索服务器 |
CN102298627A (zh) * | 2011-08-29 | 2011-12-28 | 上海量明科技发展有限公司 | 针对于即时通信工具提供搜索的方法及系统 |
CN104917669A (zh) * | 2015-05-29 | 2015-09-16 | 北京搜狗科技发展有限公司 | 一种信息处理方法和装置 |
Also Published As
Publication number | Publication date |
---|---|
CN106605224A (zh) | 2017-04-26 |
CN106605224B (zh) | 2020-10-16 |
US20180046625A1 (en) | 2018-02-15 |
US10990623B2 (en) | 2021-04-27 |
EP3285185A1 (en) | 2018-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018032271A1 (zh) | 信息搜索方法、装置、电子设备及服务器 | |
WO2018058728A1 (zh) | 一种内容分享的方法及装置 | |
WO2016161807A1 (zh) | 相册显示方法及装置 | |
US20180121040A1 (en) | Method and device for managing notification messages | |
WO2017088247A1 (zh) | 输入处理方法、装置及设备 | |
WO2017016148A1 (zh) | 基于图像的通信方法及装置 | |
CN104572942A (zh) | 推送消息显示方法及装置 | |
CN106095465B (zh) | 设置身份图像的方法及装置 | |
WO2016011717A1 (zh) | 用于轻应用的消息推送方法、装置、终端及服务器 | |
WO2017020479A1 (zh) | 界面显示方法及装置 | |
CN107784045B (zh) | 一种快捷回复方法和装置、一种用于快捷回复的装置 | |
RU2663709C2 (ru) | Способ и устройство для обработки информации | |
WO2016082461A1 (zh) | 推荐信息获取方法、终端及服务器 | |
WO2016045277A1 (zh) | 信息获取方法、装置和系统 | |
WO2017096973A1 (zh) | 设备显示方法及装置 | |
US11122109B2 (en) | Method for sharing information, electronic device and non-transitory storage medium | |
WO2017148120A1 (zh) | 获取图像的方法、装置及系统 | |
WO2021164588A1 (zh) | 数据分享方法及装置 | |
WO2017185567A1 (zh) | 资源搜索方法及装置 | |
RU2606305C2 (ru) | Способ и устройство для совместного использования ресурсов | |
WO2015180382A1 (zh) | 管理即时消息的方法和装置 | |
WO2016127625A1 (zh) | 地址过滤方法及装置 | |
EP3313081A1 (en) | Operating method and apparatus | |
US20170371526A1 (en) | Method, device and medium for application switching | |
WO2016197549A1 (zh) | 一种进行搜索的方法和装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16913035 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16913035 Country of ref document: EP Kind code of ref document: A1 |