CN111339452B - Method, terminal, server and system for displaying search result - Google Patents

Method, terminal, server and system for displaying search result Download PDF

Info

Publication number
CN111339452B
CN111339452B CN202010099180.9A CN202010099180A CN111339452B CN 111339452 B CN111339452 B CN 111339452B CN 202010099180 A CN202010099180 A CN 202010099180A CN 111339452 B CN111339452 B CN 111339452B
Authority
CN
China
Prior art keywords
search
comment
target
result list
item
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010099180.9A
Other languages
Chinese (zh)
Other versions
CN111339452A (en
Inventor
马华蓉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010099180.9A priority Critical patent/CN111339452B/en
Publication of CN111339452A publication Critical patent/CN111339452A/en
Application granted granted Critical
Publication of CN111339452B publication Critical patent/CN111339452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines

Landscapes

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

Abstract

The present disclosure relates to the field of computer technologies, and in particular, to a method, a terminal, a server, and a system for displaying search results. The method for displaying the search result provided by the disclosure comprises the following steps: acquiring a plurality of search items according to a query word sent by a terminal; determining whether the query word is a target word; if so, extracting the target comment from the comments contained in the search item; generating a comment result according to the attribute information of the target comment and the search item from which the target comment comes; and generating a search result list comprising the comment results and the search items and sending the search result list to the terminal. According to the search result display method provided by the disclosure, the target comment is extracted from the search item corresponding to the query word, so that the target comment is closely related to the query word and the search item, and the comment result and the search item are displayed in the search result list together, so that a user can conveniently and quickly find a desired search result, and the search efficiency is improved.

Description

Method, terminal, server and system for displaying search result
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, a terminal, a server, and a system for displaying search results.
Background
The user comment content becomes one of important original contents of Internet users, the existing comment content about articles or videos is usually located at the bottom of a webpage main text, and the user can see the comment content of other users only after the user pulls down to the bottom of the webpage after entering the articles, so that browsing and finding of the comment content by the user are delayed, and the searching efficiency is low.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
According to one or more embodiments of the present disclosure, a method for search result presentation is provided, the method comprising:
receiving a search request containing a query word sent by a terminal, and acquiring at least one search item according to the query word;
determining whether the query word is a target word;
if yes, selecting a target comment from comments contained in the search item;
generating a comment result according to the attribute information of the target comment and the search item from which the target comment comes;
generating a search result list, the search result list including the review results and the search terms;
and sending the search result list to the terminal.
According to one or more embodiments of the present disclosure, a method for search result presentation is provided, the method comprising:
receiving a query word input by a user;
sending a search request containing the query word to a server so that the server generates a search result list according to the query word, wherein the search result list comprises comment results and search items which are arranged together; and
and receiving and displaying the search result list returned by the server.
According to one or more embodiments of the present disclosure, there is provided a server including:
the device comprises a request receiving unit, a searching unit and a searching unit, wherein the request receiving unit is used for receiving a searching request which contains a query word and is sent by a terminal;
the recall unit is used for acquiring at least one search item according to the query word;
the target determining unit is used for determining whether the query word is a target word;
the comment selecting unit is used for selecting a target comment from comments contained in the search item if the query word is the target word;
the comment result unit is used for generating a comment result according to the attribute information of the target comment and the search item from which the target comment comes;
a search result list unit for generating a search result list including the comment result and the search item;
and the result sending unit is used for sending the search result list to the terminal.
According to one or more embodiments of the present disclosure, there is provided a terminal including:
the query term receiving unit is used for receiving the query terms input by the user;
the request sending unit is used for sending a search request containing the query word to a server so as to enable the server to generate a search result list according to the query word, and the search result list comprises comment results and search items which are arranged together; and
and the display unit is used for receiving and displaying the search result list returned by the server.
In accordance with one or more embodiments of the present disclosure, there is provided a system comprising:
a terminal provided in accordance with one or more embodiments of the present disclosure; and
a server is provided according to one or more embodiments of the present disclosure.
According to one or more embodiments of the present disclosure, there is provided an electronic device including:
at least one memory and at least one processor;
wherein the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method for presenting the search result provided by one or more embodiments of the disclosure.
According to one or more embodiments of the present disclosure, a non-transitory computer storage medium is provided that stores program code for performing a method of search result presentation provided according to one or more embodiments of the present disclosure.
According to the method for displaying the search results provided by the embodiment of the disclosure, the target comment is extracted from the search item corresponding to the query word, so that the target comment is closely related to the query word and the search item, and the comment result and the search item are displayed in the search result list together, so that a user can conveniently and quickly find a desired search result, and the search efficiency and the comment result are improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a flow chart of a method of search result presentation provided according to an embodiment of the present disclosure;
FIG. 2A is a schematic diagram of a review result provided in accordance with an embodiment of the present disclosure;
FIG. 2B is a schematic diagram of a search result list provided in accordance with an embodiment of the present disclosure;
FIG. 3 is a flow chart of a method of search result presentation provided in accordance with another embodiment of the present disclosure;
FIG. 4 is a flow diagram of a method of search result presentation provided in accordance with yet another embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a system provided in accordance with an embodiment of the present disclosure;
fig. 6 is a signal flow diagram of a terminal and a server in a system provided according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a server provided according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a terminal according to another embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device for implementing an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the steps recited in the apparatus embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Moreover, device embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
For the purposes of this disclosure, the phrase "a and/or B" means (a), (B), or (a and B).
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Referring to fig. 1, fig. 1 shows a flowchart of a method 100 for presenting search results provided by an embodiment of the present disclosure, where the method 100 is used on a server side, and includes steps S101 to S107:
step S101: and receiving a search request containing the query words sent by the terminal.
Step S102: and acquiring at least one search item according to the query terms. In the embodiment of the present disclosure, the search term is a web page document corresponding to a query term (or a participle corresponding to the query term). As will be appreciated by those skilled in the art, the process of inputting search terms in the search interface of the search engine to query for relevant search terms, i.e., the search process, may be implemented by using techniques such as crawler technique, indexing technique, relevancy calculation technique, inverted index, etc. to obtain the search terms of the query terms.
Step S103: it is determined whether the query term is a target term.
Step S104: if yes, selecting the target comment from the comments contained in the search item.
In some embodiments, the target review may be selected from among the reviews contained in the search term based on at least one of the following filtering factors: the number of words of the comment, the number of praise of the comment, the number of forwarding of the comment, the user information of the posting comment, and the number of comments for the comment itself. For example, a specific weight may be set for each filtering factor, and the target comment is filtered according to the weighting result.
Step S105: and generating a comment result according to the attribute information of the target comment and the search item from which the target comment comes. The attribute information of the target comment comprises part or all of the content of the target comment and user information for publishing the target comment.
In some embodiments, the attribute information further includes one or more of the following: the method comprises the steps of publishing time information of the target comment, counting the number of praise on the target comment, counting the number of forwarding the target comment and counting the number of comments on the target comment.
In some embodiments, the review results may be generated based on a predetermined format according to the content of the targeted review, the user information, and the search term from which the targeted review came. Referring to fig. 2A, fig. 2A illustrates an embodiment of a comment result provided according to the present disclosure, where the comment result includes a user avatar posting a target comment, a user name, user remark information, time information posting the target comment, a "popular comment" tag, comment content, a comment title of a web page being commented, posting subject information, a cover picture, an "original article" tag, a forwarding number of the target comment, a praise number, and a comment number.
Step S106: a search result list is generated, the search result list including the review results and the search terms.
In some embodiments, the review results and the search terms in the search result list may be sequentially arranged together based on at least one of the following factors: the number of clicks, the number of likes, the number of forwards, the number of comments, the posting time, and the posting user information of the target comment or search term.
Step S107: and sending the search result list to the terminal.
Thus, in the embodiment of the present disclosure, the target comment is extracted from the search term corresponding to the query term, so that the target comment is closely related to both the query term and the search term, and the comment result and the search term are displayed in the search result list together, so that the user can conveniently and quickly find the desired search result, and the search efficiency is improved.
Referring to fig. 2B, according to an embodiment provided by the present disclosure, after receiving a query term "sports meeting" input by a user in a search box, a related web page article is recalled according to the query term. Then, whether the query word is the target word is determined, and if yes, the target comment is screened from the comments of the webpage article; and generating a comment result according to the comment content of the target comment, the head portrait of the user who issues the target comment, the user name, the number of praise, the number of forwarding, the number of comments and the number of reading of the comment, and the title, the cover picture and the issuing user of the webpage article from which the target comment comes. And finally, generating a search result list containing the comment results and the webpage articles and sending the search result list to the terminal for displaying, wherein the comment results and the webpage articles are arranged and displayed together.
In some embodiments, the at least one search term obtained in step S102 includes more than two search term subsets; step S104 specifically includes: selecting a target comment from comments contained in the search item subset; step S106 further includes: the review results and the search terms included in the subset of search terms from which the review results came are ranked together. The search term subset of the present disclosure refers to a portion of the search terms obtained from the query term, for example, in some embodiments, if 100 search terms are obtained from the query term, any group of 10 of the terms may be considered as the "search term subset" of the present disclosure. According to the embodiment of the disclosure, the comment results generated according to the target comment and the search items included in the search item subset from which the target comment comes are arranged together in the search result list for the terminal to display. Therefore, the comments and the search item subsets from the comments are arranged together for display, so that the relevance between the display results can be improved, and the search efficiency of the user is improved.
The "search term included in the search term subset" may be all search terms included in the search term subset, or may be a part of the search terms included in the search term subset. For example, in some embodiments, when a search summary has displayed a search term from which the summary came, the search term subset may not include the search term to avoid repeated display of the search term, increasing page utilization. In some embodiments, if the search term includes multiple sets of search term subsets, the search listing may include multiple sets of review results and search term subsets.
In some embodiments, the method 100 further comprises: acquiring associated information of a search item, wherein the associated information comprises a domain name and/or content information and/or publisher information; a subset of search terms is determined based on the associated information. The domain name is a website domain name to which the search item belongs, the content information is multimedia content such as characters, pictures and videos contained in the search item, and the publisher information is information of a user who publishes the characters, pictures and videos in the search item. For example, the domain name of the same website, such as a microblog, published content can be used as a set of search item subsets, or web pages which all publish videos can be used as a set of search item subsets, or search items to which articles or videos published by the same author belong can be used as a set of search item subsets. Therefore, according to the method provided by the embodiment of the disclosure, the search item subset is determined according to the acquired associated information of the search item, so that the association between the search results arranged together in the search result list can be improved, and the search efficiency of the user is further improved.
In some embodiments, step S103 further comprises:
step A1: performing word segmentation processing on the query word to obtain text word segmentation;
step A2: calculating the hot spot similarity of text word segmentation according to a preset hot spot database;
step A3: and determining whether the query word is the target word according to the hot spot similarity.
In the embodiment of the disclosure, the server is preset with a hot spot database, for example, a hot spot word bank which stores hot spot words and can be updated in real time, and relevant information about a hot spot event is stored in advance, and hot spot similarity of text segmentation is obtained by calculation according to the hot spot database, so that whether a query word is a target word can be judged. Generally, there are many high-quality comments about a hotspot event or news, and the relevance between the comment content and the hotspot event is high, so in the embodiment of the present disclosure, the value and the relevance of the searched comment can be improved by searching for the comment on the query term of the hotspot related term related to the hotspot event. It should be noted that, the hot spot similarity of the text participle may be calculated by using the existing or future similarity algorithms such as pearson similarity, cosine similarity, euclidean distance, etc., which is not limited in this disclosure.
Referring to fig. 3, fig. 3 shows a flowchart of a method 200 for presenting search results provided by the embodiment of the present disclosure, where the method 200 is used on a server side, and includes steps S201 to S207:
step S201: and receiving a search request containing the query words sent by the terminal.
Step S202: and acquiring N search terms according to the query terms.
Step S203: it is determined whether the query term is a target term.
Step S204: and if so, selecting target comments from the comments contained in each 10 search items in the N search items based on the number of praise and the number of forwarding.
Step S205: and generating a comment result according to the attribute information of the target comment and the search item from which the target comment comes.
Step S206: a search result list is generated in which the review results are sequentially arranged with the 10 search items it was extracted based on the number of likes, the number of forwards, and the generated content time.
Step S207: and sending the search result list to the terminal.
In the embodiment of the present disclosure, a target comment is extracted for each 10 search terms in N search terms, where each 10 search terms may be regarded as a term subset of the N search terms, and a comment result generated by the target comment extracted from the 10 search terms is finally arranged with the extracted 10 search terms in a search result list.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for presenting search results provided according to another embodiment of the present disclosure, where the method 300 is used on a terminal side, and includes steps S301 to S303:
step S301: and receiving a query word input by a user.
Step S302: and sending a search request containing the query word to the server so that the server generates a search result list according to the query word, wherein the search result list comprises the comment results and the search items which are arranged together. In the embodiment of the disclosure, the comment result is generated according to the attribute information of the comment and the search item from which the comment comes.
In some embodiments, the attribute information further includes one or more of the following: the method comprises the steps of publishing time information of the target comment, counting the number of praise on the target comment, counting the number of forwarding the target comment and counting the number of comments on the target comment.
Referring to fig. 2A, fig. 2A illustrates an embodiment of a comment result provided according to the present disclosure, where the comment result includes a user avatar posting a target comment, a user name, user remark information, time information posting the target comment, a "popular comment" tag, comment content, a web page article title being commented, posting subject information, a thematic map, an "original article" tag, a number of praise for the target comment, a number of forwarding, and a number of comments.
Step S303: and receiving and displaying a search result list returned by the server.
For the above method for presenting search results, fig. 5 shows a schematic diagram of a system provided according to an embodiment of the present disclosure, which includes a terminal 410 and a server 420. The terminal 410 includes, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and a fixed terminal such as a digital TV, a desktop computer, and the like. The terminal 410 is connected directly to the server 420 or indirectly via other intermediate servers or devices through a local area network, a wide area network, or the internet.
Fig. 6 shows a signal flow diagram of a terminal 410 and a server 420 in a system provided according to an embodiment of the present disclosure.
Step S501: the terminal 410 acquires a query word input by a user. The terminal in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), and fixed terminals such as a digital TV, a desktop computer, and the like. The query term may be input to the terminal by the user through manual input or voice input, and the disclosure is not limited thereto.
Step S502: the terminal 410 transmits a search request including the query word to the server 420. Accordingly, the server 420 receives the search request.
Step S503: the server 420 obtains at least one search term according to the query term.
Step S504: the server 420 determines whether the query word is a target word.
Step S505: if so, server 420 selects a target review from the reviews contained in the search term.
Step S506: the server 420 generates comment results according to the attribute information of the target comment and the search item from which the target comment comes.
Step S507: server 420 generates a search result list that includes review results and search terms.
Step S508: the server 420 transmits the search result list to the terminal 410.
Step S509: and the terminal receives and displays the search result list.
Thus, according to the system provided by the embodiment of the disclosure, the target comment is extracted from the search item corresponding to the query word, so that the target comment is closely related to the query word and the search item, and the comment result and the search item are displayed in the search result list together, so that the user can conveniently and quickly find the desired search result, and the search efficiency is improved.
Accordingly, as shown in fig. 7, an embodiment of the present disclosure provides a server 600, including: a request receiving unit 610, a recall unit 620, a target determination unit 630, a comment selecting unit 640, a comment result unit 650, a search result list unit 660, and a result sending unit 670, wherein:
a request receiving unit 610, configured to receive a search request containing a query term sent by a terminal;
a recall unit 620, configured to obtain at least one search term according to the query term;
a target determining unit 630 for determining whether the query word is a target word;
a comment selecting unit 640, configured to select a target comment from comments included in the search item if the query word is the target word;
the comment result unit 650 is configured to generate a comment result according to the attribute information of the target comment and the search item from which the target comment comes;
a search result list unit 660 for generating a search result list including the comment result and the search item;
a result transmitting unit 670 for transmitting the search result list to the terminal;
wherein the search result list comprises the review results and the search terms sequentially arranged together based on at least one ranking factor.
Thus, in the embodiment of the present disclosure, the target comment is extracted from the search term corresponding to the query term, so that the target comment is closely related to both the query term and the search term, and the comment result and the search term are displayed in the search result list together, so that the user can conveniently and quickly find the desired search result, and the search efficiency is improved.
In some embodiments, the at least one search term obtained by the recall unit 620 includes more than two search term subsets; the comment selecting unit 640 is further configured to select a target comment from the comments included in the search term subset; the search result listing unit 660 is further configured to rank together the review results and the search terms included in the subset of search terms from which the review results came. The search term subset of the present disclosure refers to a portion of the search terms obtained from the query term, for example, in some embodiments, if 100 search terms are obtained from the query term, any group of 10 of the terms may be considered as the "search term subset" of the present disclosure. According to the embodiment of the disclosure, the comment results generated according to the target comment and the search items included in the search item subset from which the target comment comes are arranged together in the search result list for the terminal to display. Therefore, the comments and the search item subsets from the comments are arranged together for display, so that the relevance between the display results can be improved, and the search efficiency of the user is improved.
The "search term included in the search term subset" may be all search terms included in the search term subset, or may be a part of the search terms included in the search term subset. For example, in some embodiments, when a search summary has displayed a search term from which the summary came, the search term subset may not include the search term to avoid repeated display of the search term, increasing page utilization. In some embodiments, if the search term includes multiple sets of search term subsets, the search listing may include multiple sets of review results and search term subsets.
In some embodiments, the server 600 further includes a search term subset determination unit for obtaining associated information of the search term, where the associated information includes a domain name and/or content information and/or publisher information; a subset of search terms is determined based on the associated information. The domain name is a website domain name to which the search item belongs, the content information is multimedia content such as characters, pictures and videos contained in the search item, and the publisher information is information of a user who publishes the characters, pictures and videos in the search item. For example, the domain name of the same website, such as a microblog, published content can be used as a set of search item subsets, or web pages which all publish videos can be used as a set of search item subsets, or search items to which articles or videos published by the same author belong can be used as a set of search item subsets. Thus, according to the method provided by the embodiment of the disclosure, the relevance among the search results arranged together in the search result list can be improved by determining the search item subset according to the acquired relevance information of the search items, and the search efficiency of the user is further improved.
In some embodiments, the comment results unit 650 is further configured to generate comment results based on a predetermined format according to the content of the targeted comment, the user information, and the search term from which the targeted comment came. Referring to fig. 2A, fig. 2A illustrates an embodiment of a comment result provided according to the present disclosure, where the comment result includes a user avatar posting a target comment, a user name, user remark information, time information posting the target comment, a "popular comment" tag, comment content, a comment title of a web page being commented, posting subject information, a cover picture, an "original article" tag, a forwarding number of the target comment, a praise number, and a comment number.
In some embodiments, the target determination unit 630 further comprises:
the word segmentation subunit is used for performing word segmentation processing on the query word to obtain a text word;
the similarity calculation operator unit is used for calculating the hot spot similarity of the text segmentation according to a preset hot spot database;
and the determining subunit is used for determining whether the query word is the target word according to the hot spot similarity.
In the embodiment of the disclosure, the server is preset with a hot spot database, for example, a hot spot word library which can be updated in real time, and relevant information about a hot spot event is stored in advance, and the hot spot similarity of text word segmentation is calculated and obtained according to the hot spot database, so that whether a query word is a target word or not can be further judged.
It should be noted that, the hot spot similarity of the text participle may be calculated by using the existing or future similarity algorithms such as pearson similarity, cosine similarity, euclidean distance, etc., which is not limited in this disclosure.
In some embodiments, the comment extracting unit 640 is further configured to extract a target comment from comments included in the search term based on at least one of the following filtering factors: the number of words of the comment, the number of praise of the comment, the number of forwarding of the comment, the user information of the posting comment, and the number of comments for the comment itself. For example, a specific weight may be set for each filtering factor, and the target comment is filtered according to the weighting result.
Accordingly, as shown in fig. 8, an embodiment of the present disclosure provides a terminal 700, including: a query term obtaining unit 710, a request transmitting unit 720, and a display unit 730. Wherein:
a query term obtaining unit 710, configured to obtain a query term input by a user;
a request sending unit 720, configured to send a search request including a query term to a server, so that the server generates a search result list according to the query term, where the search result list includes comment results and search terms; and
the display unit 730 is used for receiving and displaying a search result list returned by the server;
wherein the search result list comprises the review results and the search terms sequentially arranged together based on at least one ranking factor.
For the embodiments of the apparatus, since they correspond substantially to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative, in that modules illustrated as separate modules may or may not be separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Accordingly, in accordance with one or more embodiments of the present disclosure, there is provided a system, characterized in that the system comprises:
a server as provided in accordance with one or more embodiments of the present disclosure; and
such as a terminal provided in accordance with one or more embodiments of the present disclosure.
Accordingly, in accordance with one or more embodiments of the present disclosure, there is provided an electronic device including:
at least one memory and at least one processor;
wherein the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method for presenting the search result provided by one or more embodiments of the disclosure.
Accordingly, in accordance with one or more embodiments of the present disclosure, a non-transitory computer storage medium is provided, storing program code for performing a method of search result presentation provided in accordance with one or more embodiments of the present disclosure.
Fig. 9 shows a schematic structural diagram of an electronic device 800 (e.g., a terminal or a server as shown in fig. 5) for implementing an embodiment of the disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), and the like, and fixed terminals such as a digital TV, a desktop computer, and the like. The terminal device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 9, the electronic device 800 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. For example, the storage 808 may store a first database and a second database, wherein the first database stores at least one first sub-program identifier of a first program; the second database stores at least one second sub-program identification of the first program. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 9 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for executing an apparatus illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the apparatus of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a search request containing a query word sent by a terminal, and acquiring at least one search item according to the query word; determining whether the query word is a target word; if so, selecting a target comment from comments contained in the search item; generating a comment result according to the attribute information of the target comment and the search item from which the target comment comes; generating a search result list, wherein the search result list comprises comment results and search items; and sending the search result list to the terminal.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a search request containing a query word sent by a terminal, and acquiring at least one search item according to the query word; determining whether the query word is a target word; if so, selecting a target comment from comments contained in the search item; generating a comment result according to the attribute information of the target comment and the search item from which the target comment comes; generating a search result list, wherein the search result list comprises comment results and search items; and sending the search result list to the terminal.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, apparatuses, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Here, the name of the unit does not constitute a limitation of the unit itself in some cases, and for example, the instruction unit may be described as "a unit for receiving a first operation instruction".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, a method for presenting search results is provided, the method including: receiving a search request containing a query word sent by a terminal, and acquiring at least one search item according to the query word; determining whether the query word is a target word; if so, selecting a target comment from comments contained in the search item; generating a comment result according to the attribute information of the target comment and the search item from which the target comment comes; generating a search result list, wherein the search result list comprises comment results and search items; and sending the search result list to the terminal.
In accordance with one or more embodiments of the present disclosure, the at least one search term comprises more than two subsets of search terms; selecting a target comment from comments contained in the search item, wherein the target comment specifically comprises the following steps: selecting a target comment from comments contained in the search item subset; generating a search result list comprising: the review results and the search terms included in the subset of search terms from which the review results came are ranked together.
In accordance with one or more embodiments of the present disclosure, a method further comprises: acquiring associated information of a search item, wherein the associated information comprises a domain name and/or content information and/or content publisher information; a subset of search terms is determined based on the associated information.
According to one or more embodiments of the present disclosure, a comment result is generated according to attribute information of a target comment and a search item from which the target comment comes, specifically: and generating a comment result based on a preset format according to the content of the target comment, the user information and the search item from which the target comment comes.
According to one or more embodiments of the present disclosure, determining whether a query word is a target word includes: performing word segmentation processing on the query word to obtain text word segmentation; calculating the hot spot similarity of text word segmentation according to a preset hot spot database; and determining whether the query word is the target word according to the hot spot similarity.
According to one or more embodiments of the present disclosure, a target comment is selected from comments included in a search item, specifically: selecting a target comment from the comments contained in the search term based on at least one of the following filtering factors: the number of words of the comment, the number of praise of the comment, the number of forwarding of the comment, the user information of the comment issued, and the number of comments for the comment itself.
According to one or more embodiments of the present disclosure, a method for presenting search results is provided, the method including: receiving a query word input by a user; sending a search request containing the query word to a server so that the server generates a search result list according to the query word, wherein the search result list comprises comment results and search items which are arranged together; and receiving and displaying a search result list returned by the server.
According to one or more embodiments of the present disclosure, there is provided a server including: the device comprises a request receiving unit, a searching unit and a searching unit, wherein the request receiving unit is used for receiving a searching request which contains a query word and is sent by a terminal; the recall unit is used for acquiring at least one search item according to the query word; a target determination unit for determining whether the query word is a target word; the comment selecting unit is used for selecting a target comment from comments contained in the search item if the query word is the target word; the comment result unit is used for generating a comment result according to the attribute information of the target comment and the search item from which the target comment comes; a search result list unit for generating a search result list including the comment result and the search item; and a result transmitting unit for transmitting the search result list to the terminal.
According to one or more embodiments of the present disclosure, there is provided a terminal including: the query term receiving unit is used for receiving the query terms input by the user; the device comprises a request sending unit, a search unit and a search unit, wherein the request sending unit is used for sending a search request containing a query word to a server so as to enable the server to generate a search result list according to the query word, and the search result list comprises comment results and search items which are arranged together; and the display unit is used for receiving and displaying the search result list returned by the server.
In accordance with one or more embodiments of the present disclosure, there is provided a system comprising: a server provided according to one or more embodiments of the present disclosure; and a terminal provided according to one or more embodiments of the present disclosure.
According to one or more embodiments of the present disclosure, there is provided an electronic apparatus including: at least one memory and at least one processor; wherein the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method for presenting the search result provided by one or more embodiments of the disclosure.
According to one or more embodiments of the present disclosure, a non-transitory computer storage medium is provided, which stores program code for performing a method of search result presentation provided according to one or more embodiments of the present disclosure.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or logical acts of devices, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method for search result presentation, the method comprising:
receiving a search request containing a query word sent by a terminal, acquiring at least one search item according to the query word, and when the number of the search items is multiple, the multiple search items come from more than two search item subsets;
determining whether the query word is a target word;
if yes, selecting a target comment from comments contained in the search item, wherein the target comment comprises: selecting a target comment from comments contained in each search item in the search item subset;
generating a comment result according to the attribute information of the target comment and the search item from which the target comment comes;
generating a search result list, the search result list including the review results and the search terms; the generating a search result list comprises: arranging the comment results and the search terms included in the search term subset from which the comment results come together; wherein the review results and the search terms in the search result list are sequentially arranged together based on at least one of: clicking number, praise number, forwarding number, comment number, release time and release user information;
sending the search result list to the terminal;
wherein the subset of search terms is determined based on:
acquiring associated information of the search item, wherein the associated information comprises a domain name and/or content information and/or content publisher information;
determining the subset of search terms based on the associated information.
2. The method for displaying search results according to claim 1, wherein the comment result is generated according to the attribute information of the target comment and the search item from which the target comment comes, specifically:
and generating the comment result based on a preset format according to the content of the target comment, the user information and the search item from which the target comment comes.
3. The method of search result presentation of claim 1, wherein said determining whether the query term is a target term comprises:
performing word segmentation processing on the query word to obtain text word segmentation;
calculating the hot spot similarity of the text word segmentation according to a preset hot spot database;
and determining whether the query word is a target word according to the hot spot similarity.
4. The method for presenting search results according to claim 1, wherein the selecting of the target comment from the comments included in the search term includes:
selecting a target comment from the comments contained in the search term based on at least one of the following filtering factors: the number of words of the comment, the number of praise of the comment, the number of forwarding of the comment, the user information of the comment issued, and the number of comments for the comment itself.
5. A method for search result presentation, the method comprising:
receiving a query word input by a user;
sending a search request containing the query word to a server so that the server generates a search result list according to the query word, wherein the search result list comprises comment results and search items which are arranged together; the review results and the search terms are from the same subset of search terms; and
receiving and displaying the search result list returned by the server;
wherein the review results and the search terms in the search result list are sequentially arranged together based on at least one of: number of clicks, number of praise, number of forwards, number of comments, time of release, user information of release.
6. A server, characterized in that the server comprises:
the device comprises a request receiving unit, a searching unit and a searching unit, wherein the request receiving unit is used for receiving a searching request which contains a query word and is sent by a terminal;
the recall unit is used for acquiring at least one search item according to the query word, and when the number of the search items is multiple, the multiple search items come from more than two search item subsets;
the target determining unit is used for determining whether the query word is a target word;
the comment selecting unit is used for selecting a target comment from comments contained in the search item if the query word is the target word;
the comment result unit is used for generating a comment result according to the attribute information of the target comment and the search item from which the target comment comes;
a search result list unit for generating a search result list including the comment result and the search item;
a result transmitting unit, configured to transmit the search result list to the terminal;
the search item subset determining unit is used for acquiring the associated information of the search item, wherein the associated information comprises a domain name and/or content information and/or publisher information; determining a subset of search terms according to the associated information;
the comment selecting unit is further used for selecting a target comment from comments contained in each search item in the search item subset; the search result list unit is further used for arranging the comment result and the search items included in the search item subset from which the comment result comes together; wherein the review results and the search terms in the search result list are sequentially arranged together based on at least one of: number of clicks, number of praise, number of forwards, number of comments, time of release, user information of release.
7. A terminal, characterized in that the terminal comprises:
the query term receiving unit is used for receiving the query terms input by the user;
the request sending unit is used for sending a search request containing the query word to a server so as to enable the server to generate a search result list according to the query word, and the search result list comprises comment results and search items which are arranged together; the review results and the search terms are from the same subset of search terms; and
the display unit is used for receiving and displaying the search result list returned by the server;
wherein the review results and the search terms in the search result list are sequentially arranged together based on at least one of: number of clicks, number of praise, number of forwards, number of comments, time of release, user information of release.
8. A system, characterized in that the system comprises:
the server of claim 6; and
the terminal of claim 7.
9. An electronic device, characterized in that the electronic device comprises:
at least one memory and at least one processor;
wherein the memory is configured to store program code and the processor is configured to call the program code stored in the memory to perform the method of any of claims 1 to 5.
10. A non-transitory computer storage medium having stored thereon program code for executing the method of any one of claims 1 to 5.
CN202010099180.9A 2020-02-18 2020-02-18 Method, terminal, server and system for displaying search result Active CN111339452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010099180.9A CN111339452B (en) 2020-02-18 2020-02-18 Method, terminal, server and system for displaying search result

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010099180.9A CN111339452B (en) 2020-02-18 2020-02-18 Method, terminal, server and system for displaying search result

