WO2016008432A1 - Method and device for searching content of page - Google Patents

Method and device for searching content of page Download PDF

Info

Publication number
WO2016008432A1
WO2016008432A1 PCT/CN2015/084245 CN2015084245W WO2016008432A1 WO 2016008432 A1 WO2016008432 A1 WO 2016008432A1 CN 2015084245 W CN2015084245 W CN 2015084245W WO 2016008432 A1 WO2016008432 A1 WO 2016008432A1
Authority
WO
WIPO (PCT)
Prior art keywords
comment
search
window
chat
user
Prior art date
Application number
PCT/CN2015/084245
Other languages
French (fr)
Chinese (zh)
Inventor
张前川
张川
赵朋来
范永广
王文明
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201410340028.XA external-priority patent/CN104133862A/en
Priority claimed from CN201410340400.7A external-priority patent/CN104156398A/en
Application filed by 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2016008432A1 publication Critical patent/WO2016008432A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present invention relates to the field of Internet applications, and in particular, to a method and an apparatus for searching page content.
  • the current search function can only provide information, tedious, lack of interaction between users, and can not provide users with the function of publishing opinions and claims, nor can it provide users with the function of chatting for search words.
  • the present invention provides a method and apparatus for searching page content to overcome the above problems or at least partially solve the above problems.
  • an embodiment of the present invention provides a method for searching page content, including:
  • Searching for search results using the search term the search results including a plurality of search terms
  • chat window is created for the comment topic in the search page according to the comment topic of the search term hit.
  • searching for the search result by using the search term includes: initiating a search request corresponding to the search term to the server, and receiving a search result fed back by the server according to the search term.
  • an embodiment of the present invention provides a device for searching a page content, including:
  • a receiving module configured to receive a search term from a user
  • search module configured to search for search results using the search term, the search results including a plurality of search entries
  • a determining module configured to determine whether the search term is a keyword that triggers a comment mechanism
  • a generating module configured to generate a comment topic according to content and/or a hot attribute of the search item if the judgment result of the determining module is yes;
  • a drawing module configured to draw a comment window for the comment topic generated by the generating module in the search page for the user to comment on the comment topic
  • a chat creation module configured to: if the judgment result of the judgment module is yes, according to the search term In the comment topic, create a chat window for the comment topic in the search page.
  • the search module is further configured to initiate a search request corresponding to the search term to the server, and receive a search result that is fed back by the server according to the search term.
  • a computer program comprising computer readable code, which when executed on a computing device causes the computing device to perform a method of searching for page content according to the above.
  • the search term after receiving the search term from the user, on the basis of searching for multiple search items by using the search term, and implementing the information search function, it is also determined whether the search term can trigger the user comment and the chat interaction. mechanism. If yes, generating a comment topic according to the content and/or the hot attribute of the plurality of search items searched by the information search function, and drawing a comment window for the generated comment topic in the search page, for the user to comment on the comment topic, or, according to Search for the topic of the hit topic, create a chat window for the comment topic in the search page, and provide the user with a chat interaction mechanism.
  • the embodiment of the present invention can not only provide the information search function, but also can draw a comment window of the comment topic on the search page, or provide a chat function for the comment topic for the user to make a comment or a live chat interaction.
  • FIG. 1 shows a process flow diagram of a search page review method in accordance with one embodiment of the present invention
  • FIG. 2A shows a first interface diagram of a hot topic comment on a search page, in accordance with one embodiment of the present invention
  • 2B shows a second interface diagram of a hot topic comment on a search page, in accordance with one embodiment of the present invention
  • FIG. 3 shows a process flow diagram of a review review mechanism in accordance with one embodiment of the present invention
  • FIG. 4A illustrates a third interface diagram of a hot topic review on a search page, in accordance with one embodiment of the present invention
  • 4B shows a fourth interface diagram of a hot topic comment on a search page, in accordance with one embodiment of the present invention
  • FIG. 5 is a diagram showing a first display of a comment when a comment window adopts a barrage mode according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram showing a second display of a comment when a comment window adopts a barrage mode according to an embodiment of the present invention
  • FIG. 7 is a third schematic diagram showing a comment when a comment window adopts a barrage mode according to an embodiment of the present invention.
  • FIG. 8 is a block diagram showing a first structure of a search page commenting apparatus according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram showing a second structure of a search page commenting apparatus according to an embodiment of the present invention.
  • FIG. 10 is a flowchart showing a process of a search page chat method according to an embodiment of the present invention.
  • 11A shows a first interface diagram of a hot topic comment on a search page, in accordance with one embodiment of the present invention
  • 11B shows a second interface diagram of a hot topic comment on a search page, in accordance with one embodiment of the present invention.
  • FIG. 12 is a flowchart showing a process of a chat content review mechanism according to an embodiment of the present invention.
  • FIG. 13A illustrates a third interface diagram of a hot topic comment on a search page, in accordance with one embodiment of the present invention
  • FIG. 13B illustrates a fourth interface diagram of a hot topic comment on a search page, in accordance with one embodiment of the present invention.
  • FIG. 14 is a schematic diagram showing a first display of a comment when a chat window adopts a barrage mode according to an embodiment of the present invention
  • FIG. 15 is a schematic diagram showing a second display of a comment when a chat window adopts a barrage mode according to an embodiment of the present invention.
  • 16 is a diagram showing a third display of a comment when a chat window adopts a barrage mode according to an embodiment of the present invention
  • FIG. 17 is a schematic diagram showing the first structure of a search page chat client according to an embodiment of the present invention.
  • FIG. 18 is a schematic diagram showing a second structure of a search page chat client according to an embodiment of the present invention.
  • Figure 19 is a schematic block diagram of a computing device for performing a method of searching page content in accordance with the present invention.
  • Figure 20 schematically illustrates a storage unit for maintaining or carrying program code that implements a method of searching page content in accordance with the present invention.
  • the content in the method for searching the page content may include a comment or a chat, and the two cases are respectively described below.
  • FIG. 1 shows a process flow diagram of a search page review method in accordance with one embodiment of the present invention. Referring to FIG. 1, the flow includes at least steps S102 to S108:
  • Step S102 Receive a search term from a user
  • Step S104 Searching for multiple search items by using the search term received in step S102;
  • Step S106 determining whether the search term received in step S102 is a keyword that triggers a comment mechanism
  • Step S108 If yes, generate a comment topic according to the content and/or the hot attribute of the search item searched in step S104, and draw a comment window for the generated comment topic in the search page for the user to comment on the comment topic.
  • the search term after receiving the search term from the user, the search term is used to search for multiple search items to implement the information search function.
  • the search term is also judged whether it can trigger the comment mechanism. If so, the comment topic is generated according to the content and/or the hot attribute of the plurality of search items searched by the information search function, and a comment window is drawn in the search page for the generated comment topic for the user to comment on the comment topic.
  • the embodiment of the present invention can not only provide the information search function, but also can draw a comment window of the comment topic on the search page for the user to comment. For the user, you can discuss and comment on the popular comment topics in the comments window, and participate in the popular comment topics in real time to improve the user experience.
  • step S106 it is mentioned whether the search word is a keyword that triggers the comment mechanism.
  • the search word can be matched with the set of keywords including the trigger comment mechanism. If the matching result is that there is a search term in the set, the search term is a keyword that triggers the comment mechanism. If the matching result is that there is no search term in the collection, the search term is not a keyword that triggers the comment mechanism.
  • the keywords are updated in real time.
  • the duration of any keyword exceeds the time threshold, and the corresponding keyword is deleted, thereby avoiding generating a comment window for the expired comment topic and wasting resources.
  • the search item whose popularity attribute value exceeds the popular threshold, the item is parsed to obtain the keyword, and the obtained keyword is added to the collection to ensure that the latest and most popular topic will not be missed.
  • a comment subject is generated based on the content of the search item and/or the hot attribute. Since there are multiple search terms, one of the comment topics is generated by selecting one search item among the plurality of search items as the comment subject according to the content of the search item and/or the hot attribute; and the other subject of the comment The method is generated by combining at least two search items according to the content of the search item and/or the hot attribute to generate a comment topic.
  • the same search term may generate different comment topics.
  • different search words may be aggregated to generate the same comment. theme.
  • search terms may also be aggregated to generate the same comment subject. For example, using the "World Cup” as a search term, a popular theme "2014 World Cup” will be aggregated, and a comment window of "2014 World Cup” will be drawn on the right side of the search item. Change the search term to "German team”, and also be able to aggregate to generate the popular theme "2014 World Cup”, and then draw the "2014 World Cup” comment window on the right side of the search entry. Change the search term to "Argentina” again, and also be able to aggregate to generate the popular theme "2014 World Cup”, and then draw the "2014 World Cup” comment window on the right side of the search entry.
  • the comment window can not only receive comments from users, but also other users' comments. Specifically, at the time of implementation, aggregated comments of other users for the comment topic are extracted, and aggregated comments of other users are displayed in the comment window.
  • the aggregate comments of other users are extracted in real time.
  • the aggregated comments of other users are displayed in real time in the comment window, so that the user can see other users' discussions, attitudes, opinions, opinions, and voicing on the hot topic in time.
  • the comment window needs to include at least two parts:
  • the first part is a comment display area for displaying aggregated comments of other users and/or comments entered by the user;
  • the second part is the comment input area for entering user comments for the subject of the comment.
  • 2A shows a first interface diagram of a hot topic review on a search page, in accordance with one embodiment of the present invention.
  • the popular theme associated with the search term "World Cup” is "2014 World Cup”
  • a search item such as a World Cup score appears on the lower side of the search bar, and on the right side, a "2014 World Cup” is drawn as a comment window for the comment theme. It presents multiple user comments on the topic (including comments entered by the current user and aggregated comments from other users).
  • a comment window is drawn for the comment topic in the search page, after which the user comments on the hot topic in the comment window.
  • ID an identity
  • the user needs to register an identity (ID) to complete the input of the comment.
  • the content of the comments needs to be reviewed according to the preset rules. For example, certain swearing words, swear words, impolite words, offensive words, etc. will not be reviewed and the comment will not be displayed.
  • the bottom line of the comment window displays "Publish your opinion, please log in/register first". At this time, login or registration is to verify the identity of the user.
  • FIG. 3 shows a process flow diagram of a review review mechanism in accordance with one embodiment of the present invention. Referring to FIG. 3, the flow includes at least steps S302 to S306:
  • Step S302 receiving, in the comment input area, a comment of the user who has registered the ID for the subject of the comment;
  • Step S304 Review the comment content of the comment according to the preset rule
  • Step S306 if the review is passed, the ID of the user and the content of the comment are displayed in the comment display area.
  • the preset rules mentioned in step S304 may be various, such as the above-mentioned unspeakable swear words, swear words, impolite words, aggressive words, or directly defining certain words as Sensitive words, making it impossible to pass the review, but also words that are completely contrary to regional ethics, and so on.
  • step S302 and step S306 the ID of the user is mentioned.
  • each hot topic corresponds to one comment window, in order to realize the management of the individual topic, each user usually has an ID in each comment window. If multiple comment windows are implemented on the same platform, the user can also use the same ID based on the same platform in multiple comment windows.
  • 2B shows a second interface diagram of a hot topic review on a search page, in accordance with one embodiment of the present invention.
  • 2B is substantially the same as FIG. 2A except that the user in FIG. 2B is able to comment in the comment input box by ID verification.
  • the comment input box in FIG. 2B (the comment of "five words fiercely” has been input) and the triggerable flag of "post comment”.
  • the user clicks the "comment” to trigger the logo the "playing fiercely” in the comment input box and the current user's ID corresponding to the comment display area can be output.
  • realizing the user's identity verification can add an insurance mechanism to the security performance of the comment, and the review of the comment content is the second insurance mechanism, and the double insurance mechanism increases the reliability of the user comment, and participates in the same Other users of popular topic reviews create a better and more engaging discussion environment.
  • the comment display area of the comment window can display a plurality of comments, and for the user, most of the comments are similar, and the amount of information is not high. For example, a brief congratulations on Germany's victory, or a pity for a team that is frustrated, or simply a good fight, these comments are similar, the text is short, the amount of information is low, but the number Larger, users are extremely time consuming and energetic to read.
  • the comment can be further analyzed, and a part of the comment with a higher amount of information is searched out and displayed as an elite comment (and thus the number is relatively small).
  • Fig. 2B has been divided into two parts, one part is called “talking” and the other part is called “essential talk”. If the user does not have more time to participate in the "talking", or want to get more information in a short period of time, you can go directly to the elite to read the existing elite comments.
  • the comments in the comment window are all captured and displayed in real time, and the comments in Figures 2A and 2B are also real-time.
  • the comment window has a fixed theme, when using the chat room function, the comment window can be considered as a chat room for a particular topic.
  • the comment window is not static, and the display attribute can be adjusted according to the control instruction from the user. Specifically, display attributes or parameters such as the color, position, size, internal architecture ratio, and number of pieces of commented information of the drawing window can be performed. Adjustment. The different parameter adjustments are now described in turn.
  • the comment text color (including the displayed comment text or the input comment text), etc., can be based on the user's control instruction. Make adjustments. For example, change the background color from white to red and green, and then, for example, change the displayed comment text to bright blue, change the input comment text to lavender, and so on.
  • the comment window can be drawn anywhere on the search page, such as inserting a search item, or drawing in any area other than the display area of the search item. . It can be seen that the position of the comment window is not fixed. In the process of using, it is also possible to adjust its position. For example, it is transferred from the first search item to the bottom of the second search item. The upper right corner of the page can be adjusted to the lower right corner.
  • the comment window consists of at least two parts, one is the comment display area and the other is the comment input area.
  • the composition of these two parts is not fixed and can be adjusted according to user needs. For example, the user needs to enter a longer paragraph of text, in which case the comment input area needs to be enlarged. Similarly, if the user does not intend to input at present, and wants to see more comments from other users, the comment display area can also be enlarged.
  • the number of pieces of information displayed in the comment display area is preset in advance, for example, five or seven or ten items are displayed at a time.
  • the comment information can be changed in the comment window. Change the number of bars to display more bars (for example, more than ten). Similarly, if the user feels that there are too many current comments, the page is not enough to display all the comments, and the troublesome operation such as scrolling the page is required, then it can be changed to display fewer numbers (for example, three).
  • FIG. 4A shows a third interface diagram of a hot topic review on a search page, in accordance with one embodiment of the present invention.
  • the hot topic of FIG. 4A is the same as that of FIG. 2A and FIG. 2B, and both are “2014 World Cup”.
  • the comment window in Figure 4A is longer in the longitudinal direction.
  • the length and width of the comment window are adjustable, and can be adjusted proportionally, or can be adjusted by a single parameter, depending on the needs of the user.
  • FIG. 4B also shows a fourth interface diagram for performing hot topic comments on a search page, in accordance with one embodiment of the present invention.
  • FIG. 4A the bottom line of the comment window displays “Publish your opinion, please login/register first”. At this time, the login or registration is to verify the identity of the user. At this time, the user has not yet verified, and the user can only see other from User's aggregated comments, no comments can be entered.
  • FIG. 4B is a user authentication, and it is possible to input a comment in the comment input area, for example, "playing fiercely.” The comment window of FIG. 4B is longitudinally longer than the comment window of FIG. 2B, for the same reason as FIG. 4A.
  • the comment window in FIGS. 4A and 4B can be regarded as a chat room of a specific topic as the comment window in FIGS. 2A and 2B, and the specific reason is as described above.
  • the comment window can also be displayed on the search page using a barrage.
  • the comment window covers the display area of the entire search page, and the comment is swiped on the comment window.
  • 5 to 7 are diagrams showing the display of comments when the comment window is in the barrage mode according to an embodiment of the present invention.
  • the comment slides from right to left.
  • the comment has just been presented at the beginning, and in Fig. 6, the comment shows most of it, and in Fig. 7, the comment shows the end portion.
  • the comments slide from right to left, from top to bottom, from bottom to top, and even from diagonally. Sliding from right to left in the figure is just an example.
  • a comment input area is provided below the entire barrage. See Figure 5 to Figure 7 for details.
  • the comments entered by the user through the comment input area are also displayed on the barrage in real time, and all user comments are constantly refreshed to meet the requirements of real-time interaction.
  • FIG. 8 shows a first structural diagram of a search page commenting apparatus according to an embodiment of the present invention.
  • the device includes at least:
  • the receiving module 810 is configured to receive a search term from the user
  • the search module 820 is coupled to the receiving module 810 and configured to search for a plurality of search items by using a search term;
  • the determining module 830 is coupled to the receiving module 810 and configured to determine whether the search term is a keyword that triggers a comment mechanism;
  • the generating module 840 is respectively coupled to the search module 820 and the determining module 830, and configured to generate a comment subject according to the content of the search item and/or the hot attribute if the determining result of the determining module 830 is YES;
  • the drawing module 850 is coupled to the generating module 840 and configured to generate a comment topic drawing comment window generated by the module 840 in the search page for the user to comment on the comment topic.
  • FIG. 9 shows a second structural diagram of a search page commenting device in accordance with one embodiment of the present invention.
  • the above apparatus further includes:
  • the comment display module 860 is coupled to the drawing module 850 and configured to: extract aggregated comments of other users for the subject of the comment; display aggregated comments of other users in the comment window.
  • the comment display module 860 can also be configured to:
  • Show aggregated comments from other users in the comments window including: real-time display of aggregated comments from other users in the comments window.
  • the comment window includes at least two parts:
  • a comment display area for displaying aggregated comments of other users
  • the comment input area is used to enter a user's comment on the subject of the comment.
  • the comment display module 860 can also be configured to:
  • the user's identification ID and comment content are displayed in the comment display area.
  • the rendering module 850 can also be configured to adjust the display attributes of the comment window based on control commands from the user.
  • the display attributes of the comment window include at least one of the following:
  • Color including at least one of a background color, a comment box color, and a text color
  • the drawing module 850 can also be configured to use the barrage mode when the comment window is When displayed on the search page, the adjustment comment window covers the display area of the entire search page.
  • the rendering module 850 can also be configured to:
  • the comment window is drawn in an area outside the display area of the search item.
  • the generating module 840 can also be configured to:
  • a review topic is generated based on the content of the search item and/or the popular attribute, selecting one search item among the plurality of search items or combining at least two search items.
  • the determining module 830 can also be configured to:
  • the search term is a keyword that triggers the comment mechanism
  • the search term is not a keyword that triggers the comment mechanism.
  • the embodiment of the present invention after receiving the search term from the user, on the basis of searching for multiple search items by using the search term, and implementing the information search function, it is also determined whether the search term can trigger the user comment and the chat interaction. mechanism. If so, the comment topic is generated according to the content and/or the hot attribute of the plurality of search items searched by the information search function, and a comment window is drawn in the search page for the generated comment topic for the user to comment on the comment topic. It can be seen that the embodiment of the present invention can not only provide the information search function, but also can draw a comment window of the comment topic on the search page for the user to make a comment and a live chat interaction. For the user, you can discuss and comment on the topic of popular comments in the comment window, and also see the comments of other users, and participate in the popular comment topics in real time to improve the user's interactive experience using the search engine.
  • FIG. 10 shows a process flow diagram of a search page chat method in accordance with one embodiment of the present invention. Referring to FIG. 10, the flow includes at least steps S1002 to S1006:
  • Step S1002 receiving a search term from a user
  • Step S1004 Initiating a search request corresponding to the search term to the server, and receiving a search result fed back by the server according to the search term;
  • Step S1006 The receiving server creates a chat window for the hit topic in the search page according to the comment topic hit by the search term.
  • the embodiment of the present invention after receiving the search term from the user, the search request corresponding to the search term is initiated to the server, and the search result fed back by the server is received, that is, the embodiment of the present invention provides a function of providing search information.
  • the embodiment of the present invention further receives a comment window that the server hits according to the search term, creates a chat window for the comment topic in the search page, and provides the user with a chat interaction mechanism. It can be seen that the embodiment of the present invention further provides a chat function for the subject of the comment, so that the user can discuss, spoof, and participate in the hot topic in real time during the search, and participate in the hot topic in real time.
  • the user interacts with the chat to improve the user's interactive experience using the search engine.
  • the search term hits the comment topic, indicating that the search term passes the operation of judging whether the search term is a keyword that triggers the comment mechanism, and belongs to Keywords that can trigger the comment mechanism, and search words that do not hit the comment topic are not keywords that can trigger the comment mechanism.
  • the subject of the search term hit may be determined by the server based on the search term.
  • chat content of other users in the comment topic fed back by the server is received and displayed in the chat window. And, if the current user inputs the chat content, it can also be displayed in the chat window.
  • the most important part of the chat interaction is to ensure the real-time nature of the chat content. If the response time is too long, it will become a reply to the message. Therefore, the chat content of the current user and other users are acquired in real time and displayed in the chat window.
  • step S1006 the server hits the comment subject according to the search term.
  • a keyword containing a trigger comment mechanism is saved on the server side, and when implemented, the search word can be matched with a set of keywords including a trigger comment mechanism. If the matching result is that there is a search term in the set, the search term is a keyword that triggers the comment mechanism, and there is a hit topic of the hit. If the matching result is that there is no search term in the collection, the search term is not a keyword that triggers the comment mechanism, and there is no comment topic of the hit.
  • the keywords are updated in real time.
  • the duration of any keyword exceeds the time threshold, and the corresponding keyword is deleted, thereby avoiding generating a chat window for the expired comment topic and wasting resources.
  • the search item whose popularity attribute value exceeds the popular threshold, the item is parsed to obtain the keyword, and the obtained keyword is added to the collection to ensure that the latest and most popular topic will not be missed.
  • the same search word may generate different comment topics.
  • different search words may also be generated. Aggregate generates the same comment subject.
  • search terms may also be aggregated to generate the same comment subject. For example, if the "World Cup” is used as a search term, the popular theme "2014 World Cup” will be aggregated, and the "2014 World Cup” chat window will be drawn on the right side of the search item. Change the search term to "German team”, and also be able to aggregate to generate the popular theme "2014 World Cup”, and then draw the "2014 World Cup” chat window on the right side of the search entry. Change the search term to "Argentina” again, and also be able to aggregate to generate the popular theme "2014 World Cup”, and then draw the "2014 World Cup” chat window on the right side of the search entry.
  • the chat window needs to include at least two parts: the first part is a chat display area for displaying chat content of other users and / or chat content (including comments) entered by the user; the second part is a chat input area for inputting the chat content of the user for the subject of the comment.
  • FIG. 11A illustrates a first interface diagram of a hot topic review on a search page, in accordance with one embodiment of the present invention. See Figure 11A, by the search term "World The popular theme of the World Cup hit is "2014 World Cup". The search items such as the World Cup score appear on the lower side of the search bar. On the right side, a "2014 World Cup” is drawn as the comment window of the comment theme, which presents multiple users for the theme. Comments (including the chat content entered by the current user and the chat content of other users).
  • step S1006 When step S1006 is implemented, a chat window is drawn for the comment topic in the search page, after which the user comments on the hot topic in the chat window.
  • identity In order to ensure the security of network information and to filter out malicious comments that are not in line with social ethics, it is necessary to review the identity of the user and the comments (chat content) spoken by the user.
  • the user When authenticating a user's identity, the user needs to register an identity (ID) to complete the input of the chat content.
  • ID identity
  • the content of the comments needs to be reviewed according to the preset rules. For example, certain swear words, swear words, impolite words, offensive words, etc. will not be reviewed, and the chat content or some chats that do not meet the preset rules cannot be displayed.
  • the bottom line of the chat window displays "Publish your opinion, please log in/register first". At this time, login or registration is to verify the identity of the user.
  • FIG. 12 shows a process flow diagram of a chat content review mechanism in accordance with one embodiment of the present invention. Referring to FIG. 12, the flow includes at least steps S1202 to S1206:
  • Step S1202 Receive a comment on the subject of the user of the registered ID in the chat input area
  • Step S1204 Review the chat content of the comment according to a preset rule
  • Step S1206 If the review is passed, the ID of the user and the content of the chat are displayed in the chat display area.
  • the preset rules mentioned in step S1204 may be various, such as the above-mentioned unspeakable swear words, swear words, impolite words, aggressive words, or directly defining certain words as Sensitive words, making it impossible to pass the review, but also words that are completely contrary to regional ethics, and so on.
  • step S1202 and step S1206 the ID of the user is mentioned.
  • each hot topic corresponds to a chat window
  • each user in order to implement the management of the individual topics, each user usually has an ID in each chat window. If multiple chat windows are implemented based on the same platform, the user can also use the same ID based on the same platform in multiple chat windows.
  • FIG. 11B illustrates a second interface diagram of a hot topic review on a search page, in accordance with one embodiment of the present invention.
  • FIG. 11B is substantially the same as FIG. 11A except that the user in FIG. 11B is able to comment in the chat input box by ID verification.
  • the chat input box in FIG. 11B (the comment of "five words fiercely” has been input) and the triggerable flag of "post comment”.
  • realizing the identity verification of the user can add an insurance mechanism to the security performance of the comment, and the review of the chat content is the second insurance mechanism, and the double insurance mechanism increases the reliability of the user comment, and participates in the same Other users of popular topic reviews create a better and more responsive chat environment.
  • the chat display area of the chat window can display a plurality of pieces of chat information (such as comments). For the user, most of the comments are similar, and the amount of information is not high. For example, a brief congratulations on Germany's victory, or a pity for a team that is frustrated, or simply a good fight, these comments are similar, the text is short, the amount of information is low, but the number Larger, users are extremely time consuming and energetic to read.
  • the comment can be further advanced. Step analysis, find some of the comments with higher information, and display them as the best comments (so the number is relatively small).
  • Fig. 11B has been divided into two parts, one part is called “talking” and the other part is called “essential talk”. If the user does not have more time to participate in the "talking", or want to get more information in a short period of time, you can go directly to the elite to read the existing elite comments.
  • the chat window has a chat room function.
  • the chat window provided by the embodiment of the present invention has a fixed theme, when the chat room function is used, the chat window can be regarded as a chat room of a specific theme.
  • the chat window is not static, and the display attribute can be adjusted according to the control instruction from the user. Specifically, the display attributes or parameters such as the color, position, size, internal architecture ratio, and the number of pieces of the commented information displayed on the chat window can be adjusted. The different parameter adjustments are now described in turn.
  • chat window For the color attribute of the chat window, whether the chat window has a background color, whether the color of the chat box itself can be adjusted, the chat text color (including the displayed chat text or the input chat text), etc., can be according to the user's control instruction. Make adjustments. For example, change the background color from white to red and green, and then, for example, change the displayed chat text to bright blue, change the input chat text to lavender, and so on.
  • the chat window can be drawn anywhere on the search page, for example, inserted into the search item, or drawn in any area other than the display area of the search item. . It can be seen that the location of the chat window is not fixed. In the process of using, it is also possible to adjust its position. For example, it is transferred from the first search item to the bottom of the second search item, and is drawn in the search. The upper right corner of the page can be adjusted to the lower right corner.
  • the chat window consists of at least two parts, one is the chat display area and the other is the chat input area.
  • the composition of these two parts is not fixed and can be adjusted according to user needs. For example, the user needs to enter a longer paragraph of text, in which case the chat input area needs to be increased. Similarly, if the user does not intend to input at present, and wants to see more comments from other users, the chat display area can also be adjusted.
  • the number of pieces of information displayed in the chat display area is preset in advance, for example, five or seven or ten items are displayed at a time.
  • the comment information displayed in the chat window may be changed. Change the number of bars to display more bars (for example, more than ten).
  • FIG. 13A illustrates a second interface diagram of a hot topic review on a search page, in accordance with one embodiment of the present invention.
  • the hot theme of FIG. 13A is the same as that of FIGS. 11A and 11B, and both are "2014 World Cup".
  • the chat window in FIG. 13A is longer in the vertical direction.
  • the length and width of the chat window are adjustable, and can be adjusted proportionally, or can be adjusted by a single parameter, depending on the needs of the user.
  • FIG. 13B also shows a fourth interface diagram for performing hot topic comments on a search page, in accordance with one embodiment of the present invention.
  • the bottom line of the chat window shows "fat" To view your opinion, please log in/register first. At this time, the login or registration is to verify the identity of the user. At this time, the authentication has not been performed. The user can only see the aggregated comments from other users, and cannot input the comments.
  • Figure 13B Then, through user authentication, it is possible to input a comment in the chat input area, for example, “playing fiercely.”
  • the chat window of FIG. 13B is longer than the chat window of FIG. 2B, and the chat window in FIG. 13B is longer.
  • Figure 4A is the same.
  • chat window in FIGS. 13A and 13B can be regarded as a chat room of a specific theme like the chat window in FIGS. 11A and 11B.
  • chat window in FIGS. 11A and 11B can be regarded as a chat room of a specific theme like the chat window in FIGS. 11A and 11B.
  • the chat window can also be displayed on the search page using a barrage.
  • the chat window covers the display area of the entire search page, and the comments are swiped on the chat window.
  • 14 to FIG. 16 are diagrams showing the display of comments when the chat window adopts the barrage mode according to an embodiment of the present invention.
  • the comment slides from right to left.
  • the comment has just been presented at the beginning, and in Fig. 15, the comment shows most of it, and in Fig. 16, the comment shows the end portion.
  • the comments slide from right to left, from top to bottom, from bottom to top, and even from diagonally. Sliding from right to left in the figure is just an example.
  • chat display area When the chat display area is displayed by the barrage mode, a chat input area is provided below the entire barrage, as shown in FIG. 14 to FIG.
  • the comments entered by the user through the chat input area are also displayed on the barrage in real time, and the comments of all users are constantly refreshed to meet the requirements of real-time interaction.
  • an embodiment of the present invention further provides a search page chat client (or a search page chat device) for supporting the search page chat method mentioned in any one of the above preferred embodiments or a combination thereof.
  • FIG. 17 shows a first structural diagram of a search page chat client according to an embodiment of the present invention.
  • the client includes at least:
  • a search word input module 1710 (which may also be referred to as a receiving module) configured to receive a search term from the user;
  • the search module 1720 is coupled to the search term input module 1710, configured to initiate a search request to the server according to the search term, and receive a search result that the server feeds back according to the query;
  • the chat creation module 1730 is coupled to the search term input module 1730, and configured to receive a comment window by the server according to the search topic hit, and create a chat window for the comment topic in the search page.
  • FIG. 18 illustrates a second block diagram of a search page chat client in accordance with one embodiment of the present invention.
  • the foregoing client further includes:
  • the user chat module 1740 is coupled to the chat creation module 1730, configured to receive, in the chat window, the chat content of other users in the comment subject fed back by the server, and display the content of the chat input by the user, and/or display the chat content input by the user.
  • the user chat module 1740 can also be configured to retrieve and display the chat content of the user and other users in real time.
  • the client further includes:
  • the verification module 1750 is coupled to the user chat module 1740, configured to verify the identifier of the user, and/or to perform audit verification on the chat content of the user according to a preset rule.
  • the chat creation module 1730 may be further configured to: adjust display attributes of the chat window according to control instructions from the user.
  • the display attributes of the chat window include at least one of the following:
  • Color including at least one of a background color, a comment box color, and a text color
  • the size of the chat window is the size of the chat window.
  • the chat creation module 1730 may be further configured to: when the chat window is displayed on the search page by using a barrage mode, adjust the chat window to cover the display area of the entire search page.
  • the chat creation module 1730 may be further configured to: slide and present the chat content on the chat window displayed in the barrage mode.
  • chat creation module 1730 can also be configured to:
  • the chat window is drawn in an area outside the display area of the search item.
  • the embodiment of the present invention after receiving the search term from the user, the search request corresponding to the search term is initiated to the server, and the search result fed back by the server is received, that is, the embodiment of the present invention provides a function of providing search information.
  • the embodiment of the present invention further receives a comment window that the server hits according to the search term, creates a chat window for the comment topic in the search page, and provides the user with a chat interaction mechanism.
  • the embodiment of the present invention further provides a chat function for the subject of the comment, so that the user can discuss, spoof, and participate in the hot topic in real time during the search, and participate in the hot topic in real time. The user interacts with the chat to improve the user's interactive experience using the search engine.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined. Unless otherwise stated, this specification (package)
  • Each of the features disclosed in the accompanying claims, the abstract and the drawings may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the search page content device in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 19 illustrates a computing device that can implement a method of searching for page content in accordance with the present invention.
  • the computing device conventionally includes a processor 1910 and a computer program product or computer readable medium in the form of a memory 1920.
  • the memory 1920 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 1920 has a memory space 1930 for program code 1931 for performing any of the method steps described above.
  • storage space 1930 for program code may include various program code 1931 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similar to the storage 1920 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 1931', ie, code that can be read by, for example, a processor such as 1910, which when executed by a computing device causes the computing device to perform each of the methods described above step.

Abstract

The present invention provides a method and a device for searching the content of a page. The method including: receiving a search word query from a user; searching a search result by using the search word, wherein the search result includes a plurality of search items; and judging whether or not the search word is the keyword to trigger the comment mechanism; if yes, generating a comment topic according to the content or the popular attribute of the search items, and drawing a comment window for the comment topic in the search page, in order for the user to comment on the comment topic; alternatively, If yes, creating a chat window for the comment topic in the search page, according to the comment topic hit by the search word. By adopting the present invention, not only an information search function can be provided, but also the comment window or chat window can be provided for user interactions in the search page, for commenting or chatting by users.

Description

搜索页面内容方法及装置Method and device for searching page content 技术领域Technical field
本发明涉及互联网应用领域,尤其涉及一种搜索页面内容方法及装置。The present invention relates to the field of Internet applications, and in particular, to a method and an apparatus for searching page content.
背景技术Background technique
在互联网时代,用户通过搜索功能能够获取自己想知道的绝大多数信息。因此,搜索功能的用户群极广,范围极大。在信息爆炸时代,用户除想获取搜索信息外,还希望能够针对搜索信息提供自己的见解、主张等。尤其是对于一些热门事件,用户非常希望能够对其进行讨论、吐槽等。In the Internet age, users can get most of the information they want to know through the search function. Therefore, the search function has a very large user base and a wide range. In the era of information explosion, users want to be able to provide their own opinions, opinions, etc. in addition to search information. Especially for some popular events, users are very eager to discuss, spit, etc.
目前的搜索功能仅仅能够实现信息提供,单调乏味,缺少用户间的互动,并不能够为用户提供发表见解、主张的功能,也不能够为用户提供针对搜索词进行聊天的功能。The current search function can only provide information, tedious, lack of interaction between users, and can not provide users with the function of publishing opinions and claims, nor can it provide users with the function of chatting for search words.
发明内容Summary of the invention
本发明提供了一种搜索页面内容方法及装置以克服上述问题或者至少部分地解决上述问题。The present invention provides a method and apparatus for searching page content to overcome the above problems or at least partially solve the above problems.
基于本发明的一个方面,本发明实施例提供了一种搜索页面内容方法,包括:Based on an aspect of the present invention, an embodiment of the present invention provides a method for searching page content, including:
接收来自用户的搜索词query;Receiving a search term from the user;
利用所述搜索词搜索到搜索结果,所述搜索结果包括多条搜索条目;以及Searching for search results using the search term, the search results including a plurality of search terms;
判断所述搜索词是否为触发评论机制的关键词;Determining whether the search term is a keyword that triggers a comment mechanism;
若是,则根据所述搜索条目的内容和/或热门属性生成评论主题,并在搜索页面中为所述评论主题绘制评论窗口,以供所述用户对所述评论主题进行评论;或者If yes, generating a comment topic according to the content and/or the hot attribute of the search item, and drawing a comment window for the comment topic in the search page for the user to comment on the comment topic; or
若是,则根据所述搜索词命中的评论主题,在搜索页面中为所述评论主题创建聊天窗口。If so, a chat window is created for the comment topic in the search page according to the comment topic of the search term hit.
可选地,利用所述搜索词搜索到搜索结果包括:向服务器发起该搜索词对应的搜索请求,接收所述服务器根据所述搜索词反馈的搜索结果。Optionally, searching for the search result by using the search term includes: initiating a search request corresponding to the search term to the server, and receiving a search result fed back by the server according to the search term.
基于本发明的另一个方面,本发明实施例提供了一种搜索页面内容装置,包括:According to another aspect of the present invention, an embodiment of the present invention provides a device for searching a page content, including:
接收模块,配置为接收来自用户的搜索词query;a receiving module configured to receive a search term from a user;
搜索模块,配置为利用所述搜索词搜索到搜索结果,所述搜索结果包括多条搜索条目;a search module configured to search for search results using the search term, the search results including a plurality of search entries;
判断模块,配置为判断所述搜索词是否为触发评论机制的关键词;a determining module, configured to determine whether the search term is a keyword that triggers a comment mechanism;
生成模块,配置为若所述判断模块的判断结果为是,则根据所述搜索条目的内容和/或热门属性生成评论主题;a generating module, configured to generate a comment topic according to content and/or a hot attribute of the search item if the judgment result of the determining module is yes;
绘制模块,配置为在搜索页面中所述生成模块生成的所述评论主题绘制评论窗口,以供所述用户对所述评论主题进行评论;或者a drawing module configured to draw a comment window for the comment topic generated by the generating module in the search page for the user to comment on the comment topic; or
聊天创建模块,配置为若所述判断模块的判断结果为是,则根据所述搜索词命 中的评论主题,在搜索页面中为所述评论主题创建聊天窗口。a chat creation module, configured to: if the judgment result of the judgment module is yes, according to the search term In the comment topic, create a chat window for the comment topic in the search page.
可选的,搜索模块,还配置为向服务器发起该搜索词对应的搜索请求,接收所述服务器根据所述搜索词反馈的搜索结果。Optionally, the search module is further configured to initiate a search request corresponding to the search term to the server, and receive a search result that is fed back by the server according to the search term.
根据本发明的再一个方面,还提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据上述的搜索页面内容方法。According to still another aspect of the present invention, there is also provided a computer program comprising computer readable code, which when executed on a computing device causes the computing device to perform a method of searching for page content according to the above.
根据本发明的又一个方面,还提供了一种计算机可读介质,其中存储了上述的计算机程序。According to still another aspect of the present invention, there is also provided a computer readable medium, wherein the computer program described above is stored.
在本发明实施例中,接收来自用户的搜索词之后,在利用搜索词搜索到多条搜索条目,实现信息搜索功能的基础上,还针对搜索词,判断其是否能够触发用户评论、聊天的交互机制。若是,根据信息搜索功能搜索到的多条搜索条目的内容和/或热门属性生成评论主题,并在搜索页面中为生成的评论主题绘制评论窗口,以供用户对评论主题进行评论,或者,根据搜索词命中的评论主题,在搜索页面中为评论主题创建聊天窗口,为用户提供聊天的交互机制。由此可见,本发明实施例不仅仅能够提供信息搜索功能,还能够在搜索页面绘制出评论主题的评论窗口,或提供针对评论主题的聊天功能,供用户进行评论或实时聊天交互。对于用户而言,可以在评论窗口对热门的评论主题进行讨论、吐槽,也能看到其他用户的评论信息,并实时参与到热门的评论主题中,或通过聊天窗口与其他用户进行聊天互动,提高了用户的使用搜索引擎的交互体验。In the embodiment of the present invention, after receiving the search term from the user, on the basis of searching for multiple search items by using the search term, and implementing the information search function, it is also determined whether the search term can trigger the user comment and the chat interaction. mechanism. If yes, generating a comment topic according to the content and/or the hot attribute of the plurality of search items searched by the information search function, and drawing a comment window for the generated comment topic in the search page, for the user to comment on the comment topic, or, according to Search for the topic of the hit topic, create a chat window for the comment topic in the search page, and provide the user with a chat interaction mechanism. It can be seen that the embodiment of the present invention can not only provide the information search function, but also can draw a comment window of the comment topic on the search page, or provide a chat function for the comment topic for the user to make a comment or a live chat interaction. For users, you can discuss popular comment topics in the comments window, spit out, and see other users' comments, and participate in popular comment topics in real time, or chat with other users through chat window. Improve the user's interactive experience with the search engine.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.
附图说明DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those skilled in the art from a The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图1示出了根据本发明一个实施例的搜索页面评论方法的处理流程图;1 shows a process flow diagram of a search page review method in accordance with one embodiment of the present invention;
图2A示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第一界面示意图;2A shows a first interface diagram of a hot topic comment on a search page, in accordance with one embodiment of the present invention;
图2B示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第二界面示意图;2B shows a second interface diagram of a hot topic comment on a search page, in accordance with one embodiment of the present invention;
图3示出了根据本发明一个实施例的评论审核机制的处理流程图;3 shows a process flow diagram of a review review mechanism in accordance with one embodiment of the present invention;
图4A示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第三界面示意图;4A illustrates a third interface diagram of a hot topic review on a search page, in accordance with one embodiment of the present invention;
图4B示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第四界面示意图; 4B shows a fourth interface diagram of a hot topic comment on a search page, in accordance with one embodiment of the present invention;
图5示出了根据本发明一个实施例的评论窗口采用弹幕方式时评论的第一个显示示意图;FIG. 5 is a diagram showing a first display of a comment when a comment window adopts a barrage mode according to an embodiment of the present invention; FIG.
图6示出了根据本发明一个实施例的评论窗口采用弹幕方式时评论的第二个显示示意图;6 is a schematic diagram showing a second display of a comment when a comment window adopts a barrage mode according to an embodiment of the present invention;
图7示出了根据本发明一个实施例的评论窗口采用弹幕方式时评论的第三个显示示意图;7 is a third schematic diagram showing a comment when a comment window adopts a barrage mode according to an embodiment of the present invention;
图8示出了根据本发明一个实施例的搜索页面评论装置的第一种结构示意图;FIG. 8 is a block diagram showing a first structure of a search page commenting apparatus according to an embodiment of the present invention; FIG.
图9示出了根据本发明一个实施例的搜索页面评论装置的第二种结构示意图;FIG. 9 is a schematic diagram showing a second structure of a search page commenting apparatus according to an embodiment of the present invention; FIG.
图10示出了根据本发明一个实施例的搜索页面聊天方法的处理流程图;FIG. 10 is a flowchart showing a process of a search page chat method according to an embodiment of the present invention; FIG.
图11A示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第一界面示意图;11A shows a first interface diagram of a hot topic comment on a search page, in accordance with one embodiment of the present invention;
图11B示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第二界面示意图;11B shows a second interface diagram of a hot topic comment on a search page, in accordance with one embodiment of the present invention;
图12示出了根据本发明一个实施例的聊天内容审核机制的处理流程图;FIG. 12 is a flowchart showing a process of a chat content review mechanism according to an embodiment of the present invention; FIG.
图13A示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第三界面示意图;FIG. 13A illustrates a third interface diagram of a hot topic comment on a search page, in accordance with one embodiment of the present invention; FIG.
图13B示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第四界面示意图;FIG. 13B illustrates a fourth interface diagram of a hot topic comment on a search page, in accordance with one embodiment of the present invention; FIG.
图14示出了根据本发明一个实施例的聊天窗口采用弹幕方式时评论的第一个显示示意图;FIG. 14 is a schematic diagram showing a first display of a comment when a chat window adopts a barrage mode according to an embodiment of the present invention; FIG.
图15示出了根据本发明一个实施例的聊天窗口采用弹幕方式时评论的第二个显示示意图;FIG. 15 is a schematic diagram showing a second display of a comment when a chat window adopts a barrage mode according to an embodiment of the present invention; FIG.
图16示出了根据本发明一个实施例的聊天窗口采用弹幕方式时评论的第三个显示示意图;16 is a diagram showing a third display of a comment when a chat window adopts a barrage mode according to an embodiment of the present invention;
图17示出了根据本发明一个实施例的搜索页面聊天客户端的第一种结构示意图;FIG. 17 is a schematic diagram showing the first structure of a search page chat client according to an embodiment of the present invention; FIG.
图18示出了根据本发明一个实施例的搜索页面聊天客户端的第二种结构示意图;FIG. 18 is a schematic diagram showing a second structure of a search page chat client according to an embodiment of the present invention; FIG.
图19示意性地示出了用于执行根据本发明的搜索页面内容方法的计算设备的框图;以及Figure 19 is a schematic block diagram of a computing device for performing a method of searching page content in accordance with the present invention;
图20示意性地示出了用于保持或者携带实现根据本发明的搜索页面内容方法的程序代码的存储单元。Figure 20 schematically illustrates a storage unit for maintaining or carrying program code that implements a method of searching page content in accordance with the present invention.
具体实施方式detailed description
下面结合附图和具体的实施方式对本发明作进一步的描述。The invention is further described below in conjunction with the drawings and specific embodiments.
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能 够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and The scope of the present disclosure is fully conveyed to those skilled in the art.
在本发明实施例中,搜索页面内容方法中的内容可以包括评论或聊天,下面分别对这两种情况进行描述。In the embodiment of the present invention, the content in the method for searching the page content may include a comment or a chat, and the two cases are respectively described below.
为解决上述技术问题,本发明实施例提供了一种搜索页面评论方法。图1示出了根据本发明一个实施例的搜索页面评论方法的处理流程图。参见图1,该流程至少包括步骤S102至步骤S108:To solve the above technical problem, an embodiment of the present invention provides a search page commenting method. FIG. 1 shows a process flow diagram of a search page review method in accordance with one embodiment of the present invention. Referring to FIG. 1, the flow includes at least steps S102 to S108:
步骤S102、接收来自用户的搜索词(query);Step S102: Receive a search term from a user;
步骤S104、利用步骤S102接收的搜索词搜索到多条搜索条目;Step S104: Searching for multiple search items by using the search term received in step S102;
步骤S106、判断步骤S102接收的搜索词是否为触发评论机制的关键词;Step S106: determining whether the search term received in step S102 is a keyword that triggers a comment mechanism;
步骤S108、若是,则根据步骤S104搜索到的搜索条目的内容和/或热门属性生成评论主题,并在搜索页面中为生成的评论主题绘制评论窗口,以供用户对评论主题进行评论。Step S108: If yes, generate a comment topic according to the content and/or the hot attribute of the search item searched in step S104, and draw a comment window for the generated comment topic in the search page for the user to comment on the comment topic.
在本发明实施例中,接收来自用户的搜索词之后,利用搜索词搜索到多条搜索条目,实现信息搜索功能。除此之外,还针对搜索词,判断其是否能够触发评论机制。若是,根据信息搜索功能搜索到的多条搜索条目的内容和/或热门属性生成评论主题,并在搜索页面中为生成的评论主题绘制评论窗口,以供用户对评论主题进行评论。由此可见,本发明实施例不仅仅能够提供信息搜索功能,还能够在搜索页面绘制出评论主题的评论窗口,供用户进行评论。对于用户而言,可以在评论窗口对热门的评论主题进行讨论、吐槽,实时参与到热门的评论主题中,提高用户的感受体验。In the embodiment of the present invention, after receiving the search term from the user, the search term is used to search for multiple search items to implement the information search function. In addition to this, the search term is also judged whether it can trigger the comment mechanism. If so, the comment topic is generated according to the content and/or the hot attribute of the plurality of search items searched by the information search function, and a comment window is drawn in the search page for the generated comment topic for the user to comment on the comment topic. It can be seen that the embodiment of the present invention can not only provide the information search function, but also can draw a comment window of the comment topic on the search page for the user to comment. For the user, you can discuss and comment on the popular comment topics in the comments window, and participate in the popular comment topics in real time to improve the user experience.
步骤S106中提及判断搜索词是否为触发评论机制的关键词,实施时,可以将搜索词与包括触发评论机制的关键词的集合进行匹配。若匹配结果为集合中存在搜索词,则搜索词是触发评论机制的关键词。若匹配结果为集合中不存在搜索词,则搜索词不是触发评论机制的关键词。In step S106, it is mentioned whether the search word is a keyword that triggers the comment mechanism. When implemented, the search word can be matched with the set of keywords including the trigger comment mechanism. If the matching result is that there is a search term in the set, the search term is a keyword that triggers the comment mechanism. If the matching result is that there is no search term in the collection, the search term is not a keyword that triggers the comment mechanism.
其中,包括触发评论机制的关键词的集合中,为保证热门主题的时效性,关键词是实时更新的。在集合中,任意关键词的存在时长超过时间阈值,删除相应关键词,从而避免为已过期的评论主题生成评论窗口,浪费资源。而若出现热门属性值超过热门阈值的搜索条目,则解析该条目获得关键词,并将获取的关键词加入集合,保证最新最热门的主题不会被遗漏。Among them, in the collection of keywords including the triggering comment mechanism, in order to ensure the timeliness of popular topics, the keywords are updated in real time. In the collection, the duration of any keyword exceeds the time threshold, and the corresponding keyword is deleted, thereby avoiding generating a comment window for the expired comment topic and wasting resources. If there is a search item whose popularity attribute value exceeds the popular threshold, the item is parsed to obtain the keyword, and the obtained keyword is added to the collection to ensure that the latest and most popular topic will not be missed.
步骤S108中提及根据搜索条目的内容和/或热门属性生成评论主题。由于搜索条目有多条,因此,一种评论主题的生成方式为:根据搜索条目的内容和/或热门属性,在多条搜索条目中选择一条搜索条目作为评论主题;而另一种评论主题的生成方式为:根据搜索条目的内容和/或热门属性,合并至少两条搜索条目生成评论主题。It is mentioned in step S108 that a comment subject is generated based on the content of the search item and/or the hot attribute. Since there are multiple search terms, one of the comment topics is generated by selecting one search item among the plurality of search items as the comment subject according to the content of the search item and/or the hot attribute; and the other subject of the comment The method is generated by combining at least two search items according to the content of the search item and/or the hot attribute to generate a comment topic.
需要说明的是,因评论主题的生成涉及到搜索条目的内容和/或热门属性,因此,同一搜索词可能会生成不同的评论主题,同理,不同的搜索词也可能会聚合生成相同的评论主题。It should be noted that because the generation of the comment topic involves the content of the search item and/or the hot attribute, the same search term may generate different comment topics. Similarly, different search words may be aggregated to generate the same comment. theme.
例如,同一搜索词“世界杯”,四强赛的热门程度比八强赛要高,此时评论主题应为“2014世界杯四强赛”,在搜索条目右侧绘制“2014世界杯四强赛”的评论 窗口。而决赛的热门程序比半决赛要高,此时的评论主题就应为“2014世界杯决赛”,在搜索条目右侧绘制“2014世界杯决赛”的评论窗口。For example, the same search term "World Cup", the top four is more popular than the top eight, at this time the theme of the review should be "2014 World Cup Final Four", draw the "2014 World Cup Final Four" on the right side of the search term. Comment window. The hottest program in the finals is higher than the semi-finals. The theme of the review should be "2014 World Cup Finals", and the "2014 World Cup Finals" comment window will be drawn on the right side of the search term.
同理,不同搜索词也可能聚合生成相同的评论主题。例如,以“世界杯”为搜索词,会聚合生成热门主题“2014世界杯”,在搜索条目右侧绘制“2014世界杯”的评论窗口。更换搜索词为“德国队”,同样能够聚合生成热门主题“2014世界杯”,进而在搜索条目右侧绘制“2014世界杯”的评论窗口。再次更换搜索词为“阿根廷队”,也同样能够聚合生成热门主题“2014世界杯”,进而在搜索条目右侧绘制“2014世界杯”的评论窗口。Similarly, different search terms may also be aggregated to generate the same comment subject. For example, using the "World Cup" as a search term, a popular theme "2014 World Cup" will be aggregated, and a comment window of "2014 World Cup" will be drawn on the right side of the search item. Change the search term to "German team", and also be able to aggregate to generate the popular theme "2014 World Cup", and then draw the "2014 World Cup" comment window on the right side of the search entry. Change the search term to "Argentina" again, and also be able to aggregate to generate the popular theme "2014 World Cup", and then draw the "2014 World Cup" comment window on the right side of the search entry.
搜索词“世界杯”-》热门主题“2014世界杯”-右侧绘制”2014世界杯“的评论窗口搜索词”德国队“-》门主题“2014世界杯”-右侧绘制”2014世界杯“的评论窗口实施时,评论窗口不仅仅可以接收来自用户的评论,还可以显示其他用户的评论。具体地,在实施时,提取其他用户针对评论主题的聚合评论,在评论窗口中显示其他用户的聚合评论。Search for the word "World Cup" - "hot topic "2014 World Cup" - draw on the right side" 2014 World Cup "comment window search word" German team "-" door theme "2014 World Cup" - right draw "2014 World Cup" comment window implementation The comment window can not only receive comments from users, but also other users' comments. Specifically, at the time of implementation, aggregated comments of other users for the comment topic are extracted, and aggregated comments of other users are displayed in the comment window.
为增加评论窗口的实时性,满足用户参与热门的评论主题(后文简称热门主题)的参与度要求,其他用户的聚合评论均是实时提取的。相应的,提取之后,在评论窗口中实时显示其他用户的聚合评论,以使得用户能够及时看到其他用户关于本热门主题的讨论、态度、意见、见解、吐槽等。In order to increase the real-time nature of the comment window and satisfy the participation requirements of users participating in popular comment topics (hereinafter referred to as popular topics), the aggregate comments of other users are extracted in real time. Correspondingly, after the extraction, the aggregated comments of other users are displayed in real time in the comment window, so that the user can see other users' discussions, attitudes, opinions, opinions, and voicing on the hot topic in time.
为满足显示用户评论(包括用户输入的评论以及其他用户的聚合评论)和输入用户评论两大功能,评论窗口至少需要包括两部分:In order to satisfy the two functions of displaying user comments (including user-entered comments and other users' aggregate comments) and inputting user comments, the comment window needs to include at least two parts:
第一部分为评论显示区域,用于显示其他用户的聚合评论和/或用户输入的评论;The first part is a comment display area for displaying aggregated comments of other users and/or comments entered by the user;
第二部分为评论输入区域,用于输入用户针对评论主题的评论。The second part is the comment input area for entering user comments for the subject of the comment.
将输入和显示两部分区域分开,能够让用户的输入变得简单直接,并能够使得显示部分显示信息更为集中,增加上下文互动性。图2A示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第一界面示意图。参见图2A,由搜索词“世界杯”关联到的热门主题为“2014世界杯”,搜索栏下侧出现世界杯比分等搜索条目,在右侧,绘制有一个“2014世界杯”为评论主题的评论窗口,其中呈现了多用户对于该主题的评论(包括当前用户输入的评论以及其他用户的聚合评论)。Separating the input and display areas can make the user's input simple and straightforward, and can make the display part display more concentrated information and increase contextual interactivity. 2A shows a first interface diagram of a hot topic review on a search page, in accordance with one embodiment of the present invention. Referring to FIG. 2A, the popular theme associated with the search term "World Cup" is "2014 World Cup", a search item such as a World Cup score appears on the lower side of the search bar, and on the right side, a "2014 World Cup" is drawn as a comment window for the comment theme. It presents multiple user comments on the topic (including comments entered by the current user and aggregated comments from other users).
步骤S108实施时,在搜索页面中为评论主题绘制评论窗口,在此之后,用户在评论窗口对热门主题进行评论。为了保证网络信息的安全,以及过滤些不符合社会道德的恶意评论,需要对用户身份以及用户发言的言论进行审核。对用户身份进行验证时,用户需要注册标识(ID)才能够完成评论的输入。而对用户发表的言论来说,需要根据预设规则对评论内容进行审核。例如,某些脏话、粗话、不礼貌的词语、带攻击性的词语等会无法通过审核,无法显示相应评论。图2A中,评论窗口最下一行显示“发表您的看法,请先登录/注册”,此时的登录或注册即是对用户身份进行验证。When the step S108 is implemented, a comment window is drawn for the comment topic in the search page, after which the user comments on the hot topic in the comment window. In order to ensure the security of network information and to filter out malicious comments that are not in line with social ethics, it is necessary to review the identity of the user and the comments made by the user. When authenticating a user's identity, the user needs to register an identity (ID) to complete the input of the comment. For the comments made by users, the content of the comments needs to be reviewed according to the preset rules. For example, certain swearing words, swear words, impolite words, offensive words, etc. will not be reviewed and the comment will not be displayed. In Figure 2A, the bottom line of the comment window displays "Publish your opinion, please log in/register first". At this time, login or registration is to verify the identity of the user.
图3示出了根据本发明一个实施例的评论审核机制的处理流程图。参见图3,该流程至少包括步骤S302至步骤S306: 3 shows a process flow diagram of a review review mechanism in accordance with one embodiment of the present invention. Referring to FIG. 3, the flow includes at least steps S302 to S306:
步骤S302、在评论输入区域接收已登录ID的用户针对评论主题的评论;Step S302, receiving, in the comment input area, a comment of the user who has registered the ID for the subject of the comment;
步骤S304、根据预设规则对评论的评论内容进行审核;Step S304: Review the comment content of the comment according to the preset rule;
步骤S306、若审核通过,在评论显示区域显示用户的ID以及评论内容。Step S306, if the review is passed, the ID of the user and the content of the comment are displayed in the comment display area.
其中,步骤S304中提及的预设规则可以有很多种,例如上文提及的无法通过审核的脏话、粗话、不礼貌的词语、带攻击性的词语,还可以是直接限定某些词语作为敏感词,使其无法通过审核,还可以是与地域道德完全违背的词语,等等。The preset rules mentioned in step S304 may be various, such as the above-mentioned unspeakable swear words, swear words, impolite words, aggressive words, or directly defining certain words as Sensitive words, making it impossible to pass the review, but also words that are completely contrary to regional ethics, and so on.
步骤S302及步骤S306中均提及用户的ID,在实施时,因每一个热门主题对应一个评论窗口,为实现单独主题的管理,通常每个用户在每个评论窗口均存在一个ID。若多个评论窗口基于同一平台实现,那么,用户也可以在多个评论窗口通用基于同一平台的相同ID。In step S302 and step S306, the ID of the user is mentioned. In the implementation, since each hot topic corresponds to one comment window, in order to realize the management of the individual topic, each user usually has an ID in each comment window. If multiple comment windows are implemented on the same platform, the user can also use the same ID based on the same platform in multiple comment windows.
若ID验证通过,则评论窗口中原“发表您的看法,请先登录/注册”的位置呈现评论输入框(位于上文提及的评论显示区域)。图2B示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第二界面示意图。图2B与图2A基本相同,不同之处在于,图2B中用户通过ID验证,能够在评论输入框评论。具体地,见图2B中的评论输入框(已输入“打得好激烈”五个字的评论)以及“发表评论”的可触发标识。当用户点击“发表评论”这一可触发标识时,即可将评论输入框中的“打得好激烈”,以及当前用户的ID对应输出到评论显示区域。If the ID verification is passed, the comment input box (located in the comment display area mentioned above) is presented in the comment window in the original "Publish your opinion, please login/register first". 2B shows a second interface diagram of a hot topic review on a search page, in accordance with one embodiment of the present invention. 2B is substantially the same as FIG. 2A except that the user in FIG. 2B is able to comment in the comment input box by ID verification. Specifically, the comment input box in FIG. 2B (the comment of "five words fiercely" has been input) and the triggerable flag of "post comment". When the user clicks the "comment" to trigger the logo, the "playing fiercely" in the comment input box and the current user's ID corresponding to the comment display area can be output.
在本发明实施例中,实现用户的身份验证能够对评论的安全性能增加一道保险机制,而对评论内容的审核是第二道保险机制,双重保险机制增加了用户评论的可靠性,为参加同一热门主题评论的其他用户营造更好更融洽的讨论环境。In the embodiment of the present invention, realizing the user's identity verification can add an insurance mechanism to the security performance of the comment, and the review of the comment content is the second insurance mechanism, and the double insurance mechanism increases the reliability of the user comment, and participates in the same Other users of popular topic reviews create a better and more engaging discussion environment.
参见图2A及图2B,评论窗口的评论显示区域能够显示多条评论,对于用户而言,大多数评论是相似的,信息量并不高。例如,简短地对德国夺冠表示祝贺,或者对看中的某个队伍失利表示惋惜,或者简单地说打得好之类的,这些评论内容相似度高,文字简短,信息量较低,但是数量较大,用户阅读起来极其耗费时间和精力。为提高信息量的获取速度,本发明实施例中,可以对评论进行进一步的解析,将其中信息量较高的部分评论查找出来,作为精华评论进行显示(因此数量相对较少)。图2A及图2B中的评论显示区域就已经分成了两部分,一部分称之为“随心谈”,另一部分称之为“精华谈”。用户若没有较多的时间去参与阅读“随心谈”,或者想在较短时间内尽量获取较多的信息量,则可以直接到精华谈中阅读已有的精华评论。Referring to FIG. 2A and FIG. 2B, the comment display area of the comment window can display a plurality of comments, and for the user, most of the comments are similar, and the amount of information is not high. For example, a brief congratulations on Germany's victory, or a pity for a team that is frustrated, or simply a good fight, these comments are similar, the text is short, the amount of information is low, but the number Larger, users are extremely time consuming and energetic to read. In order to improve the speed of obtaining the information amount, in the embodiment of the present invention, the comment can be further analyzed, and a part of the comment with a higher amount of information is searched out and displayed as an elite comment (and thus the number is relatively small). The comment display area in Fig. 2A and Fig. 2B has been divided into two parts, one part is called "talking" and the other part is called "essential talk". If the user does not have more time to participate in the "talking", or want to get more information in a short period of time, you can go directly to the elite to read the existing elite comments.
前文提及,评论窗口中的评论均是实时抓取并显示的,图2A及图2B中的评论也是实时的。使用同一评论窗口实时显示多个用户的评论,达到不同用户间的信息沟通、聊天、讨论等功能,因此,该评论窗口具备聊天室功能。考虑到评论窗口是有着固定主题,因此,使用聊天室功能时,该评论窗口可以视为某一特定主题的聊天室。As mentioned above, the comments in the comment window are all captured and displayed in real time, and the comments in Figures 2A and 2B are also real-time. Use the same comment window to display the comments of multiple users in real time, to achieve information communication, chat, discussion and other functions between different users. Therefore, the comment window has a chat room function. Considering that the comment window has a fixed theme, when using the chat room function, the comment window can be considered as a chat room for a particular topic.
值得说明的是,在本发明实施例中,评论窗口并不是一成不变的,其显示属性根据来自用户的控制指令,可以进行对应的调整。具体地,对绘制窗口的颜色、位置、尺寸、内部架构比例、显示已评论信息的条数等显示属性或参数,均可以进行 调整。现依次对不同的参数调整进行说明。It should be noted that, in the embodiment of the present invention, the comment window is not static, and the display attribute can be adjusted according to the control instruction from the user. Specifically, display attributes or parameters such as the color, position, size, internal architecture ratio, and number of pieces of commented information of the drawing window can be performed. Adjustment. The different parameter adjustments are now described in turn.
对于绘制窗口的颜色属性而言,绘制窗口是否有背景色、评论框本身的颜色是否可以调整,评论文字颜色(包括显示的评论文字或输入的评论文字)等等,均可以根据用户的控制指令进行调整。例如,将背景色改为由白色改为红色、绿色,再例如,将显示的评论文字改为亮蓝色,将输入的评论文字改为淡紫色等等。For the color attribute of the drawing window, whether the drawing window has a background color, whether the color of the comment box itself can be adjusted, the comment text color (including the displayed comment text or the input comment text), etc., can be based on the user's control instruction. Make adjustments. For example, change the background color from white to red and green, and then, for example, change the displayed comment text to bright blue, change the input comment text to lavender, and so on.
而对于评论窗口的位置调整,首先,需要说明的是,评论窗口可以绘制在搜索页面的任意位置,例如插入搜索条目中,或者绘制在除搜索条目的显示区域之外的其他任意区域中均可。由此可见,评论窗口的位置并不是固定的,在使用的过程中,也完全可以对其位置进行调整,例如,由第一条搜索条目下方调至第二条搜索条目下方,由绘制在搜索页面的右上角调到右下角等均可。For the position adjustment of the comment window, first of all, it should be noted that the comment window can be drawn anywhere on the search page, such as inserting a search item, or drawing in any area other than the display area of the search item. . It can be seen that the position of the comment window is not fixed. In the process of using, it is also possible to adjust its position. For example, it is transferred from the first search item to the bottom of the second search item. The upper right corner of the page can be adjusted to the lower right corner.
上文提及,评论窗口由至少两大部分组成,一部分是评论显示区域,另一部分是评论输入区域。这两部分的组成也不是固定的,是可以根据用户需要调整的。例如,用户需要输入较长一段文字,此时需要将评论输入区域调大。同理,若用户当前不打算输入,想多看其他用户的评论,也可以将评论显示区域调大。As mentioned above, the comment window consists of at least two parts, one is the comment display area and the other is the comment input area. The composition of these two parts is not fixed and can be adjusted according to user needs. For example, the user needs to enter a longer paragraph of text, in which case the comment input area needs to be enlarged. Similarly, if the user does not intend to input at present, and wants to see more comments from other users, the comment display area can also be enlarged.
另外,评论显示区域每次显示多少条信息是预先设置的,例如每次显示五条或七条或十条,为了让用户获取更为大量的信息,满足用户需要,可以更改在评论窗口显示已评论信息的条数,将其更改为显示更多的条数(例如十条以上)。同理,若用户觉得当前评论过多,页面不足以显示所有的评论,需要滚轮翻页等较为麻烦的操作,那么也可以将其更改为显示更少的条数(例如三条)。In addition, the number of pieces of information displayed in the comment display area is preset in advance, for example, five or seven or ten items are displayed at a time. In order to allow the user to obtain a larger amount of information and satisfy the user's needs, the comment information can be changed in the comment window. Change the number of bars to display more bars (for example, more than ten). Similarly, if the user feels that there are too many current comments, the page is not enough to display all the comments, and the troublesome operation such as scrolling the page is required, then it can be changed to display fewer numbers (for example, three).
而评论窗口的尺寸也是可调的。图4A示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第三界面示意图。图4A的热门主题与图2A、图2B相同,均为“2014世界杯”。与图2A、图2B相比,图4A中的评论窗口纵向更长。实际应用中,评论窗口的长、宽均可调,可以成比例调整,也可以单个参数调整,根据用户的需求而定。除图4A外,图4B还示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第四界面示意图。图4A中,评论窗口最下一行显示“发表您的看法,请先登录/注册”,此时的登录或注册即是对用户身份进行验证,此时尚未进行验证,用户仅仅能够看到来自其他用户的聚合评论,不能输入评论。图4B则是通过用户身份验证,能够在评论输入区域输入评论,例如“打得好激烈”。图4B的评论窗口与图2B中的评论窗口相比,图4B中的评论窗口纵向更长,原因与图4A相同。The size of the comment window is also adjustable. 4A shows a third interface diagram of a hot topic review on a search page, in accordance with one embodiment of the present invention. The hot topic of FIG. 4A is the same as that of FIG. 2A and FIG. 2B, and both are “2014 World Cup”. Compared to Figures 2A and 2B, the comment window in Figure 4A is longer in the longitudinal direction. In practical applications, the length and width of the comment window are adjustable, and can be adjusted proportionally, or can be adjusted by a single parameter, depending on the needs of the user. In addition to FIG. 4A, FIG. 4B also shows a fourth interface diagram for performing hot topic comments on a search page, in accordance with one embodiment of the present invention. In Figure 4A, the bottom line of the comment window displays “Publish your opinion, please login/register first”. At this time, the login or registration is to verify the identity of the user. At this time, the user has not yet verified, and the user can only see other from User's aggregated comments, no comments can be entered. FIG. 4B is a user authentication, and it is possible to input a comment in the comment input area, for example, "playing fiercely." The comment window of FIG. 4B is longitudinally longer than the comment window of FIG. 2B, for the same reason as FIG. 4A.
另外,图4A及图4B中的评论窗口如同图2A及图2B中的评论窗口一样,可以视为某一特定主题的聊天室,具体理由请参见上文。In addition, the comment window in FIGS. 4A and 4B can be regarded as a chat room of a specific topic as the comment window in FIGS. 2A and 2B, and the specific reason is as described above.
除调整评论窗口的显示属性之外,评论窗口还可以采用弹幕方式显示在搜索页面上。此时,评论窗口覆盖整个搜索页面的显示区域,评论在评论窗口上滑动呈现。图5至图7示出了根据本发明一个实施例的评论窗口采用弹幕方式时评论的显示示意图。图5至图7中,评论从右向左滑动。图5中,评论刚刚呈现开头,图6中,评论显示大部分,图7中,评论显示结尾部分。当然,评论从右向左滑动、从上向下滑动、从下向上滑动,甚至斜向滑动均进可行的。图中的从右向左滑动仅为一个示例。当采用弹幕方式显示评论显示区域时,在整个弹幕的下方提供评论输入区域, 具体见图5至图7。用户通过评论输入区域输入的评论也会实时显示在弹幕上,并不断刷新所有用户的评论,满足实时交互的要求。In addition to adjusting the display properties of the comment window, the comment window can also be displayed on the search page using a barrage. At this point, the comment window covers the display area of the entire search page, and the comment is swiped on the comment window. 5 to 7 are diagrams showing the display of comments when the comment window is in the barrage mode according to an embodiment of the present invention. In Figures 5 to 7, the comment slides from right to left. In Fig. 5, the comment has just been presented at the beginning, and in Fig. 6, the comment shows most of it, and in Fig. 7, the comment shows the end portion. Of course, the comments slide from right to left, from top to bottom, from bottom to top, and even from diagonally. Sliding from right to left in the figure is just an example. When the comment display area is displayed by the barrage method, a comment input area is provided below the entire barrage. See Figure 5 to Figure 7 for details. The comments entered by the user through the comment input area are also displayed on the barrage in real time, and all user comments are constantly refreshed to meet the requirements of real-time interaction.
基于同一发明构思,本发明实施例还提供了一种搜索页面评论装置,用于支持上述任意一个优选实施例或其组合所提及的搜索页面评论方法。图8示出了根据本发明一个实施例的搜索页面评论装置的第一种结构示意图。参见图8,该装置至少包括:Based on the same inventive concept, an embodiment of the present invention further provides a search page commenting apparatus for supporting the search page commenting method mentioned in any one of the above preferred embodiments or a combination thereof. FIG. 8 shows a first structural diagram of a search page commenting apparatus according to an embodiment of the present invention. Referring to Figure 8, the device includes at least:
接收模块810,配置为接收来自用户的搜索词query;The receiving module 810 is configured to receive a search term from the user;
搜索模块820,与接收模块810耦合,配置为利用搜索词搜索到多条搜索条目;The search module 820 is coupled to the receiving module 810 and configured to search for a plurality of search items by using a search term;
判断模块830,与接收模块810耦合,配置为判断搜索词是否为触发评论机制的关键词;The determining module 830 is coupled to the receiving module 810 and configured to determine whether the search term is a keyword that triggers a comment mechanism;
生成模块840,分别与搜索模块820、判断模块830耦合,配置为若判断模块830的判断结果为是,则根据搜索条目的内容和/或热门属性生成评论主题;The generating module 840 is respectively coupled to the search module 820 and the determining module 830, and configured to generate a comment subject according to the content of the search item and/or the hot attribute if the determining result of the determining module 830 is YES;
绘制模块850,与生成模块840耦合,配置为在搜索页面中生成模块840生成的评论主题绘制评论窗口,以供用户对评论主题进行评论。The drawing module 850 is coupled to the generating module 840 and configured to generate a comment topic drawing comment window generated by the module 840 in the search page for the user to comment on the comment topic.
在一个优选的实施例中,图9示出了根据本发明一个实施例的搜索页面评论装置的第二种结构示意图。参见图9,上述装置还包括:In a preferred embodiment, FIG. 9 shows a second structural diagram of a search page commenting device in accordance with one embodiment of the present invention. Referring to FIG. 9, the above apparatus further includes:
评论显示模块860,耦合为与绘制模块850耦合,配置为:提取其他用户针对评论主题的聚合评论;在评论窗口中显示其他用户的聚合评论。The comment display module 860 is coupled to the drawing module 850 and configured to: extract aggregated comments of other users for the subject of the comment; display aggregated comments of other users in the comment window.
在一个优选的实施例中,评论显示模块860还可以配置为:In a preferred embodiment, the comment display module 860 can also be configured to:
实时提取其他用户的聚合评论;Extract aggregated comments from other users in real time;
在评论窗口中显示其他用户的聚合评论,包括:在评论窗口中实时显示其他用户的聚合评论。Show aggregated comments from other users in the comments window, including: real-time display of aggregated comments from other users in the comments window.
在一个优选的实施例中,评论窗口至少包括两部分:In a preferred embodiment, the comment window includes at least two parts:
评论显示区域,用于显示其他用户的聚合评论;A comment display area for displaying aggregated comments of other users;
评论输入区域,用于输入用户针对评论主题的评论。The comment input area is used to enter a user's comment on the subject of the comment.
在一个优选的实施例中,评论显示模块860还可以配置为:In a preferred embodiment, the comment display module 860 can also be configured to:
在评论输入区域接收已登录标识ID的用户针对评论主题的评论;Receiving a comment on the subject of the comment by the user who has logged in the ID in the comment input area;
根据预设规则对评论的评论内容进行审核;Review the comments of the comments according to the preset rules;
若审核通过,在评论显示区域显示用户的标识ID以及评论内容。If the review is approved, the user's identification ID and comment content are displayed in the comment display area.
在一个优选的实施例中,绘制模块850还可以配置为:根据来自用户的控制指令,调整评论窗口的显示属性。In a preferred embodiment, the rendering module 850 can also be configured to adjust the display attributes of the comment window based on control commands from the user.
在一个优选的实施例中,评论窗口的显示属性包括下列至少之一:In a preferred embodiment, the display attributes of the comment window include at least one of the following:
颜色,包括背景色、评论框颜色、文字颜色中的至少之一;Color, including at least one of a background color, a comment box color, and a text color;
评论窗口在页面的位置;The location of the comment window on the page;
评论窗口的内部架构比例;The internal architecture ratio of the comment window;
显示已评论信息的条数;Show the number of comments that have been commented;
评论窗口的尺寸。The size of the comment window.
在一个优选的实施例中,绘制模块850还可以配置为当评论窗口采用弹幕方式 显示在搜索页面上时,调整评论窗口覆盖整个搜索页面的显示区域。In a preferred embodiment, the drawing module 850 can also be configured to use the barrage mode when the comment window is When displayed on the search page, the adjustment comment window covers the display area of the entire search page.
在一个优选的实施例中,绘制模块850还可以配置为:In a preferred embodiment, the rendering module 850 can also be configured to:
在搜索页面中,In the search page,
将评论窗口插入到搜索条目中;或者Insert a comment window into the search entry; or
将评论窗口绘制在搜索条目的显示区域之外的区域。The comment window is drawn in an area outside the display area of the search item.
在一个优选的实施例中,生成模块840还可以配置为:In a preferred embodiment, the generating module 840 can also be configured to:
根据搜索条目的内容和/或热门属性,在多条搜索条目中选择一条搜索条目或合并至少两条搜索条目,生成评论主题。A review topic is generated based on the content of the search item and/or the popular attribute, selecting one search item among the plurality of search items or combining at least two search items.
在一个优选的实施例中,判断模块830还可以配置为:In a preferred embodiment, the determining module 830 can also be configured to:
将搜索词与包括触发评论机制的关键词的集合进行匹配;Matching the search term with a collection of keywords including a triggering comment mechanism;
若匹配结果为集合中存在搜索词,则搜索词是触发评论机制的关键词;If the matching result is that there is a search term in the set, the search term is a keyword that triggers the comment mechanism;
若匹配结果为集合中不存在搜索词,则搜索词不是触发评论机制的关键词。If the matching result is that there is no search term in the collection, the search term is not a keyword that triggers the comment mechanism.
采用本发明实施例提供的搜索页面评论方法及装置,能够达到如下有益效果:The search page commenting method and device provided by the embodiment of the present invention can achieve the following beneficial effects:
在本发明实施例中,接收来自用户的搜索词之后,在利用搜索词搜索到多条搜索条目,实现信息搜索功能的基础上,还针对搜索词,判断其是否能够触发用户评论、聊天的交互机制。若是,根据信息搜索功能搜索到的多条搜索条目的内容和/或热门属性生成评论主题,并在搜索页面中为生成的评论主题绘制评论窗口,以供用户对评论主题进行评论。由此可见,本发明实施例不仅仅能够提供信息搜索功能,还能够在搜索页面绘制出评论主题的评论窗口,供用户进行评论以及实时聊天交互。对于用户而言,可以在评论窗口对热门的评论主题进行讨论、吐槽,也能看到其他用户的评论信息,并实时参与到热门的评论主题中,提高用户的使用搜索引擎的交互体验。In the embodiment of the present invention, after receiving the search term from the user, on the basis of searching for multiple search items by using the search term, and implementing the information search function, it is also determined whether the search term can trigger the user comment and the chat interaction. mechanism. If so, the comment topic is generated according to the content and/or the hot attribute of the plurality of search items searched by the information search function, and a comment window is drawn in the search page for the generated comment topic for the user to comment on the comment topic. It can be seen that the embodiment of the present invention can not only provide the information search function, but also can draw a comment window of the comment topic on the search page for the user to make a comment and a live chat interaction. For the user, you can discuss and comment on the topic of popular comments in the comment window, and also see the comments of other users, and participate in the popular comment topics in real time to improve the user's interactive experience using the search engine.
本发明实施例还提供了一种搜索页面聊天方法。图10示出了根据本发明一个实施例的搜索页面聊天方法的处理流程图。参见图10,该流程至少包括步骤S1002至步骤S1006:The embodiment of the invention further provides a search page chat method. FIG. 10 shows a process flow diagram of a search page chat method in accordance with one embodiment of the present invention. Referring to FIG. 10, the flow includes at least steps S1002 to S1006:
步骤S1002、接收来自用户的搜索词(query);Step S1002, receiving a search term from a user;
步骤S1004、向服务器发起该搜索词对应的搜索请求,接收服务器根据搜索词反馈的搜索结果;Step S1004: Initiating a search request corresponding to the search term to the server, and receiving a search result fed back by the server according to the search term;
步骤S1006、接收服务器根据搜索词命中的评论主题,在搜索页面中为命中的评论主题创建聊天窗口。Step S1006: The receiving server creates a chat window for the hit topic in the search page according to the comment topic hit by the search term.
在本发明实施例中,接收来自用户的搜索词之后,向服务器发起该搜索词对应的搜索请求,接收服务器反馈的搜索结果,即,本发明实施例提供了实现搜索信息的提供功能。在此基础上,本发明实施例还接收服务器根据搜索词命中的评论主题,在搜索页面中为评论主题创建聊天窗口,为用户提供聊天的交互机制。由此可见,本发明实施例还提供了针对评论主题的聊天功能,使得用户能够在搜索的同时,针对评论主题(通常是一些热门事件)进行讨论、吐槽,实时参与到热门话题中,与其他用户进行聊天互动,提高用户的使用搜索引擎的交互体验。搜索词命中了评论主题,说明该搜索词通过了判断搜索词是否为触发评论机制的关键词的操作,属于 可以触发评论机制的关键词,没有命中评论主题的搜索词就不属于可以触发评论机制的关键词。在本发明的一个优选实施例中,搜索词命中的评论主题可以是服务器根据搜索词确定的。In the embodiment of the present invention, after receiving the search term from the user, the search request corresponding to the search term is initiated to the server, and the search result fed back by the server is received, that is, the embodiment of the present invention provides a function of providing search information. On this basis, the embodiment of the present invention further receives a comment window that the server hits according to the search term, creates a chat window for the comment topic in the search page, and provides the user with a chat interaction mechanism. It can be seen that the embodiment of the present invention further provides a chat function for the subject of the comment, so that the user can discuss, spoof, and participate in the hot topic in real time during the search, and participate in the hot topic in real time. The user interacts with the chat to improve the user's interactive experience using the search engine. The search term hits the comment topic, indicating that the search term passes the operation of judging whether the search term is a keyword that triggers the comment mechanism, and belongs to Keywords that can trigger the comment mechanism, and search words that do not hit the comment topic are not keywords that can trigger the comment mechanism. In a preferred embodiment of the invention, the subject of the search term hit may be determined by the server based on the search term.
为实现与其他用户进行聊天互动这一功能,在搜索页面为评论主题创建聊天窗口之后,在聊天窗口中接收服务器反馈的评论主题中其他用户的聊天内容,并显示。以及,若当前用户输入聊天内容,也可以在聊天窗口中显示。当然,聊天互动最重要地是保证聊天内容的实时性,若是回复的时间过长就变成留言回复。因此,当前用户以及其他用户的聊天内容均是实时获取并在聊天窗口中显示的。In order to realize the function of chatting with other users, after the search page creates a chat window for the comment topic, the chat content of other users in the comment topic fed back by the server is received and displayed in the chat window. And, if the current user inputs the chat content, it can also be displayed in the chat window. Of course, the most important part of the chat interaction is to ensure the real-time nature of the chat content. If the response time is too long, it will become a reply to the message. Therefore, the chat content of the current user and other users are acquired in real time and displayed in the chat window.
步骤S1006中提及服务器根据搜索词命中评论主题。通常,在服务器侧保存有包含触发评论机制的关键词,实施时,可以将搜索词与包括触发评论机制的关键词的集合进行匹配。若匹配结果为集合中存在搜索词,则搜索词是触发评论机制的关键词,则存在命中的评论主题。若匹配结果为集合中不存在搜索词,则搜索词不是触发评论机制的关键词,则不存在命中的评论主题。It is mentioned in step S1006 that the server hits the comment subject according to the search term. Generally, a keyword containing a trigger comment mechanism is saved on the server side, and when implemented, the search word can be matched with a set of keywords including a trigger comment mechanism. If the matching result is that there is a search term in the set, the search term is a keyword that triggers the comment mechanism, and there is a hit topic of the hit. If the matching result is that there is no search term in the collection, the search term is not a keyword that triggers the comment mechanism, and there is no comment topic of the hit.
其中,包括触发评论机制的关键词的集合中,为保证评论主题的时效性,关键词是实时更新的。在集合中,任意关键词的存在时长超过时间阈值,删除相应关键词,从而避免为已过期的评论主题生成聊天窗口,浪费资源。而若出现热门属性值超过热门阈值的搜索条目,则解析该条目获得关键词,并将获取的关键词加入集合,保证最新最热门的主题不会被遗漏。Among them, in the collection of keywords including the triggering comment mechanism, in order to ensure the timeliness of the comment topic, the keywords are updated in real time. In the collection, the duration of any keyword exceeds the time threshold, and the corresponding keyword is deleted, thereby avoiding generating a chat window for the expired comment topic and wasting resources. If there is a search item whose popularity attribute value exceeds the popular threshold, the item is parsed to obtain the keyword, and the obtained keyword is added to the collection to ensure that the latest and most popular topic will not be missed.
需要说明的是,因评论主题的命中涉及到搜索结果所包括的搜索条目的内容和/或热门属性,因此,同一搜索词可能会生成不同的评论主题,同理,不同的搜索词也可能会聚合生成相同的评论主题。It should be noted that because the hit of the comment topic involves the content and/or the hot attribute of the search item included in the search result, the same search word may generate different comment topics. Similarly, different search words may also be generated. Aggregate generates the same comment subject.
例如,同一搜索词“世界杯”,四强赛的热门程度比八强赛要高,此时评论主题应为“2014世界杯四强赛”,在搜索条目右侧绘制“2014世界杯四强赛”的聊天窗口。而决赛的热门程序比半决赛要高,此时的评论主题就应为“2014世界杯决赛”,在搜索条目右侧绘制“2014世界杯决赛”的聊天窗口。For example, the same search term "World Cup", the top four is more popular than the top eight, at this time the theme of the review should be "2014 World Cup Final Four", draw the "2014 World Cup Final Four" on the right side of the search term. chat window. The hottest program in the finals is higher than the semi-final. The theme of the review should be "2014 World Cup Finals", and the "2014 World Cup Finals" chat window will be drawn on the right side of the search term.
同理,不同搜索词也可能聚合生成相同的评论主题。例如,以“世界杯”为搜索词,会聚合生成热门主题“2014世界杯”,在搜索条目右侧绘制“2014世界杯”的聊天窗口。更换搜索词为“德国队”,同样能够聚合生成热门主题“2014世界杯”,进而在搜索条目右侧绘制“2014世界杯”的聊天窗口。再次更换搜索词为“阿根廷队”,也同样能够聚合生成热门主题“2014世界杯”,进而在搜索条目右侧绘制“2014世界杯”的聊天窗口。Similarly, different search terms may also be aggregated to generate the same comment subject. For example, if the "World Cup" is used as a search term, the popular theme "2014 World Cup" will be aggregated, and the "2014 World Cup" chat window will be drawn on the right side of the search item. Change the search term to "German team", and also be able to aggregate to generate the popular theme "2014 World Cup", and then draw the "2014 World Cup" chat window on the right side of the search entry. Change the search term to "Argentina" again, and also be able to aggregate to generate the popular theme "2014 World Cup", and then draw the "2014 World Cup" chat window on the right side of the search entry.
为满足显示用户评论(包括用户输入的评论以及其他用户的聚合评论)和输入用户评论两大功能,聊天窗口至少需要包括两部分:第一部分为聊天显示区域,用于显示其他用户的聊天内容和/或用户输入的聊天内容(包括评论);第二部分为聊天输入区域,用于输入用户针对评论主题的聊天内容。In order to satisfy the two functions of displaying user comments (including user-entered comments and other users' aggregate comments) and inputting user comments, the chat window needs to include at least two parts: the first part is a chat display area for displaying chat content of other users and / or chat content (including comments) entered by the user; the second part is a chat input area for inputting the chat content of the user for the subject of the comment.
将输入和显示两部分区域分开,能够让用户的输入变得简单直接,并能够使得显示部分显示信息更为集中,增加上下文互动性。图11A示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第一界面示意图。参见图11A,由搜索词“世 界杯”命中的热门主题为“2014世界杯”,搜索栏下侧出现世界杯比分等搜索条目,在右侧,绘制有一个“2014世界杯”为评论主题的聊天窗口,其中呈现了多用户对于该主题的评论(包括当前用户输入的聊天内容以及其他用户的聊天内容)。Separating the input and display areas can make the user's input simple and straightforward, and can make the display part display more concentrated information and increase contextual interactivity. FIG. 11A illustrates a first interface diagram of a hot topic review on a search page, in accordance with one embodiment of the present invention. See Figure 11A, by the search term "World The popular theme of the World Cup hit is "2014 World Cup". The search items such as the World Cup score appear on the lower side of the search bar. On the right side, a "2014 World Cup" is drawn as the comment window of the comment theme, which presents multiple users for the theme. Comments (including the chat content entered by the current user and the chat content of other users).
步骤S1006实施时,在搜索页面中为评论主题绘制聊天窗口,在此之后,用户在聊天窗口对热门主题进行评论。为了保证网络信息的安全,以及过滤些不符合社会道德的恶意评论,需要对用户身份以及用户发言的言论(聊天内容)进行审核。对用户身份进行验证时,用户需要注册标识(ID)才能够完成聊天内容的输入。而对用户发表的言论来说,需要根据预设规则对评论内容进行审核。例如,某些脏话、粗话、不礼貌的词语、带攻击性的词语等会无法通过审核,无法显示相应聊天内容或某中部分聊天不符合预设规则的聊天内容。图11A中,聊天窗口最下一行显示“发表您的看法,请先登录/注册”,此时的登录或注册即是对用户身份进行验证。When step S1006 is implemented, a chat window is drawn for the comment topic in the search page, after which the user comments on the hot topic in the chat window. In order to ensure the security of network information and to filter out malicious comments that are not in line with social ethics, it is necessary to review the identity of the user and the comments (chat content) spoken by the user. When authenticating a user's identity, the user needs to register an identity (ID) to complete the input of the chat content. For the comments made by users, the content of the comments needs to be reviewed according to the preset rules. For example, certain swear words, swear words, impolite words, offensive words, etc. will not be reviewed, and the chat content or some chats that do not meet the preset rules cannot be displayed. In Figure 11A, the bottom line of the chat window displays "Publish your opinion, please log in/register first". At this time, login or registration is to verify the identity of the user.
图12示出了根据本发明一个实施例的聊天内容审核机制的处理流程图。参见图12,该流程至少包括步骤S1202至步骤S1206:FIG. 12 shows a process flow diagram of a chat content review mechanism in accordance with one embodiment of the present invention. Referring to FIG. 12, the flow includes at least steps S1202 to S1206:
步骤S1202、在聊天输入区域接收已登录ID的用户针对评论主题的评论;Step S1202: Receive a comment on the subject of the user of the registered ID in the chat input area;
步骤S1204、根据预设规则对评论的聊天内容进行审核;Step S1204: Review the chat content of the comment according to a preset rule;
步骤S1206、若审核通过,在聊天显示区域显示用户的ID以及聊天内容。Step S1206: If the review is passed, the ID of the user and the content of the chat are displayed in the chat display area.
其中,步骤S1204中提及的预设规则可以有很多种,例如上文提及的无法通过审核的脏话、粗话、不礼貌的词语、带攻击性的词语,还可以是直接限定某些词语作为敏感词,使其无法通过审核,还可以是与地域道德完全违背的词语,等等。The preset rules mentioned in step S1204 may be various, such as the above-mentioned unspeakable swear words, swear words, impolite words, aggressive words, or directly defining certain words as Sensitive words, making it impossible to pass the review, but also words that are completely contrary to regional ethics, and so on.
步骤S1202及步骤S1206中均提及用户的ID,在实施时,因每一个热门主题对应一个聊天窗口,为实现单独主题的管理,通常每个用户在每个聊天窗口均存在一个ID。若多个聊天窗口基于同一平台实现,那么,用户也可以在多个聊天窗口通用基于同一平台的相同ID。In step S1202 and step S1206, the ID of the user is mentioned. In the implementation, since each hot topic corresponds to a chat window, in order to implement the management of the individual topics, each user usually has an ID in each chat window. If multiple chat windows are implemented based on the same platform, the user can also use the same ID based on the same platform in multiple chat windows.
若ID验证通过,则聊天窗口中原“发表您的看法,请先登录/注册”的位置呈现聊天输入框(位于上文提及的聊天显示区域)。图11B示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第二界面示意图。图11B与图11A基本相同,不同之处在于,图11B中用户通过ID验证,能够在聊天输入框评论。具体地,见图11B中的聊天输入框(已输入“打得好激烈”五个字的评论)以及“发表评论”的可触发标识。当用户点击“发表评论”这一可触发标识时,即可将聊天输入框中的“打得好激烈”,以及当前用户的ID对应输出到聊天显示区域。If the ID verification is passed, the chat input box (located in the chat display area mentioned above) is presented in the chat window where the original "Publish your opinion, please login/register first". FIG. 11B illustrates a second interface diagram of a hot topic review on a search page, in accordance with one embodiment of the present invention. FIG. 11B is substantially the same as FIG. 11A except that the user in FIG. 11B is able to comment in the chat input box by ID verification. Specifically, the chat input box in FIG. 11B (the comment of "five words fiercely" has been input) and the triggerable flag of "post comment". When the user clicks the "comment" to trigger the logo, the "playing fiercely" in the chat input box and the current user's ID correspondingly output to the chat display area.
在本发明实施例中,实现用户的身份验证能够对评论的安全性能增加一道保险机制,而对聊天内容的审核是第二道保险机制,双重保险机制增加了用户评论的可靠性,为参加同一热门主题评论的其他用户营造更好更融洽的聊天环境。In the embodiment of the present invention, realizing the identity verification of the user can add an insurance mechanism to the security performance of the comment, and the review of the chat content is the second insurance mechanism, and the double insurance mechanism increases the reliability of the user comment, and participates in the same Other users of popular topic reviews create a better and more responsive chat environment.
参见图11A及图11B,聊天窗口的聊天显示区域能够显示多条聊天信息(如评论),对于用户而言,大多数评论是相似的,信息量并不高。例如,简短地对德国夺冠表示祝贺,或者对看中的某个队伍失利表示惋惜,或者简单地说打得好之类的,这些评论内容相似度高,文字简短,信息量较低,但是数量较大,用户阅读起来极其耗费时间和精力。为提高信息量的获取速度,本发明实施例中,可以对评论进行进一 步的解析,将其中信息量较高的部分评论查找出来,作为精华评论进行显示(因此数量相对较少)。图11A及图11B中的聊天显示区域就已经分成了两部分,一部分称之为“随心谈”,另一部分称之为“精华谈”。用户若没有较多的时间去参与阅读“随心谈”,或者想在较短时间内尽量获取较多的信息量,则可以直接到精华谈中阅读已有的精华评论。Referring to FIG. 11A and FIG. 11B, the chat display area of the chat window can display a plurality of pieces of chat information (such as comments). For the user, most of the comments are similar, and the amount of information is not high. For example, a brief congratulations on Germany's victory, or a pity for a team that is frustrated, or simply a good fight, these comments are similar, the text is short, the amount of information is low, but the number Larger, users are extremely time consuming and energetic to read. In order to improve the speed of obtaining information, in the embodiment of the present invention, the comment can be further advanced. Step analysis, find some of the comments with higher information, and display them as the best comments (so the number is relatively small). The chat display area in Fig. 11A and Fig. 11B has been divided into two parts, one part is called "talking" and the other part is called "essential talk". If the user does not have more time to participate in the "talking", or want to get more information in a short period of time, you can go directly to the elite to read the existing elite comments.
前文提及,聊天窗口中的评论均是实时抓取并显示的,图11A及图11B中的评论也是实时的。使用同一聊天窗口实时显示多个用户的评论,达到不同用户间的信息沟通、聊天、讨论等功能,因此,该聊天窗口具备聊天室功能。考虑到本发明实施例提供的聊天窗口有着固定主题,因此,使用聊天室功能时,该聊天窗口可以视为某一特定主题的聊天室。As mentioned above, the comments in the chat window are all captured and displayed in real time, and the comments in FIGS. 11A and 11B are also real-time. Using the same chat window to display the comments of multiple users in real time, to achieve information communication, chat, discussion and other functions between different users, therefore, the chat window has a chat room function. Considering that the chat window provided by the embodiment of the present invention has a fixed theme, when the chat room function is used, the chat window can be regarded as a chat room of a specific theme.
值得说明的是,在本发明实施例中,聊天窗口并不是一成不变的,其显示属性根据来自用户的控制指令,可以进行对应的调整。具体地,对绘制聊天窗口的颜色、位置、尺寸、内部架构比例、显示已评论信息的条数等显示属性或参数,均可以进行调整。现依次对不同的参数调整进行说明。It should be noted that, in the embodiment of the present invention, the chat window is not static, and the display attribute can be adjusted according to the control instruction from the user. Specifically, the display attributes or parameters such as the color, position, size, internal architecture ratio, and the number of pieces of the commented information displayed on the chat window can be adjusted. The different parameter adjustments are now described in turn.
对于聊天窗口的颜色属性而言,聊天窗口是否有背景色、聊天框本身的颜色是否可以调整,聊天文字颜色(包括显示的聊天文字或输入的聊天文字)等等,均可以根据用户的控制指令进行调整。例如,将背景色改为由白色改为红色、绿色,再例如,将显示的聊天文字改为亮蓝色,将输入的聊天文字改为淡紫色等等。For the color attribute of the chat window, whether the chat window has a background color, whether the color of the chat box itself can be adjusted, the chat text color (including the displayed chat text or the input chat text), etc., can be according to the user's control instruction. Make adjustments. For example, change the background color from white to red and green, and then, for example, change the displayed chat text to bright blue, change the input chat text to lavender, and so on.
而对于聊天窗口的位置调整,首先,需要说明的是,聊天窗口可以绘制在搜索页面的任意位置,例如插入搜索条目中,或者绘制在除搜索条目的显示区域之外的其他任意区域中均可。由此可见,聊天窗口的位置并不是固定的,在使用的过程中,也完全可以对其位置进行调整,例如,由第一条搜索条目下方调至第二条搜索条目下方,由绘制在搜索页面的右上角调到右下角等均可。For the position adjustment of the chat window, first of all, it should be noted that the chat window can be drawn anywhere on the search page, for example, inserted into the search item, or drawn in any area other than the display area of the search item. . It can be seen that the location of the chat window is not fixed. In the process of using, it is also possible to adjust its position. For example, it is transferred from the first search item to the bottom of the second search item, and is drawn in the search. The upper right corner of the page can be adjusted to the lower right corner.
上文提及,聊天窗口由至少两大部分组成,一部分是聊天显示区域,另一部分是聊天输入区域。这两部分的组成也不是固定的,是可以根据用户需要调整的。例如,用户需要输入较长一段文字,此时需要将聊天输入区域调大。同理,若用户当前不打算输入,想多看其他用户的评论,也可以将聊天显示区域调大。As mentioned above, the chat window consists of at least two parts, one is the chat display area and the other is the chat input area. The composition of these two parts is not fixed and can be adjusted according to user needs. For example, the user needs to enter a longer paragraph of text, in which case the chat input area needs to be increased. Similarly, if the user does not intend to input at present, and wants to see more comments from other users, the chat display area can also be adjusted.
另外,聊天显示区域每次显示多少条信息是预先设置的,例如每次显示五条或七条或十条,为了让用户获取更为大量的信息,满足用户需要,可以更改在聊天窗口显示已评论信息的条数,将其更改为显示更多的条数(例如十条以上)。同理,若用户觉得当前条数过多,页面不足以显示所有的聊天内容,需要滚轮翻页等较为麻烦的操作,那么也可以将其更改为显示更少的条数(例如三条)。In addition, the number of pieces of information displayed in the chat display area is preset in advance, for example, five or seven or ten items are displayed at a time. In order to allow the user to obtain a larger amount of information and satisfy the user's needs, the comment information displayed in the chat window may be changed. Change the number of bars to display more bars (for example, more than ten). Similarly, if the user feels that the current number is too large, the page is not enough to display all the chat content, and the troublesome operation such as scrolling the page is required, then it can be changed to display fewer numbers (for example, three).
而聊天窗口的尺寸也是可调的。图13A示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第二界面示意图。图13A的热门主题与图11A、图11B相同,均为“2014世界杯”。与图11A、图11B相比,图13A中的聊天窗口纵向更长。实际应用中,聊天窗口的长、宽均可调,可以成比例调整,也可以单个参数调整,根据用户的需求而定。除图13A外,图13B还示出了根据本发明一个实施例的在搜索页面进行热门主题评论的第四界面示意图。图13A中,聊天窗口最下一行显示“发 表您的看法,请先登录/注册”,此时的登录或注册即是对用户身份进行验证,此时尚未进行验证,用户仅仅能够看到来自其他用户的聚合评论,不能输入评论。图13B则是通过用户身份验证,能够在聊天输入区域输入评论,例如“打得好激烈”。图13B的聊天窗口与图2B中的聊天窗口相比,图13B中的聊天窗口纵向更长,原因与图4A相同。The size of the chat window is also adjustable. FIG. 13A illustrates a second interface diagram of a hot topic review on a search page, in accordance with one embodiment of the present invention. The hot theme of FIG. 13A is the same as that of FIGS. 11A and 11B, and both are "2014 World Cup". Compared with FIGS. 11A and 11B, the chat window in FIG. 13A is longer in the vertical direction. In practical applications, the length and width of the chat window are adjustable, and can be adjusted proportionally, or can be adjusted by a single parameter, depending on the needs of the user. In addition to FIG. 13A, FIG. 13B also shows a fourth interface diagram for performing hot topic comments on a search page, in accordance with one embodiment of the present invention. In Figure 13A, the bottom line of the chat window shows "fat" To view your opinion, please log in/register first. At this time, the login or registration is to verify the identity of the user. At this time, the authentication has not been performed. The user can only see the aggregated comments from other users, and cannot input the comments. Figure 13B Then, through user authentication, it is possible to input a comment in the chat input area, for example, “playing fiercely.” The chat window of FIG. 13B is longer than the chat window of FIG. 2B, and the chat window in FIG. 13B is longer. Figure 4A is the same.
另外,图13A及图13B中的聊天窗口如同图11A及图11B中的聊天窗口一样,可以视为某一特定主题的聊天室,具体理由请参见上文。In addition, the chat window in FIGS. 13A and 13B can be regarded as a chat room of a specific theme like the chat window in FIGS. 11A and 11B. For the specific reasons, please refer to the above.
除调整聊天窗口的显示属性之外,聊天窗口还可以采用弹幕方式显示在搜索页面上。此时,聊天窗口覆盖整个搜索页面的显示区域,评论在聊天窗口上滑动呈现。图14至图16示出了根据本发明一个实施例的聊天窗口采用弹幕方式时评论的显示示意图。图14至图16中,评论从右向左滑动。图14中,评论刚刚呈现开头,图15中,评论显示大部分,图16中,评论显示结尾部分。当然,评论从右向左滑动、从上向下滑动、从下向上滑动,甚至斜向滑动均进可行的。图中的从右向左滑动仅为一个示例。当采用弹幕方式显示聊天显示区域时,在整个弹幕的下方提供聊天输入区域,具体见图14至图16。用户通过聊天输入区域输入的评论也会实时显示在弹幕上,并不断刷新所有用户的评论,满足实时交互的要求。In addition to adjusting the display properties of the chat window, the chat window can also be displayed on the search page using a barrage. At this point, the chat window covers the display area of the entire search page, and the comments are swiped on the chat window. 14 to FIG. 16 are diagrams showing the display of comments when the chat window adopts the barrage mode according to an embodiment of the present invention. In Figures 14 to 16, the comment slides from right to left. In Fig. 14, the comment has just been presented at the beginning, and in Fig. 15, the comment shows most of it, and in Fig. 16, the comment shows the end portion. Of course, the comments slide from right to left, from top to bottom, from bottom to top, and even from diagonally. Sliding from right to left in the figure is just an example. When the chat display area is displayed by the barrage mode, a chat input area is provided below the entire barrage, as shown in FIG. 14 to FIG. The comments entered by the user through the chat input area are also displayed on the barrage in real time, and the comments of all users are constantly refreshed to meet the requirements of real-time interaction.
基于同一发明构思,本发明实施例还提供了一种搜索页面聊天客户端(或者称为搜索页面聊天装置),用于支持上述任意一个优选实施例或其组合所提及的搜索页面聊天方法。图17示出了根据本发明一个实施例的搜索页面聊天客户端的第一种结构示意图。参见图17,该客户端至少包括:Based on the same inventive concept, an embodiment of the present invention further provides a search page chat client (or a search page chat device) for supporting the search page chat method mentioned in any one of the above preferred embodiments or a combination thereof. FIG. 17 shows a first structural diagram of a search page chat client according to an embodiment of the present invention. Referring to Figure 17, the client includes at least:
搜索词输入模块1710(也可以称为接收模块),配置为接收来自用户的搜索词query;a search word input module 1710 (which may also be referred to as a receiving module) configured to receive a search term from the user;
搜索模块1720,与搜索词输入模块1710耦合,配置为根据搜索词向服务器发起搜索请求,以及,接收服务器根据query反馈的搜索结果;The search module 1720 is coupled to the search term input module 1710, configured to initiate a search request to the server according to the search term, and receive a search result that the server feeds back according to the query;
聊天创建模块1730,与搜索词输入模块1730耦合,配置为接收服务器根据搜索词命中的评论主题,在搜索页面中为评论主题创建聊天窗口。The chat creation module 1730 is coupled to the search term input module 1730, and configured to receive a comment window by the server according to the search topic hit, and create a chat window for the comment topic in the search page.
在一个优选的实施例中,图18示出了根据本发明一个实施例的搜索页面聊天客户端的第二种结构示意图。参见图18,上述客户端还包括:In a preferred embodiment, FIG. 18 illustrates a second block diagram of a search page chat client in accordance with one embodiment of the present invention. Referring to FIG. 18, the foregoing client further includes:
用户聊天模块1740,与聊天创建模块1730耦合,配置为在聊天窗口中接收服务器反馈的评论主题中其他用户的聊天内容,并显示;和/或,接收用户输入的聊天内容,并显示。The user chat module 1740 is coupled to the chat creation module 1730, configured to receive, in the chat window, the chat content of other users in the comment subject fed back by the server, and display the content of the chat input by the user, and/or display the chat content input by the user.
在一个优选地实施例中,用户聊天模块1740还可以配置为实时获取并显示用户以及其他用户的聊天内容。In a preferred embodiment, the user chat module 1740 can also be configured to retrieve and display the chat content of the user and other users in real time.
在一个优选的实施例,参见图18,该客户端还包括:In a preferred embodiment, referring to FIG. 18, the client further includes:
验证模块1750,与用户聊天模块1740耦合,配置为对用户的标识ID进行验证;和/或,根据预设规则对用户的聊天内容进行审核验证。The verification module 1750 is coupled to the user chat module 1740, configured to verify the identifier of the user, and/or to perform audit verification on the chat content of the user according to a preset rule.
在一个优选的实施例,聊天创建模块1730还可以配置为:根据来自用户的控制指令,调整聊天窗口的显示属性。 In a preferred embodiment, the chat creation module 1730 may be further configured to: adjust display attributes of the chat window according to control instructions from the user.
在一个优选的实施例,聊天窗口的显示属性包括下列至少之一:In a preferred embodiment, the display attributes of the chat window include at least one of the following:
颜色,包括背景色、评论框颜色、文字颜色中的至少之一;Color, including at least one of a background color, a comment box color, and a text color;
聊天窗口在页面的位置;The location of the chat window on the page;
聊天窗口的内部架构比例;The internal architecture ratio of the chat window;
显示已评论信息的条数;Show the number of comments that have been commented;
聊天窗口的尺寸。The size of the chat window.
在一个优选的实施例,聊天创建模块1730还可以配置为:采用弹幕方式在搜索页面上显示聊天窗口时,调整聊天窗口覆盖整个搜索页面的显示区域。In a preferred embodiment, the chat creation module 1730 may be further configured to: when the chat window is displayed on the search page by using a barrage mode, adjust the chat window to cover the display area of the entire search page.
在一个优选的实施例,聊天创建模块1730还可以配置为:在弹幕方式显示的聊天窗口上,滑动呈现聊天内容。In a preferred embodiment, the chat creation module 1730 may be further configured to: slide and present the chat content on the chat window displayed in the barrage mode.
在一个优选的实施例,聊天创建模块1730还可以配置为:In a preferred embodiment, the chat creation module 1730 can also be configured to:
在搜索页面中,In the search page,
将聊天窗口插入到搜索条目中;或者Insert a chat window into the search entry; or
将聊天窗口绘制在搜索条目的显示区域之外的区域。The chat window is drawn in an area outside the display area of the search item.
采用本发明实施例提供的搜索页面聊天方法及客户端,能够达到如下有益效果:The search page chat method and the client provided by the embodiment of the present invention can achieve the following beneficial effects:
在本发明实施例中,接收来自用户的搜索词之后,向服务器发起该搜索词对应的搜索请求,接收服务器反馈的搜索结果,即,本发明实施例提供了实现搜索信息的提供功能。在此基础上,本发明实施例还接收服务器根据搜索词命中的评论主题,在搜索页面中为评论主题创建聊天窗口,为用户提供聊天的交互机制。由此可见,本发明实施例还提供了针对评论主题的聊天功能,使得用户能够在搜索的同时,针对评论主题(通常是一些热门事件)进行讨论、吐槽,实时参与到热门话题中,与其他用户进行聊天互动,提高用户的使用搜索引擎的交互体验。In the embodiment of the present invention, after receiving the search term from the user, the search request corresponding to the search term is initiated to the server, and the search result fed back by the server is received, that is, the embodiment of the present invention provides a function of providing search information. On this basis, the embodiment of the present invention further receives a comment window that the server hits according to the search term, creates a chat window for the comment topic in the search page, and provides the user with a chat interaction mechanism. It can be seen that the embodiment of the present invention further provides a chat function for the subject of the comment, so that the user can discuss, spoof, and participate in the hot topic in real time during the search, and participate in the hot topic in real time. The user interacts with the chat to improve the user's interactive experience using the search engine.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, the various features of the invention are sometimes grouped together into a single embodiment, in the above description of the exemplary embodiments of the invention, Figure, or a description of it. However, the method disclosed is not to be interpreted as reflecting the intention that the claimed invention requires more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects reside in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the embodiments, and each of the claims as a separate embodiment of the invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包 括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components. In addition to such features and/or at least some of the processes or units being mutually exclusive, any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined. Unless otherwise stated, this specification (package) Each of the features disclosed in the accompanying claims, the abstract and the drawings may be replaced by alternative features that provide the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features that are included in other embodiments and not in other features, combinations of features of different embodiments are intended to be within the scope of the present invention. Different embodiments are formed and formed. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的搜索页面内容装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of the search page content device in accordance with embodiments of the present invention. The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
例如,图19示出了可以实现根据本发明的搜索页面内容方法的计算设备。该计算设备传统上包括处理器1910和以存储器1920形式的计算机程序产品或者计算机可读介质。存储器1920可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器1920具有用于执行上述方法中的任何方法步骤的程序代码1931的存储空间1930。例如,用于程序代码的存储空间1930可以包括分别用于实现上面的方法中的各种步骤的各个程序代码1931。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图20所述的便携式或者固定存储单元。该存储单元可以具有与图19的计算设备中的存储器1920类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码1931’,即可以由例如诸如1910之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。For example, Figure 19 illustrates a computing device that can implement a method of searching for page content in accordance with the present invention. The computing device conventionally includes a processor 1910 and a computer program product or computer readable medium in the form of a memory 1920. The memory 1920 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. Memory 1920 has a memory space 1930 for program code 1931 for performing any of the method steps described above. For example, storage space 1930 for program code may include various program code 1931 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG. The storage unit may have storage segments, storage spaces, and the like that are similar to the storage 1920 in the computing device of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit includes computer readable code 1931', ie, code that can be read by, for example, a processor such as 1910, which when executed by a computing device causes the computing device to perform each of the methods described above step.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。"an embodiment," or "an embodiment," or "an embodiment," In addition, it is noted that the phrase "in one embodiment" is not necessarily referring to the same embodiment.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。 It is to be noted that the above-described embodiments are illustrative of the invention and are not intended to be limiting, and that the invention may be devised without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。 In addition, it should be noted that the language used in the specification has been selected for the purpose of readability and teaching, and is not intended to be construed or limited. Therefore, many modifications and changes will be apparent to those skilled in the art without departing from the scope of the invention. The disclosure of the present invention is intended to be illustrative, and not restrictive, and the scope of the invention is defined by the appended claims.

Claims (44)

  1. 一种搜索页面内容方法,包括:A method of searching page content, including:
    接收来自用户的搜索词query;Receiving a search term from the user;
    利用所述搜索词搜索到搜索结果,所述搜索结果包括多条搜索条目;以及Searching for search results using the search term, the search results including a plurality of search terms;
    判断所述搜索词是否为触发评论机制的关键词;Determining whether the search term is a keyword that triggers a comment mechanism;
    若是,则根据所述搜索条目的内容和/或热门属性生成评论主题,并在搜索页面中为所述评论主题绘制评论窗口,以供所述用户对所述评论主题进行评论;或者If yes, generating a comment topic according to the content and/or the hot attribute of the search item, and drawing a comment window for the comment topic in the search page for the user to comment on the comment topic; or
    若是,则根据所述搜索词命中的评论主题,在搜索页面中为所述评论主题创建聊天窗口。If so, a chat window is created for the comment topic in the search page according to the comment topic of the search term hit.
  2. 根据权利要求1所述的方法,其中,所述利用所述搜索词搜索到搜索结果包括:The method of claim 1 wherein said searching for search results using said search term comprises:
    向服务器发起该搜索词对应的搜索请求,接收所述服务器根据所述搜索词反馈的搜索结果。A search request corresponding to the search term is initiated to the server, and a search result fed back by the server according to the search term is received.
  3. 根据权利要求1所述的方法,其中,还包括:The method of claim 1 further comprising:
    提取其他用户针对所述评论主题的聚合评论;Extracting aggregated comments from other users for the subject of the comment;
    在所述评论窗口中显示所述其他用户的聚合评论。The aggregated comments of the other users are displayed in the comment window.
  4. 根据权利要求3所述的方法,其中,所述提取其他用户针对所述评论主题的聚合评论,包括:实时提取所述其他用户的聚合评论;The method of claim 3, wherein the extracting aggregated comments of other users for the comment subject comprises: extracting aggregated comments of the other users in real time;
    在所述评论窗口中显示所述其他用户的聚合评论,包括:在所述评论窗口中实时显示所述其他用户的聚合评论。Displaying the aggregated comments of the other users in the comment window includes displaying the aggregated comments of the other users in real time in the comment window.
  5. 根据权利要求3或4所述的方法,其中,所述评论窗口至少包括两部分:The method of claim 3 or 4, wherein the comment window comprises at least two parts:
    评论显示区域,用于显示所述其他用户的聚合评论和/或所述用户针对所述评论主题的评论;a comment display area for displaying aggregated comments of the other users and/or comments of the user for the subject of the comments;
    评论输入区域,用于输入所述用户针对所述评论主题的评论。A comment input area for inputting a comment of the user for the comment subject.
  6. 根据权利要求5所述的方法,其中,在搜索页面中为所述评论主题绘制评论窗口之后,还包括:The method of claim 5, wherein after the comment window is drawn for the comment topic in the search page, the method further comprises:
    在所述评论输入区域接收已登录标识ID的所述用户针对所述评论主题的评论;Receiving, by the comment input area, the user's comment on the comment subject in the comment input area;
    根据预设规则对所述评论的评论内容进行审核;Reviewing the comment content of the comment according to a preset rule;
    若审核通过,在所述评论显示区域显示所述用户的标识ID以及评论内容。If the review is passed, the user's identification ID and the comment content are displayed in the comment display area.
  7. 根据权利要求3至6任一项所述的方法,其中,在搜索页面中为所述评论主题绘制评论窗口之后,还包括:The method according to any one of claims 3 to 6, wherein after the comment window is drawn for the comment topic in the search page, the method further comprises:
    根据来自所述用户的控制指令,调整所述评论窗口的显示属性。The display attributes of the comment window are adjusted according to control instructions from the user.
  8. 根据权利要求7所述的方法,其中,所述评论窗口的显示属性包括下列至少之一:The method of claim 7, wherein the display attribute of the comment window comprises at least one of the following:
    颜色,包括背景色、评论框颜色、文字颜色中的至少之一;Color, including at least one of a background color, a comment box color, and a text color;
    所述评论窗口在所述页面的位置;The location of the comment window at the page;
    所述评论窗口的内部架构比例; The internal architecture ratio of the comment window;
    显示已评论信息的条数;Show the number of comments that have been commented;
    所述评论窗口的尺寸。The size of the comment window.
  9. 根据权利要求3至8任一项所述的方法,其中,所述评论窗口采用弹幕方式显示在所述搜索页面上时,覆盖整个搜索页面的显示区域。The method according to any one of claims 3 to 8, wherein the comment window covers a display area of the entire search page when displayed on the search page in a barrage manner.
  10. 根据权利要求9所述的方法,其中,所述评论在所述评论窗口上滑动呈现。The method of claim 9 wherein said comment is slidably presented on said comment window.
  11. 根据权利要求3至10任一项所述的方法,其中,在搜索页面中为所述评论主题绘制评论窗口,包括:The method according to any one of claims 3 to 10, wherein the comment window is drawn for the comment subject in the search page, comprising:
    在所述搜索页面中,In the search page,
    将所述评论窗口插入到所述搜索条目中;或者Inserting the comment window into the search entry; or
    将所述评论窗口绘制在所述搜索条目的显示区域之外的区域。The comment window is drawn in an area outside the display area of the search item.
  12. 根据权利要求3至11任一项所述的方法,其中,所述根据所述搜索条目的内容和/或热门属性生成评论主题,包括:The method according to any one of claims 3 to 11, wherein the generating a comment subject according to the content and/or the hot attribute of the search item comprises:
    根据所述搜索条目的内容和/或热门属性,在所述多条搜索条目中选择一条搜索条目或合并至少两条搜索条目,生成所述评论主题。And generating, according to the content and/or the hot attribute of the search item, one search item or combining at least two search items among the plurality of search items to generate the comment subject.
  13. 根据权利要求3至12任一项所述的方法,其中,判断所述搜索词是否为触发评论机制的关键词,包括:The method according to any one of claims 3 to 12, wherein determining whether the search term is a keyword triggering a comment mechanism comprises:
    将所述搜索词与包括触发评论机制的关键词的集合进行匹配;Matching the search term with a set of keywords including a triggering comment mechanism;
    若匹配结果为所述集合中存在所述搜索词,则所述搜索词是触发评论机制的关键词;If the matching result is that the search term exists in the set, the search term is a keyword that triggers a comment mechanism;
    若匹配结果为所述集合中不存在所述搜索词,则所述搜索词不是触发评论机制的关键词。If the matching result is that the search term does not exist in the set, the search term is not a keyword that triggers a comment mechanism.
  14. 根据权利要求13所述的方法,其中,还包括:The method of claim 13 further comprising:
    在所述集合中,任意关键词的存在时长超过时间阈值,删除相应关键词;和/或In the set, the duration of any keyword exceeds a time threshold, and the corresponding keyword is deleted; and/or
    若出现热门属性值超过热门阈值的条目,则解析该条目获得关键词,并将获取的关键词加入所述集合。If an entry with a hot attribute value exceeding a popular threshold occurs, the entry is parsed to obtain a keyword, and the obtained keyword is added to the set.
  15. 根据权利要求2所述的方法,其中,所述在搜索页面中为所述评论主题创建聊天窗口之后,还包括:The method of claim 2, wherein after the creating a chat window for the comment topic in the search page, the method further comprises:
    在所述聊天窗口中接收所述服务器反馈的所述评论主题中其他用户的聊天内容,并显示;和/或,Receiving, in the chat window, chat content of other users in the comment subject fed back by the server, and displaying; and/or,
    接收所述用户输入的聊天内容,并显示。Receiving the chat content input by the user and displaying it.
  16. 根据权利要求15所述的方法,其中,所述用户以及所述其他用户的聊天内容是实时获取并显示的。The method of claim 15, wherein the chat content of the user and the other user is acquired and displayed in real time.
  17. 根据权利要求15或16所述的方法,其中,显示所述用户输入的聊天内容之前,还包括:The method according to claim 15 or 16, wherein before displaying the chat content input by the user, the method further comprises:
    对所述用户的标识ID进行验证;和/或,Verifying the user's identification ID; and/or,
    根据预设规则对所述用户的聊天内容进行审核验证。The user's chat content is audited and verified according to a preset rule.
  18. 根据权利要求15至17任一项所述的方法,其中,在搜索页面中为所述评 论主题创建聊天窗口之后,还包括:The method according to any one of claims 15 to 17, wherein the rating is in the search page After the topic creates a chat window, it also includes:
    根据来自所述用户的控制指令,调整所述聊天窗口的显示属性。The display attribute of the chat window is adjusted according to a control instruction from the user.
  19. 根据权利要求18所述的方法,其中,所述聊天窗口的显示属性包括下列至少之一:The method of claim 18, wherein the display attribute of the chat window comprises at least one of the following:
    颜色,包括背景色、评论框颜色、文字颜色中的至少之一;Color, including at least one of a background color, a comment box color, and a text color;
    所述聊天窗口在所述页面的位置;The location of the chat window at the page;
    所述聊天窗口的内部架构比例;The internal architecture ratio of the chat window;
    显示已评论信息的条数;Show the number of comments that have been commented;
    所述聊天窗口的尺寸。The size of the chat window.
  20. 根据权利要求15至19任一项所述的方法,其中,所述聊天窗口采用弹幕方式显示在所述搜索页面上时,覆盖整个搜索页面的显示区域。The method according to any one of claims 15 to 19, wherein the chat window covers a display area of the entire search page when displayed on the search page in a barrage manner.
  21. 根据权利要求20所述的方法,其中,所述聊天内容在弹幕方式显示的所述聊天窗口上滑动呈现。The method of claim 20, wherein the chat content is slidably presented on the chat window displayed in a barrage mode.
  22. 根据权利要求15至21任一项所述的方法,其中,在搜索页面中为所述评论主题创建聊天窗口,包括:A method according to any one of claims 15 to 21, wherein creating a chat window for the comment topic in a search page comprises:
    在所述搜索页面中,In the search page,
    将所述聊天窗口插入到所述搜索条目中;或者Inserting the chat window into the search entry; or
    将所述聊天窗口绘制在所述搜索条目的显示区域之外的区域。The chat window is drawn in an area outside the display area of the search item.
  23. 一种搜索页面内容装置,包括:A device for searching page content, including:
    接收模块,配置为接收来自用户的搜索词query;a receiving module configured to receive a search term from a user;
    搜索模块,配置为利用所述搜索词搜索到搜索结果,所述搜索结果包括多条搜索条目;a search module configured to search for search results using the search term, the search results including a plurality of search entries;
    判断模块,配置为判断所述搜索词是否为触发评论机制的关键词;a determining module, configured to determine whether the search term is a keyword that triggers a comment mechanism;
    生成模块,配置为若所述判断模块的判断结果为是,则根据所述搜索条目的内容和/或热门属性生成评论主题;a generating module, configured to generate a comment topic according to content and/or a hot attribute of the search item if the judgment result of the determining module is yes;
    绘制模块,配置为在搜索页面中为所述生成模块生成的所述评论主题绘制评论窗口,以供所述用户对所述评论主题进行评论;或者a drawing module configured to draw a comment window for the comment topic generated by the generating module in the search page for the user to comment on the comment topic; or
    聊天创建模块,配置为若所述判断模块的判断结果为是,则根据所述搜索词命中的评论主题,在搜索页面中为所述评论主题创建聊天窗口。The chat creation module is configured to create a chat window for the comment topic in the search page according to the comment topic hit by the search term if the judgment result of the judgment module is YES.
  24. 根据权利要求23所述的装置,其中,所述搜索模块,还配置为向服务器发起该搜索词对应的搜索请求,接收所述服务器根据所述搜索词反馈的搜索结果。The apparatus according to claim 23, wherein the search module is further configured to initiate a search request corresponding to the search term to the server, and receive a search result fed back by the server according to the search term.
  25. 根据权利要求23所述的装置,其中,还包括:The apparatus of claim 23, further comprising:
    评论显示模块,配置为:提取其他用户针对所述评论主题的聚合评论;在所述评论窗口中显示所述其他用户的聚合评论。The comment display module is configured to: extract aggregated comments of other users for the comment subject; display aggregated comments of the other users in the comment window.
  26. 根据权利要求25所述的装置,其中,所述评论显示模块还配置为:The apparatus of claim 25 wherein said comment display module is further configured to:
    实时提取所述其他用户的聚合评论;Extracting aggregated comments of the other users in real time;
    在所述评论窗口中显示所述其他用户的聚合评论,包括:在所述评论窗口中实时显示所述其他用户的聚合评论。 Displaying the aggregated comments of the other users in the comment window includes displaying the aggregated comments of the other users in real time in the comment window.
  27. 根据权利要求25或26所述的装置,其中,所述评论窗口至少包括两部分:The apparatus according to claim 25 or 26, wherein said comment window comprises at least two parts:
    评论显示区域,用于显示所述其他用户的聚合评论;a comment display area for displaying aggregated comments of the other users;
    评论输入区域,用于输入所述用户针对所述评论主题的评论。A comment input area for inputting a comment of the user for the comment subject.
  28. 根据权利要求27所述的装置,其中,所述评论显示模块还配置为:The apparatus of claim 27, wherein the comment display module is further configured to:
    在所述评论输入区域接收已登录标识ID的所述用户针对所述评论主题的评论;Receiving, by the comment input area, the user's comment on the comment subject in the comment input area;
    根据预设规则对所述评论的评论内容进行审核;Reviewing the comment content of the comment according to a preset rule;
    若审核通过,在所述评论显示区域显示所述用户的标识ID以及评论内容。If the review is passed, the user's identification ID and the comment content are displayed in the comment display area.
  29. 根据权利要求25至28任一项所述的装置,其中,所述绘制模块还配置为:根据来自所述用户的控制指令,调整所述评论窗口的显示属性。The apparatus of any one of claims 25 to 28, wherein the rendering module is further configured to adjust a display attribute of the comment window in accordance with a control instruction from the user.
  30. 根据权利要求29所述的装置,其中,所述评论窗口的显示属性包括下列至少之一:The apparatus of claim 29, wherein the display attribute of the comment window comprises at least one of the following:
    颜色,包括背景色、评论框颜色、文字颜色中的至少之一;Color, including at least one of a background color, a comment box color, and a text color;
    所述评论窗口在所述页面的位置;The location of the comment window at the page;
    所述评论窗口的内部架构比例;The internal architecture ratio of the comment window;
    显示已评论信息的条数;Show the number of comments that have been commented;
    所述评论窗口的尺寸。The size of the comment window.
  31. 根据权利要求25至30任一项所述的装置,其中,所述绘制模块还配置为当所述评论窗口采用弹幕方式显示在所述搜索页面上时,调整所述评论窗口覆盖整个搜索页面的显示区域。The apparatus according to any one of claims 25 to 30, wherein the drawing module is further configured to adjust the comment window to cover the entire search page when the comment window is displayed on the search page in a barrage manner Display area.
  32. 根据权利要求25至31任一项所述的装置,其中,所述绘制模块还配置为:The apparatus according to any one of claims 25 to 31, wherein the rendering module is further configured to:
    在所述搜索页面中,In the search page,
    将所述评论窗口插入到所述搜索条目中;或者Inserting the comment window into the search entry; or
    将所述评论窗口绘制在所述搜索条目的显示区域之外的区域。The comment window is drawn in an area outside the display area of the search item.
  33. 根据权利要求25至32任一项所述的装置,其中,所述生成模块还配置为:The apparatus of any one of claims 25 to 32, wherein the generating module is further configured to:
    根据所述搜索条目的内容和/或热门属性,在所述多条搜索条目中选择一条搜索条目或合并至少两条搜索条目,生成所述评论主题。And generating, according to the content and/or the hot attribute of the search item, one search item or combining at least two search items among the plurality of search items to generate the comment subject.
  34. 根据权利要求25至33任一项所述的装置,其中,所述判断模块还配置为:The apparatus according to any one of claims 25 to 33, wherein the determining module is further configured to:
    将所述搜索词与包括触发评论机制的关键词的集合进行匹配;Matching the search term with a set of keywords including a triggering comment mechanism;
    若匹配结果为所述集合中存在所述搜索词,则所述搜索词是触发评论机制的关键词;If the matching result is that the search term exists in the set, the search term is a keyword that triggers a comment mechanism;
    若匹配结果为所述集合中不存在所述搜索词,则所述搜索词不是触发评论机制的关键词。If the matching result is that the search term does not exist in the set, the search term is not a keyword that triggers a comment mechanism.
  35. 根据权利要求24所述的装置,其中,还包括:The apparatus of claim 24, further comprising:
    用户聊天模块,配置为在所述聊天窗口中接收所述服务器反馈的所述评论主题中其他用户的聊天内容,并显示;和/或,接收所述用户输入的聊天内容,并显示。a user chat module, configured to receive, in the chat window, chat content of other users in the comment subject that is fed back by the server, and display; and/or receive the chat content input by the user, and display the content.
  36. 根据权利要求35所述的装置,其中,所述用户聊天模块还配置为实时获取并显示所述用户以及所述其他用户的聊天内容。The apparatus of claim 35, wherein the user chat module is further configured to acquire and display chat content of the user and the other users in real time.
  37. 根据权利要求35或36所述的装置,其中,还包括: The apparatus according to claim 35 or 36, further comprising:
    验证模块,配置为对所述用户的标识ID进行验证;和/或,根据预设规则对所述用户的聊天内容进行审核验证。The verification module is configured to verify the identifier ID of the user; and/or perform audit verification on the chat content of the user according to a preset rule.
  38. 根据权利要求35至37任一项所述的装置,其中,所述聊天创建模块还配置为:根据来自所述用户的控制指令,调整所述聊天窗口的显示属性。The apparatus of any one of claims 35 to 37, wherein the chat creation module is further configured to adjust display attributes of the chat window in accordance with control instructions from the user.
  39. 根据权利要求38所述的装置,其中,所述聊天窗口的显示属性包括下列至少之一:The apparatus of claim 38, wherein the display attribute of the chat window comprises at least one of the following:
    颜色,包括背景色、评论框颜色、文字颜色中的至少之一;Color, including at least one of a background color, a comment box color, and a text color;
    所述聊天窗口在所述页面的位置;The location of the chat window at the page;
    所述聊天窗口的内部架构比例;The internal architecture ratio of the chat window;
    显示已评论信息的条数;Show the number of comments that have been commented;
    所述聊天窗口的尺寸。The size of the chat window.
  40. 根据权利要求35至39任一项所述的装置,其中,所述聊天创建模块还配置为:采用弹幕方式在所述搜索页面上显示所述聊天窗口时,调整所述聊天窗口覆盖整个搜索页面的显示区域。The device according to any one of claims 35 to 39, wherein the chat creation module is further configured to: adjust the chat window to cover the entire search when the chat window is displayed on the search page by using a barrage method The display area of the page.
  41. 根据权利要求40所述的装置,其中,所述聊天创建模块还配置为:在弹幕方式显示的聊天窗口上,滑动呈现聊天内容。The device according to claim 40, wherein the chat creation module is further configured to: slide and present the chat content on a chat window displayed in a barrage mode.
  42. 根据权利要求35至41任一项所述的装置,其中,所述聊天创建模块还配置为:The apparatus of any one of claims 35 to 41, wherein the chat creation module is further configured to:
    在所述搜索页面中,In the search page,
    将所述聊天窗口插入到所述搜索条目中;或者Inserting the chat window into the search entry; or
    将所述聊天窗口绘制在所述搜索条目的显示区域之外的区域。The chat window is drawn in an area outside the display area of the search item.
  43. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-22中的任一个所述的搜索页面内容方法。A computer program comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform the method of searching for page content according to any of claims 1-22.
  44. 一种计算机可读介质,其中存储了如权利要求43所述的计算机程序。 A computer readable medium storing the computer program of claim 43.
PCT/CN2015/084245 2014-07-16 2015-07-16 Method and device for searching content of page WO2016008432A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201410340028.XA CN104133862A (en) 2014-07-16 2014-07-16 Search page commenting method and search page commenting device
CN201410340028.X 2014-07-16
CN201410340400.7A CN104156398A (en) 2014-07-16 2014-07-16 Method for searching page chat and client
CN201410340400.7 2014-07-16

Publications (1)

Publication Number Publication Date
WO2016008432A1 true WO2016008432A1 (en) 2016-01-21

Family

ID=55077926

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/084245 WO2016008432A1 (en) 2014-07-16 2015-07-16 Method and device for searching content of page

Country Status (1)

Country Link
WO (1) WO2016008432A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328872A (en) * 2020-10-27 2021-02-05 北京字节跳动网络技术有限公司 Information display method, information search method and device
CN112398727A (en) * 2020-11-06 2021-02-23 北京字跳网络技术有限公司 Information processing method, device, terminal and storage medium
CN116993564A (en) * 2023-08-11 2023-11-03 山东唐和智能科技有限公司 Community grid information collection method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508884A (en) * 2011-10-18 2012-06-20 盘古文化传播有限公司 Method and device for acquiring hotpot events and real-time comments
CN103440286A (en) * 2013-08-14 2013-12-11 北京百度网讯科技有限公司 Method and system for providing recommended information on the basis of search results
CN104133862A (en) * 2014-07-16 2014-11-05 北京奇虎科技有限公司 Search page commenting method and search page commenting device
CN104156398A (en) * 2014-07-16 2014-11-19 北京奇虎科技有限公司 Method for searching page chat and client

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508884A (en) * 2011-10-18 2012-06-20 盘古文化传播有限公司 Method and device for acquiring hotpot events and real-time comments
CN103440286A (en) * 2013-08-14 2013-12-11 北京百度网讯科技有限公司 Method and system for providing recommended information on the basis of search results
CN104133862A (en) * 2014-07-16 2014-11-05 北京奇虎科技有限公司 Search page commenting method and search page commenting device
CN104156398A (en) * 2014-07-16 2014-11-19 北京奇虎科技有限公司 Method for searching page chat and client

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328872A (en) * 2020-10-27 2021-02-05 北京字节跳动网络技术有限公司 Information display method, information search method and device
CN112398727A (en) * 2020-11-06 2021-02-23 北京字跳网络技术有限公司 Information processing method, device, terminal and storage medium
CN116993564A (en) * 2023-08-11 2023-11-03 山东唐和智能科技有限公司 Community grid information collection method
CN116993564B (en) * 2023-08-11 2024-02-13 山东唐和智能科技有限公司 Community grid information collection method

Similar Documents

Publication Publication Date Title
US11290775B2 (en) Computerized system and method for automatically detecting and rendering highlights from streaming videos
Golebiewski et al. Data voids: Where missing data can easily be exploited
Highfield Social media and everyday politics
JP6388988B2 (en) Static ranking for search queries in online social networks
CN105608593B (en) Monitoring and responding to social media posts with socially relevant comparisons
US10165307B2 (en) Automatic recognition of entities in media-captured events
CA2848605C (en) Structured objects and actions on a social networking system
US8909515B2 (en) Dynamic sentence formation from structured objects and actions in a social networking system
US8798995B1 (en) Key word determinations from voice data
US20130073568A1 (en) Ranking structured objects and actions on a social networking system
JP2019532422A (en) Display keyframes for videos on online social networks
CN108701144B (en) Automatically detecting emotion-expressing content from video and rich image index
EP2743837A1 (en) Search method, device and system
JP2017514194A (en) Ideogram based on sentiment analysis
US20140095308A1 (en) Advertisement distribution apparatus and advertisement distribution method
Sukhodolov et al. Fake news as a modern media phenomenon: definition, types, role of fake news and ways of counteracting it
US10909174B1 (en) State detection of live feed
Westlake The past, present, and future of online child sexual exploitation: Summarizing the evolution of production, distribution, and detection
WO2016008432A1 (en) Method and device for searching content of page
US11651039B1 (en) System, method, and user interface for a search engine based on multi-document summarization
JP2020129239A (en) Post Analysis System, Post Analysis Device, and Post Analysis Method
CN109831417A (en) Method, apparatus, server and the storage medium of anti-harassment processing account number
CN111885139B (en) Content sharing method, device and system, mobile terminal and server
Hookway Archives of Everyday Life
KR20150107927A (en) A management process of on-line chatting community by using chatterbot

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: 15821997

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: 15821997

Country of ref document: EP

Kind code of ref document: A1