Publications (2)

Publication Number Publication Date
CN111339452A CN111339452A (en) 2020-06-26
CN111339452B true CN111339452B (en) 2021-07-20

Family

ID=71183490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010099180.9A Active CN111339452B (en) 2020-02-18 2020-02-18 Method, terminal, server and system for displaying search result

Country Status (1)

Country Link
CN (1) CN111339452B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113392308A (en) * 2021-06-22 2021-09-14 北京字节跳动网络技术有限公司 Content search method, device, equipment and medium
CN113515663A (en) * 2021-08-03 2021-10-19 广州酷狗计算机科技有限公司 Comment information display method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202146A (en) * 2012-07-16 2016-12-07 刘二中 A kind of search engine terminal use inputs the processing method of reference paper Search Hints information

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006276903A (en) * 2005-03-25 2006-10-12 Fuji Xerox Co Ltd Document processing device
CN103823808A (en) * 2012-11-16 2014-05-28 云壤(北京)信息技术有限公司 System and method for searching web page by using microblog short link
CN104281619A (en) * 2013-07-11 2015-01-14 鸿富锦精密工业(深圳)有限公司 System and method for ordering search results
CN105095389A (en) * 2015-06-30 2015-11-25 北京奇虎科技有限公司 Method and device for displaying search result
CN105354227B (en) * 2015-09-30 2019-06-14 北京奇虎科技有限公司 The method and device of offer high quality reviews information based on search

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202146A (en) * 2012-07-16 2016-12-07 刘二中 A kind of search engine terminal use inputs the processing method of reference paper Search Hints information

Also Published As

Publication number Publication date
CN111339452A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN107679211B (en) Method and device for pushing information
US8661041B2 (en) Apparatus and method for semantic-based search and semantic metadata providing server and method of operating the same
US8341185B2 (en) Method and apparatus for context-indexed network resources
US9363634B1 (en) Providing context-relevant information to users
CN111414498A (en) Multimedia information recommendation method and device and electronic equipment
US9703779B2 (en) Method of and system for enhanced local-device content discovery
CN111368185B (en) Data display method and device, storage medium and electronic equipment
CN110619063A (en) Video pushing method and device based on video searching and electronic equipment
CN112287206A (en) Information processing method and device and electronic equipment
CN111339452B (en) Method, terminal, server and system for displaying search result
CN112183045A (en) Online document processing method and device and electronic equipment
US20150074599A1 (en) Mobile video channel-based gestural user interface
CN113609308B (en) Knowledge graph construction method and device, storage medium and electronic equipment
US20140222865A1 (en) Method, System and Program for Interactive Information Services
CN111723309A (en) Method and device for searching web page
CN111260445A (en) House resource information display method, device, terminal and storage medium
CN112084441A (en) Information retrieval method and device and electronic equipment
CN113221572B (en) Information processing method, device, equipment and medium
CN111783440B (en) Intention recognition method and device, readable medium and electronic equipment
CN111460769B (en) Article issuing method and device, storage medium and electronic equipment
CN111382365B (en) Method and device for outputting information
CN114239501A (en) Contract generation method, apparatus, device and medium
US20150205870A1 (en) Method, system and program product for interactive information services
CN111597439A (en) Information processing method and device and electronic equipment
CN111310031B (en) House source information display method, device, terminal and storage medium

Legal Events

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