WO2016019925A1 - 搜索方法、服务器及客户端 - Google Patents

搜索方法、服务器及客户端 Download PDF

Info

Publication number
WO2016019925A1
WO2016019925A1 PCT/CN2015/091010 CN2015091010W WO2016019925A1 WO 2016019925 A1 WO2016019925 A1 WO 2016019925A1 CN 2015091010 W CN2015091010 W CN 2015091010W WO 2016019925 A1 WO2016019925 A1 WO 2016019925A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
category
social application
search
user
Prior art date
Application number
PCT/CN2015/091010
Other languages
English (en)
French (fr)
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
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2016019925A1 publication Critical patent/WO2016019925A1/zh
Priority to US15/208,387 priority Critical patent/US20170091335A1/en

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/9535Search customisation based on user profiles and personalisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • G06F16/24578Query processing with adaptation to user needs using ranking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • 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/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services

Definitions

  • the present invention relates to the field of information technology, and in particular, to a search method, a server, and a client.
  • the specific method for realizing the search is: searching for information related to a certain keyword input by the user, obtaining a plurality of information corresponding to the keyword, and searching for the information according to the relevance of each searched information and the keyword.
  • Each piece of information is sorted, information having a large relevance to the keyword is arranged first, and information having a small relevance to the keyword is arranged.
  • a search result related to the keyword is obtained for a certain keyword input by the user, and different users also need to further consult in the search result related to the keyword according to respective needs.
  • the above search method is not fast enough to implement, and it is not targeted and the flexibility is poor.
  • an embodiment of the present invention provides a search method, a server, and a client.
  • a search method is provided, the method being applied to information search in a social application, the method comprising: receiving a first-level search keyword and a user identifier sent by a social application client; searching for the first-level search key The word-related information is obtained by the search result including the at least one information; the social relationship information corresponding to the user identifier is obtained, and the information in the search result is sorted according to the social relationship information, and a search result sorting list is obtained; The search result sorting list is sent to the social application client.
  • a search method in another aspect, includes: acquiring a first-level search keyword input by a user and a user identifier of the user; and sending the first-level search keyword and the user identifier to a social application Service And receiving, by the social application server, a search result ranking list, where the search result ranking list is that the social application server performs information corresponding to the first-level search keyword according to the social relationship information corresponding to the user identifier. a sorted list of search results obtained after sorting; displaying a sorted list of search results sent by the social application server.
  • a social application server configured to apply to an information search in a social application
  • the social application server includes: a first receiving module, configured to receive a first-level search sent by the social application client a keyword and a user identifier; a first search module, configured to search for information related to the first-level search keyword, to obtain a search result including at least one information; and an obtaining module, configured to acquire social relationship information corresponding to the user identifier; a first sorting module, configured to sort the information in the search result according to the social relationship information, to obtain a sorted list of search results; and the first sending module is configured to send the sorted list of the search results to the social application Client.
  • the embodiment of the present invention further provides a social application client, where the social application client is applied to the information search in the social application, and the social application client includes: a first acquiring module, configured to acquire a level of user input Searching for a keyword and a user identifier of the user; a first sending module, configured to send the first-level search keyword and the user identifier to a social application server; and a first receiving module, configured to receive the social application server a sorted list of search results that are sent, the sorted list of search results is a sorted list of search results obtained by the social application server sorting the information corresponding to the first-level search keywords according to the social relationship information corresponding to the user identifier;
  • the first display module is configured to display a sorted list of search results sent by the social application server.
  • FIG. 1 is a schematic diagram of an implementation environment involved in a search method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a search method according to another embodiment of the present invention.
  • FIG. 3 is a flowchart of a search method according to another embodiment of the present invention.
  • FIG. 4 is a schematic diagram of search interaction provided by another embodiment of the present invention.
  • FIG. 5 is a flowchart of a search method according to another embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an interface of an input keyword according to another embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a display interface according to another embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a display interface according to another embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a display interface according to another embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a social application server according to another embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a first sorting module according to another embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a second sorting unit according to another embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a social application server according to another embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of a social application server according to another embodiment of the present invention.
  • FIG. 15 is a schematic structural diagram of a social application client according to another embodiment of the present invention.
  • FIG. 16 is a schematic structural diagram of a first display module according to another embodiment of the present invention.
  • FIG. 17 is a schematic structural diagram of a social application client according to another embodiment of the present invention.
  • FIG. 18 is a schematic structural diagram of a social application client according to another embodiment of the present invention.
  • FIG. 19 is a schematic structural diagram of a terminal according to another embodiment of the present invention.
  • FIG. 20 is a schematic structural diagram of a search system according to another embodiment of the present invention.
  • an application is software, firmware, or a combination of software and hardware for implementing a particular function.
  • a social application refers to a user who uses a mobile terminal such as a mobile phone or a tablet as a carrier to implement a social function based on online identification of users and exchange of information technologies.
  • the social relationship information corresponding to an identifier in the social application is used to mean that the identifier corresponds to the archive information registered by the user in the social application, and the user identifier corresponds to the behavior performed by the user in the social application, The user associated with the user identity corresponding user in the social application, the behavior of the associated user in the social application, and any combination thereof.
  • the social relationship information includes, but is not limited to, social behavior information of the user and social behavior information of other users related to the user.
  • the social relationship information corresponding to the user identifier may be the group and location information of the user, such as the school that the user is attending, the user is often at the location, or may be the historical behavior of the user, such as the user has been concerned about
  • the hotspot information and the like may also be information of other users associated with the user, such as the friend information frequently contacted by the user, the article shared by the user's friend, written by the user's friend.
  • the content of the social relationship information corresponding to the identifier is not specifically limited in the embodiment of the present invention.
  • FIG. 1 is a schematic diagram showing an implementation environment involved in a search method provided by an embodiment of the present invention.
  • the implementation environment includes a social application server 101 and a social application client 102.
  • the social application server 101 and the social application client 102 are connected through a wireless network or a wired network.
  • the embodiment of the present invention provides a search method.
  • the search method process provided by this embodiment includes:
  • another embodiment of the present invention provides a search method.
  • the search method process provided by this embodiment includes:
  • the search method process provided by this embodiment includes:
  • the social application client obtains the first-level search keyword input by the user and the user identifier of the user, and sends the first-level search keyword and the user identifier to the social application server.
  • the content and length of the primary search keyword input by the user are not specifically limited in the embodiment of the present invention.
  • the method for the social application client to obtain the first-level search keyword input by the user includes, but is not limited to, receiving the information keyword through the search interface of the client of the various social tools, and the embodiment of the present invention acquires the first-level search keyword input by the user. The method is not specifically limited.
  • the search interface of the client of the social tool may be displayed in the user visual interface in the form of a search box.
  • the interface diagram of the input keyword shown in FIG. 6 is taken as an example.
  • the search button needs to be clicked, and the virtual keyboard is simultaneously displayed on the interface for the user to input, and at the same time on the interface.
  • a layer of mask is displayed at a location other than the virtual keyboard and the search button to temporarily cover content other than the virtual keyboard and search button.
  • the mask displayed simultaneously on the interface can adopt any display effect including the frosted glass effect.
  • the user identifier of the user may be an IP (Internet Protocol) address of the user, a nickname and an identity of the user on the social tool, and the content of the user identifier is not specifically limited in the embodiment of the present invention.
  • IP Internet Protocol
  • the method for the social application client to obtain the user identifier may include, but is not limited to, the social application client automatically detects the user identifier of the user according to a preset acquisition procedure when the user logs in to the social application through the terminal.
  • the manner in which the social application client sends the first-level search keyword and the user identifier to the social application server includes, but is not limited to, when the social application client detects that the first-level search keyword input by the user reaches at least two characters.
  • the primary search keyword and the user identifier are sent to the social application server.
  • the first search keyword and the user ID are sent to the social application server after the input pause time reaches the preset time, in order to confirm that the user's input operation ends.
  • the embodiment does not specifically limit this.
  • the setting may be performed according to specific conditions.
  • the search interface and the virtual keyboard are temporarily displayed on the display interface of the social application client.
  • the finger needs to be used. Swipe left on the interface to implement the return operation.
  • the virtual keyboard is hidden, and the search box is still located on the display interface of the social application client.
  • the method for sending the first-level search keyword and the user identifier to the social application server is not limited in this embodiment.
  • the social application client may include, but is not limited to, a wired or wireless connection between the social application client and the social application server.
  • the first-level search keyword and the user identifier are packaged into data packets and sent to the social application server by wire or wirelessly.
  • the social application server receives the first-level search keyword and the user identifier sent by the social application client.
  • the manner in which the social application server receives the first-level search keyword and the user identifier sent by the social application client is not specifically limited in this embodiment. Since the social application client makes a wired or wireless connection with the social application server, the social application client obtains the first-level search keyword and the user identifier input by the user, and acquires After the complete first-level search keyword and the user identifier are sent to the social application server by wire or wirelessly, the social application server can receive the first-level search keyword and the user identifier by wire or wirelessly.
  • the social application server searches for information related to the primary search keyword sent by the social application client, and obtains a search result including at least one information.
  • the information related to the first-level search keyword may be any information that includes the first-level search keyword in the content, which is not specifically limited in the embodiment of the present invention.
  • it may be an account including a first-level search keyword in a social application, a public number, an article, and the like.
  • the method further includes: collecting The information resource extracts the index information of the information resource, and stores the index information of the information resource to generate an index information library, so that the information related to the primary search keyword can be searched from the index information database to obtain at least one information. Search results.
  • the collected information resources may be one or more information resources stored on the network or locally by the client, such as various types of web pages.
  • each webpage may have one or more hyperlinks that can be linked to other webpages.
  • the embodiment of the present invention does not limit the source, content, and quantity of the collected information resources.
  • the method for collecting the information resource specifically includes, but is not limited to, using a small number of existing webpages as the starting webpage, collecting the content of the starting webpage, and recording the hyperlink data on the starting webpage,
  • the hyperlink on the start page links to other pages; collects the content of other pages linked to it, determines whether other pages contain hyperlinks, records the hyperlink data on other pages, and links via hyperlinks on other pages Go to more pages, otherwise the visit ends; a new round of access and collection of more pages to get information related to the first-level search keywords.
  • collecting webpage content and hyperlink data includes, but is not limited to, adopting the following two collection strategies:
  • Acquisition strategy 1 depth priority strategy. First select a hyperlink on the start page, ignore the other hyperlinks on the start page, first reach the second page via the selected hyperlink on the start page, record the hyperlink data, and collect the second page. Content; select a hyperlink on the second page, ignore the other hyperlinks on the second page, first reach the third page via the selected hyperlink on the second page, record the hyperlink data, and Collect the content of the third webpage; continue to collect webpage content and hyperlink data according to the above method until there is no hyperlink on the currently collected webpage; when there is no hyperlink on the currently collected webpage, return to the current
  • the collected webpage corresponds to the previous webpage where the hyperlink is located, and determines whether the previous webpage contains the current one.
  • the hyperlink other than the hyperlink corresponding to the collected webpage is selected another hyperlink on the previous webpage, and continues the above collection operation, otherwise it continues to return to the previous webpage where the hyperlink corresponding to the previous webpage is located. Go up and continue the above judgment and acquisition operations.
  • the hyperlinks along the webpage are followed by the webpage B, the webpage C, the webpage D, and the webpage E.
  • the hyperlink data of A1, B1, C1, and D1 is preferentially recorded, and the webpage A, the webpage B, the webpage C, the webpage D, and the webpage E are preferentially collected. Since there is no hyperlink on the webpage E, that is, the A1 road link has already been completed, it is preferred to start recording and collecting from the deeper webpage D2 on the deepest webpage D on the A1 road link. And so on, each time from the current deepest web page to the deeper web pages to start recording and collection.
  • Collection strategy 2 Width priority strategy.
  • the starting page is the first layer of the webpage, and the webpage corresponding to the hyperlink on the starting webpage is the second layer webpage, and the webpage corresponding to the hyperlink on the second layer webpage is the third layer webpage, and so on.
  • First collect the content of the first layer webpage record the data of each hyperlink on the first layer webpage, reach each corresponding second layer webpage via each hyperlink, and collect the content of all the second layer webpage; record each The data of each hyperlink on a second layer webpage reaches each corresponding third layer webpage via each hyperlink, and collects the content of all the third layer webpages; and so on, continues to collect the fourth layer webpage and The content of the deeper webpage is collected, and the content of each layer of webpage is collected, and the content of the next layer of webpage is collected.
  • the starting webpage is webpage A
  • webpage A has two hyperlinks, namely A1 and A2, wherein A1 corresponds to webpage B, A2 corresponds to webpage C, and webpage B and webpage C each have a hyperlink B1 and C1.
  • Hyperlink B1 corresponds to webpage D
  • hyperlink C1 corresponds to webpage E.
  • the page A is the first layer webpage
  • the webpage B and the webpage C are the second layer webpage
  • the webpage D and the webpage E are the third layer webpage.
  • the webpage A of the first layer is preferentially collected
  • the webpage B of the second layer and the webpage C are collected
  • the webpage D and the webpage E of the third layer are collected
  • the webpage content of the same layer is collected first.
  • the next level of webpage content is collected, and the hyperlink data corresponding to the webpage is recorded while the webpage is collected.
  • the method for extracting the information resource index information includes the word segmentation, the webpage check, the webpage keyword information, and the like.
  • the method for extracting the information resource index information is not specifically limited.
  • the word segmentation is mainly for the segmentation of Chinese web content. Since Chinese words are different from English, there is no space between the words as a separation mark. Therefore, it is necessary to segment the Chinese web content to change the names, place names, and words in the Chinese web content. The words are correctly separated according to the corresponding context, so that the results obtained after the separation are extracted by keywords to obtain index information related to the webpage.
  • the specific method of Chinese word segmentation may be to match the sentence to be segmented with the term in the previously established term library, the matching method includes matching according to the principle of minimum segmentation, so that the word segmented in each sentence The least amount.
  • the webpage is checked, that is, the other webpages with the same content of one webpage are deleted in the collected webpage.
  • Extracting webpage keyword information includes extracting related information such as frequency, location, font, font size, color, and the like, determining which words belong to keywords in the webpage, and extracting keywords in the webpage.
  • the method for segmentation, webpage checking, and extracting webpage keyword information is not specifically limited in the embodiment of the present invention.
  • the method for storing the index information of the information resource to generate the index information library includes, but is not limited to, generating the index information in the form of a table of the extracted web page keywords, and storing the generated index information to generate index information.
  • Library The index information database generated by storing the index information of the information resource includes index information of all the collected information resources, and the complete information resource corresponding to the index information can be found through the index information.
  • Searching the index information base to obtain the related information of the first-level keyword specifically includes: determining whether the index information in the index information database includes the first-level search keyword, or whether it is the same as the first-level search keyword, thereby obtaining the first-level search keyword Index information.
  • the first-level search keyword input by the user is “alumni association” as an example, and index information including “alumni association”, “** alumni association”, “alumni”, etc. will be obtained.
  • the complete information resource corresponding to the index information can be found according to the index information in the index information base, all the complete information resources corresponding to the primary search keyword can be found according to the index information including the primary search keyword, thereby Get search results that contain at least one piece of information.
  • the information in the search result obtained by the social application server may be an order of random arrangement, or may be an order of sorting according to a certain sorting rule.
  • the order of sorting according to a certain sorting rule may sort each information in the search result according to the degree of relevance to the first-level search keyword, thereby obtaining the sorted search result. For example, information with a high degree of relevance to a primary search keyword is ranked first, information with a low degree of relevance to a primary search keyword is ranked, information with a high degree of importance is ranked first, and information with a low degree of importance is arranged. .
  • collations are used to measure the relevance of different information in a piece of information related to a primary search keyword to a primary search keyword, thereby measuring the importance of different information.
  • the information as a webpage it may be based on the location, frequency, and content quality of the first-level search keyword in the webpage related to the first-level search keyword, and other webpages linked by the hyperlink on the webpage. Content quality, etc. to develop a sorting algorithm to sort web pages. Specifically, by assigning different weights to various factors affecting the importance of the webpage, and formulating a score calculation rule, the scores of various factors affecting the importance of the webpage in different webpages can be calculated, and the influence of each webpage is affected.
  • the score of various factors of the importance of the webpage is multiplied by the weight of the score, and a corresponding product result is obtained for each factor, and then all the product results are added to obtain the importance score of the corresponding webpage; the importance score is obtained.
  • High pages are ranked first, and pages with low importance scores are ranked behind, which results in page sorting results.
  • the content of the sorting rule is not specifically limited in the embodiment of the present invention.
  • the information in the search result may be sorted according to the order of the initials in the information, and the manner in which the information in the search result is sorted is not specifically limited in this embodiment.
  • the method provided by the embodiment further includes a subsequent processing step after the social application server obtains the search result including the at least one information.
  • the social application server obtains the social relationship information corresponding to the user identifier in the social application, and sorts the information in the obtained search result according to the obtained social relationship information to obtain a search result sorting list.
  • the manner in which the social application server obtains the social relationship information corresponding to the user in the social application includes, but is not limited to, acquiring all dynamic information related to the user and other users associated with the user according to the user identifier. Information, and all the dynamic information related to the user and the information of other users associated with the user as the acquired social relationship information.
  • the user A's social application account can obtain the article shared by the user A, the public number that the user A is interested in, the friend information of the user A, and the article shared by the friend.
  • the information in the search result is sorted according to the social relationship information, and the search result sorting list is obtained, including but not limited to the following steps:
  • Step 1 classify the information in the search result, and sort each category to obtain a main list of search results sorted by category;
  • the information in the search result is classified according to the search in the social application, and the information in the search result may be according to the contact of the user, the public number of the user, the chat record of the user, the chat group joined by the user, The user's collection, related articles, and other categories are classified.
  • the method for classification in the embodiment of the present invention is not specifically limited.
  • the sorting method of each category is not specifically limited.
  • the sorting method of each category is not specifically limited.
  • the sorting method of each category is not specifically limited.
  • Step 2 Sort the information in each category in the main list of search results according to the social relationship information, and obtain a sorted list of search results.
  • Sorting the information under each category in the main list of search results according to the obtained social relationship information including: weighting information under each category in the main list of search results according to the social relationship information, and obtaining a main list of search results The weighting value corresponding to each piece of information in each category in the category; the information under each category in the main list of search results is sorted according to the weighting value corresponding to each piece of information in each category in the main result list of the search result.
  • the information under each category in the search result main list is weighted according to the social relationship information, and the weight value corresponding to each information in each category in the search result main list is obtained, for the user's contact and the user.
  • the added chat group can be sorted according to the frequency of contact between the user and the contact and the chat group.
  • the contacts are frequently ranked first, and the contacts are arranged infrequently.
  • the public number for the user's attention can be sorted according to the time of interest of the user.
  • the attention is ranked first, and the previous attention is ranked later;
  • the chat records for the user can be sorted according to the time of the chat record, the latest chat records are ranked first, and the previous chat records are arranged later;
  • For the user's collection it can be sorted according to the content of the user's collection related content, the collection of related content is more ranked, the collection of related content is less arranged;
  • for the related articles the user has been collected and shared in the circle of friends.
  • the article is ranked first, the article published by the user's public number is followed, and the other articles are ranked first according to the article title containing the information keyword, and the article containing the information keyword is arranged.
  • the above factors affecting the ranking result may be given a certain weight, and according to a certain score calculation rule, the scores of various factors corresponding to different information may be calculated, and various factors affecting the ranking result in different information may be calculated.
  • the weight is multiplied by the score to obtain the corresponding product result, and then the product results corresponding to all the factors are added to obtain the importance score of each information.
  • Sorting information under each category in the main list of search results according to weighting values corresponding to each information in each category in the search result main list, including but not limited to: ranking information with high importance scores in front, The information with low importance scores is ranked behind to get a sorted list of search results.
  • the user searches for the keyword "** application”, and different users preferentially see the content differently, if the user is an Internet practitioner, when the user searches for "** application", because The articles about "**Apps” that their friends read, share, and collect are all about the latest developments in ** applications and the ** application and cooperation in the Internet industry, so the user will see them first. And an ordinary user search for "** application”, more likely to see “** application 10 big features you still don't know”, "** apply the first half of the lie” and other articles. Therefore, the behavior of the user's friends reading, sharing, and collecting articles affects the sorted list of search results obtained by the user. Taking the public number as an example, the user searches for the keyword "alumni association".
  • the **University Alumni Association will be displayed first. Users of different schools will search for the “Alumni Association” in the public number, and will be able to give priority to the public number of the alumni association of their school.
  • the method further includes: adding a corresponding category identifier to each of the classified categories in the search result sorting list, so that the social application server can The category identifier corresponding to each category distinguishes information of different categories in the search result sorting list.
  • the social application server sends the search result sorting list as a sorted list of search results to the social response Using the client;
  • the embodiment does not limit the manner in which the social application server sends the search result sorting list as the search result sorting list to the social application client.
  • the search result sorting list may be sent to the social application client by wire or wirelessly.
  • the social application client receives the sorted list of search results sent by the social application server, and displays a sorted list of search results sent by the social application server.
  • the sorted list of search results sent by the social application server is a sorted list of search results obtained by the social application server sorting the information corresponding to the first-level search keywords according to the social relationship information corresponding to the user identifier in the social application.
  • the social application client displays a sorted list of search results sent by the social application server, including but not limited to: displaying a sorted list of search results according to each category in the sorted list of search results.
  • the sorting list of search results is displayed according to each category in the search result sorting list, including but not limited to: displaying a preset number of information in each category in the sorted list of search results; hiding information exceeding a preset amount in each category And display the view entry under each category.
  • the embodiment of the present invention does not specifically limit the size of the preset number. For example, taking the display interface shown in FIG. 7 and the preset number of information under each category displayed on the display interface is 3 as an example, three pieces of information are displayed under the related article category in the search result sorting list, and More than 3 other pieces of information under the relevant article category are hidden.
  • the method further includes: detecting whether the view entry under each category is selected; and when detecting that the view entry under any category is selected, displaying the selected view entry corresponding to the category The remaining information is not displayed.
  • the manner of detecting whether the entry is selected is not specifically limited in this embodiment.
  • the method further includes: acquiring a secondary search keyword input by the user under the selected view entry corresponding category; and selecting the secondary search keyword and the selected view entry corresponding category
  • the category identifier is sent to the social application server; after receiving the information corresponding to the secondary search keyword under the category corresponding to the category identifier, the social application server sorts the information corresponding to the secondary search keyword according to the social relationship information. Result; displays the sort results sent by the social application server.
  • the method for obtaining the secondary search keyword input by the user in the corresponding category of the selected view entry may be the same as the method for obtaining the first-level search keyword, which is not specifically limited in this embodiment, and is not correct.
  • the manner in which the secondary search keyword and the category identifier of the selected view entry corresponding category are sent to the social application server is limited.
  • the method further includes: acquiring the category identifier and the second-level search keyword sent by the social application client; searching for the second-level search keyword corresponding to the category corresponding to the category identifier The information is sorted according to the social relationship information, and the obtained sort result is sent to the social application client.
  • the social application server may search for the information corresponding to the second-level search keyword under the category corresponding to the category identifier, or use other methods, which is not limited in this embodiment.
  • the social application server may sort the information corresponding to the second-level search keyword according to the social relationship information by using the social relationship information to sort the information corresponding to the first-level search keyword, or adopt another sorting manner. This is also not limited.
  • the social application client when the user inputs a secondary search keyword, the social application client inputs the secondary search keyword input by the user and The category identifier is sent to the social application server, and after the social application server sends the obtained sort result to the social application client, the social application client displays a sorted list of search results corresponding to the relevant article category.
  • the user when the user wants to return to the main list corresponding to the search result sorting under the selected category of the view entry, the user can use the finger to swipe left on the interface to implement the return operation. .
  • the refresh button is also set to be detected when the social application client detects When the user clicks the refresh button, it is equivalent to re-acquiring the original search keyword and sending it to the social application server.
  • the social application server re-searches according to the original operation, obtains the latest search result sorting list, and sends the same. Give the social application client.
  • an embodiment of the present invention provides a social application server 100, which is applied to an information search in a social application, and is used to perform any of the embodiments shown in FIG. 2 to FIG.
  • the search method is the function performed by the social application server.
  • the social application server 100 includes:
  • the first receiving module 1001 is configured to receive a primary search keyword and a user identifier sent by the social application client.
  • the first search module 1002 is configured to search for information related to the primary search keyword to obtain a search result including at least one information
  • the obtaining module 1003 is configured to obtain social relationship information corresponding to the user identifier in the social application.
  • a first sorting module 1004 configured to sort information in the search result according to the social relationship information, to obtain a sorted list of search results
  • the first sending module 1005 is configured to send the search result sorting list to the social application client.
  • the first sorting module 1004 specifically includes:
  • a classification unit 10041 configured to classify information in the search result
  • a first sorting unit 10042 configured to sort each category to obtain a main list of search results sorted by category
  • the second sorting unit 10043 is configured to sort the information under each category in the search result main list according to the social relationship information to obtain a search result sorting list.
  • the second sorting unit 10043 specifically includes:
  • the weighting subunit 100431 is configured to weight the information under each category in the search result main list according to the social relationship information, and obtain a weighting value corresponding to each information in each category in the search result main list;
  • the sorting sub-unit 100432 is configured to sort the information under each category in the search result main list according to the weighting value corresponding to each piece of information under each category in the search result main list.
  • the search result sorting list obtained by the first sorting module 1004 specifically includes a category identifier corresponding to each category.
  • the social application server 100 further includes:
  • the second receiving module 1006 is configured to receive a category identifier and a secondary search keyword sent by the social application client.
  • the second search module 1007 is configured to search for information corresponding to the secondary search keyword under the category corresponding to the category identifier;
  • a second sorting module 1008 configured to sort information corresponding to the secondary search keyword according to the social relationship information
  • the second sending module 1009 is configured to send the obtained sorting result to the social application client.
  • FIG. 14 is a social application server according to an exemplary embodiment.
  • server 1400 includes a processing component 1422 that further includes one or more processors and is represented by memory 1432 A memory resource for storing instructions executable by the processing component 1422, such as an application.
  • the application stored in the memory 1432 may include one or more modules each corresponding to a set of instructions.
  • the processing component 1422 is configured to execute instructions to perform the functions performed by the social application server in the search method provided by any of the embodiments illustrated in Figures 2 and 5 above.
  • Server 1400 can also include a power component 1426 configured to perform power management of server 1400, a wired or wireless network interface 1450 configured to connect server 1400 to the network, and an input/output (I/O) interface 1458.
  • Server 1400 can operate based on an operating system stored in memory 1432, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
  • one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
  • Searching for information related to the primary search keyword to obtain search results including at least one information
  • the memory of the server further includes an instruction for performing the following operations:
  • the server's memory further includes instructions for performing the following operations:
  • the information under each category in the search result main list is sorted according to the weighting value corresponding to each piece of information under each category in the search result main list.
  • the memory of the server further includes an instruction for performing the following operations:
  • the search result sorting list also includes the category identifier corresponding to each category
  • the information corresponding to the secondary search keyword is sorted according to the social relationship information, and the obtained sort result is sent to the social application client.
  • FIG. 15 another embodiment of the present invention provides a social application client 150 that is applied to information search in a social application, and the social application client 150 is configured to execute the foregoing FIG. 2 to FIG. 5 .
  • the social application client 150 includes:
  • the first obtaining module 1501 is configured to acquire a first-level search keyword input by the user and a user identifier of the user;
  • the first sending module 1502 is configured to send the primary search keyword and the user identifier to the social application server;
  • the first receiving module 1503 is configured to receive a search result sorting list sent by the social application server, where the search result sorting list is corresponding to the first-level search keyword corresponding to the social relationship information of the social application server in the social application according to the user identifier. a sorted list of search results obtained after sorting the information;
  • the first display module 1504 is configured to display a sorted list of search results sent by the social application server.
  • the first sending module 1502 is specifically configured to: when the first-level search keyword input by the user reaches at least two characters and the input pause time reaches a preset time, send the first-level search keyword and the user identifier to the social application server. .
  • the first display module 1504 is specifically configured to display a search result sorting list according to each category in the search result sorting list.
  • the first display module 1504 specifically includes:
  • a first display unit 15041 configured to display a preset number of information in each category in the search result sorting list
  • a hiding unit 15042 configured to hide information exceeding a preset amount in each category
  • the second display unit 15043 is configured to display a viewing portal under each category.
  • the social application client 150 further includes:
  • the detecting module 1505 is configured to detect whether the viewing entry under each category is selected
  • the second display module 1506 is configured to: when it is detected that the view entry under any category is selected, the display is selected The view entry in the corresponding entry does not display the remaining information under the category.
  • the social application client 150 further includes:
  • the second obtaining module 1507 is configured to acquire a secondary search keyword input by the user under the selected category of the view entry;
  • the second sending module 1508 is configured to send the secondary search keyword and the category identifier of the selected view entry corresponding category to the social application server;
  • the second receiving module 1509 is configured to receive, after the social application server searches for information corresponding to the secondary search keyword under the category corresponding to the category identifier, and sort the information corresponding to the secondary search keyword according to the social relationship information. ;
  • the second display module 1510 is configured to display the sorting result sent by the social application server.
  • the present embodiment provides a terminal, which can be used to perform the functions performed by the social application client in the search method provided in any of the foregoing embodiments shown in FIG. 2 to FIG.
  • the terminal 1900 includes:
  • the terminal 1900 may include an RF (Radio Frequency) circuit 210, a memory 220 including one or more computer readable storage media, an input unit 230, a display unit 240, a sensor 250, an audio circuit 260, and a WiFi (Wireless Fidelity, wireless).
  • the fidelity module 270 includes a processor 280 having one or more processing cores, and a power supply 290 and the like. It will be understood by those skilled in the art that the terminal structure shown in FIG. 19 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
  • the RF circuit 210 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, receiving downlink information of the base station, and then processing it by one or more processors 280; and transmitting data related to the uplink to the base station.
  • the RF circuit 210 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc.
  • SIM Subscriber Identity Module
  • RF circuitry 210 can also communicate with the network and other devices via wireless communication.
  • Wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access) Divisional Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • e-mail Short Messaging Service
  • the memory 220 can be used to store software programs and modules, and the processor 280 executes various functional applications and data processing by running software programs and modules stored in the memory 220.
  • the memory 220 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the terminal 1900 (such as audio data, phone book, etc.) and the like.
  • memory 220 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 220 may also include a memory controller to provide access to memory 220 by processor 280 and input unit 230.
  • the input unit 230 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 230 can include touch-sensitive surface 231 as well as other input devices 232.
  • a touch-sensitive surface 231, also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any suitable object or accessory on the touch-sensitive surface 231 or The operation near the touch-sensitive surface 231) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 231 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 280 is provided and can receive commands from the processor 280 and execute them.
  • the touch-sensitive surface 231 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 230 can also include other input devices 232.
  • other input devices 232 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • Display unit 240 can be used to display information entered by the user or information provided to the user and various graphical user interfaces of terminal 1900, which can be constructed from graphics, text, icons, video, and any combination thereof.
  • the display unit 240 may include a display panel 241.
  • the display panel 241 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 231 can cover the display panel 241, and when the touch-sensitive surface 231 detects a touch operation thereon or nearby, it is transmitted to the processor 280 to determine the type of the touch event, and then the processor 280 according to the touch event The type provides a corresponding visual output on display panel 241.
  • the touch-sensitive surface 231 and the display panel 241 function as two separate components to implement input and input functions, but in some cases In an embodiment, the touch-sensitive surface 231 can be integrated with the display panel 241 to implement input and output functions.
  • Terminal 1900 can also include at least one type of sensor 250, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 241 according to the brightness of the ambient light, and the proximity sensor may close the display panel 241 when the terminal 1900 moves to the ear. / or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal 1900 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here Let me repeat.
  • Audio circuit 260, speaker 261, and microphone 262 can provide an audio interface between the user and terminal 1900.
  • the audio circuit 260 can transmit the converted electrical data of the received audio data to the speaker 261, and convert it into a sound signal output by the speaker 261.
  • the microphone 262 converts the collected sound signal into an electrical signal, and the audio circuit 260 After receiving, it is converted into audio data, and then processed by the audio data output processor 280, transmitted to the terminal, for example, via the RF circuit 210, or outputted to the memory 220 for further processing.
  • the audio circuit 260 may also include an earbud jack to provide communication of the peripheral earphones with the terminal 1900.
  • WiFi is a short-range wireless transmission technology
  • the terminal 1900 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 270, which provides wireless broadband Internet access for users.
  • FIG. 19 shows the WiFi module 270, it can be understood that it does not belong to the essential configuration of the terminal 1900, and may be omitted as needed within the scope of not changing the essence of the invention.
  • Processor 280 is the control center of terminal 1900 that connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in memory 220, and recalling data stored in memory 220, The various functions and processing data of the terminal 1900 are performed to perform overall monitoring of the mobile phone.
  • the processor 280 may include one or more processing cores; preferably, the processor 280 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 280.
  • the terminal 1900 also includes a power source 290 (such as a battery) for powering various components.
  • a power source 290 such as a battery
  • the power source can be logically coupled to the processor 280 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • Power supply 290 may also include one or more DC or AC power sources, recharging Any component such as system, power failure detection circuit, power converter or inverter, power status indicator.
  • the terminal 1900 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
  • the display unit of the terminal is a touch screen display
  • the terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be processed by one or more Execution.
  • One or more programs contain instructions for performing the following operations:
  • search result ranking list is a search result obtained by the social application server sorting the information corresponding to the first-level search keyword according to the social relationship information corresponding to the user identifier in the social application.
  • the memory of the server further includes an instruction for performing the following operations:
  • the first-level search keyword input by the user reaches at least two characters and the input pause time reaches the preset time
  • the first-level search keyword and the user identifier are sent to the social application server.
  • the server's memory further includes instructions for performing the following operations:
  • the server's memory further includes instructions for performing the following operations:
  • the memory of the server further includes an instruction for performing the following operations:
  • the memory of the server further includes an instruction for performing the following operations:
  • the embodiment of the present invention provides a computer readable storage medium, which may be a computer readable storage medium included in the memory in the above embodiment, or may exist separately and not assembled into the terminal.
  • Computer readable storage medium stores one or more programs that are used by one or more processors to perform a search method, the method comprising:
  • search result ranking list is a search result obtained by the social application server sorting the information corresponding to the first-level search keyword according to the social relationship information corresponding to the user identifier in the social application.
  • the memory of the server further includes an instruction for performing the following operations:
  • the first-level search keyword input by the user reaches at least two characters and the input pause time reaches the preset time
  • the first-level search keyword and the user identifier are sent to the social application server.
  • the server's memory further includes instructions for performing the following operations:
  • the server's memory further includes instructions for performing the following operations:
  • the server also contains instructions for doing the following:
  • the memory of the server further includes an instruction for performing the following operations:
  • a graphical user interface is provided in an embodiment of the present invention, the graphical user interface being used on a terminal, the terminal comprising a touch screen display, a memory, and one or more processors for executing one or more programs; the graphic The user interface is used to:
  • search result ranking list is a search result obtained by the social application server sorting the information corresponding to the first-level search keyword according to the social relationship information corresponding to the user identifier in the social application.
  • another embodiment of the present invention provides a search system, which includes a social application server 2001 and a terminal 2002;
  • the social application server 2001 is the social application server provided by the foregoing embodiments. For details, refer to the content of the foregoing embodiments, and details are not described herein again.
  • the social application client provided by the foregoing embodiment is installed on the terminal 2002.
  • the search method provided by the foregoing embodiments of the present invention may send, by the terminal, the acquired first-level search keyword input by the user and the user identifier of the user to the social application server, and receive the social application server according to the user. Identifying a sorted list of search results obtained by sorting information corresponding to the first-level search keywords by the corresponding social relationship information in the social application, and implementing searching according to the social relationship information of the user, so that the search result sorting list is more targeted sexuality and flexibility, not only get a more optimized list of search results, but also improve the efficiency of users to obtain relevant information, improve search efficiency.
  • the social application server and the social application client provided by the foregoing embodiments are only illustrated by the division of the foregoing functional modules when implementing the search. In actual applications, the functions may be assigned differently according to needs.
  • the function module is completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the social application server, the social application client, and the search method embodiment are provided in the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

本发明公开了一种搜索方法、服务器及客户端,属于信息技术领域。方法包括:接收社交应用客户端发送的一级搜索关键字及用户标识;搜索一级搜索关键字相关的信息,得到包括至少一个信息的搜索结果;获取用户标识对应的社交关系信息,并根据社交关系信息对搜索结果中的信息进行排序,得到搜索结果排序列表;将搜索结果排序列表发送给社交应用客户端。本发明通过根据社交关系信息对搜索结果中的信息进行排序,得到搜索结果排序列表,实现了根据用户的社交关系信息进行搜索,使得搜索结果排序列表更具针对性,且灵活性较高,不仅得到了更优化的搜索结果排序列表,同时还可提高用户获取相关信息的效率,提高了搜索效率。

Description

搜索方法、服务器及客户端
本申请要求于2014年8月8日提交中国专利局、申请号为201410391655.6、发明名称为“搜索方法、服务器及客户端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及信息技术领域,特别涉及一种搜索方法、服务器及客户端。
背景技术
随着信息技术的发展和普及,多样化的信息资源充斥了整个互联网。为了从不计其数的信息资源中找到需要的信息,用户可以通过关键字搜索的方式寻找与该关键字相关的信息。然而由于每个信息的重要程度不一,且用户对信息的判别能力有限,因此,提供一种快捷的搜索方式,是方便用户查阅的关键。
目前实现搜索的具体方法为:搜索与用户输入的某个关键字相关的信息,得到与该关键字对应的多个信息后,根据搜索到的各个信息与关键字的关联性,对搜索到的各个信息进行排序,与该关键字关联性大的信息排列在前,与该关键字关联性小的信息排列在后。
在该实现搜索的过程中,针对用户输入的某个关键字获取到与该关键字相关的搜索结果,不同用户还需根据各自的需求在与该关键字相关的搜索结果中进行进一步的查阅,才能得到需要的信息,因而上述搜索的方式在实现上不够快捷,且不具针对性,灵活性也较差。
发明内容
鉴于此,本发明实施例提供了一种搜索方法、服务器及客户端。
一方面,提供了一种搜索方法,所述方法应用于社交应用中的信息搜索,所述方法包括:接收社交应用客户端发送的一级搜索关键字及用户标识;搜索所述一级搜索关键字相关的信息,得到包括至少一个信息的搜索结果;获取所述用户标识对应的社交关系信息,并根据所述社交关系信息对所述搜索结果中的信息进行排序,得到搜索结果排序列表;将所述搜索结果排序列表发送给所述社交应用客户端。
另一方面,提供了一种搜索方法,所述方法包括:获取用户输入的一级搜索关键字及所述用户的用户标识;将所述一级搜索关键字及所述用户标识发送给社交应用服 务器;接收所述社交应用服务器发送的搜索结果排序列表,所述搜索结果排序列表为所述社交应用服务器根据所述用户标识对应的社交关系信息对所述一级搜索关键字对应的信息进行排序后得到的搜索结果排序列表;显示所述社交应用服务器发送的搜索结果排序列表。
另一方面,提供了一种社交应用服务器,所述社交应用服务器应用于社交应用中的信息搜索,所述社交应用服务器包括:第一接收模块,用于接收社交应用客户端发送的一级搜索关键字及用户标识;第一搜索模块,用于搜索所述一级搜索关键字相关的信息,得到包括至少一个信息的搜索结果;获取模块,用于获取所述用户标识对应的社交关系信息;第一排序模块,用于根据所述社交关系信息对所述搜索结果中的信息进行排序,得到搜索结果排序列表;第一发送模块,用于将所述搜索结果排序列表发送给所述社交应用客户端。
本发明实施例还提供了一种社交应用客户端,所述社交应用客户端应用于社交应用中的信息搜索,所述社交应用客户端包括:第一获取模块,用于获取用户输入的一级搜索关键字及所述用户的用户标识;第一发送模块,用于将所述一级搜索关键字及所述用户标识发送给社交应用服务器;第一接收模块,用于接收所述社交应用服务器发送的搜索结果排序列表,所述搜索结果排序列表为所述社交应用服务器根据所述用户标识对应的社交关系信息对所述一级搜索关键字对应的信息进行排序后得到的搜索结果排序列表;第一显示模块,用于显示所述社交应用服务器发送的搜索结果排序列表。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明一实施例提供的一种搜索方法涉及的实施环境示意图;
图2是本发明另一实施例提供的搜索方法流程图;
图3是本发明另一实施例提供的搜索方法流程图;
图4是本发明另一实施例提供的搜索交互示意图;
图5是本发明另一实施例提供的搜索方法流程图;
图6是本发明另一实施例提供的输入关键字的界面示意图;
图7是本发明另一实施例提供的显示界面示意图;
图8是本发明另一实施例提供的显示界面示意图;
图9是本发明另一实施例提供的显示界面示意图;
图10是本发明另一实施例提供的社交应用服务器的结构示意图;
图11是本发明另一实施例提供的第一排序模块的结构示意图;
图12是本发明另一实施例提供的第二排序单元的结构示意图;
图13是本发明另一实施例提供的社交应用服务器的结构示意图;
图14是本发明另一实施例提供的社交应用服务器的结构示意图;
图15是本发明另一实施例提供的社交应用客户端的结构示意图;
图16是本发明另一实施例提供的第一显示模块的结构示意图;
图17是本发明另一实施例提供的社交应用客户端的结构示意图;
图18是本发明另一实施例提供的社交应用客户端的结构示意图。
图19是本发明另一实施例提供的终端的结构示意图;
图20是本发明另一实施例提供的搜索系统结构示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
使用在这里,应用是用于实现特定功能的软件、固件或者软件与硬件的结合。
使用在这里,社交应用是指用户以手机、平板等移动终端为载体,以在线识别用户及交换信息技术为基础,实现社交功能的应用。
使用在这里,在社交应用中与一标识对应的社交关系信息是指所述标识对应用户在所述社交应用中登记的档案信息、所述用户标识对应用户在所述社交应用中进行的行为、在所述社交应用中与所述用户标识对应用户相关联的用户、所述相关联的用户在所述社交应用中进行的行为及上述的任意组合。
根据一些实施例,社交关系信息包括但不限于用户的社交行为信息及与用户有关的其他用户的社交行为信息。具体地,用户标识所对应的社交关系信息可以是该用户所在的群体和位置信息,如该用户就读的学校,该用户常在位置等,也可以是该用户的历史行为,如该用户曾经关注过的热点信息等,还可以是与该用户有关联的其他用户的信息,如该用户经常联系的好友信息,该用户的好友所分享的文章,该用户的好友所写 的博客等,本发明实施例对标识所对应的社交关系信息的内容不作具体限定。
如图1所示,其示出了本发明实施例提供的搜索方法所涉及的实施环境示意图。如图1所示,该实施环境包括社交应用服务器101和社交应用客户端102。其中,社交应用服务器101和社交应用客户端102通过无线网络或有线网络连接。
结合上述实施例的内容,本发明实施例提供了一种搜索方法,参见图2,本实施例提供的搜索方法流程包括:
201:接收社交应用客户端发送的一级搜索关键字及用户标识;
202:搜索一级搜索关键字相关的信息,得到包括至少一个信息的搜索结果;
203:获取用户标识在所述社交应用中对应的社交关系信息,并根据社交关系信息对搜索结果中的信息进行排序,得到搜索结果排序列表;
204:将搜索结果排序列表发送给社交应用客户端。
结合上述图1所示的实施环境示意图,本发明另一实施例提供了一种搜索方法。参见图3,本实施例提供的搜索方法流程包括:
301:获取用户输入的一级搜索关键字及用户的用户标识;
302:将一级搜索关键字及用户标识发送给社交应用服务器;
303:接收社交应用服务器发送的搜索结果排序列表,该搜索结果排序列表为社交应用服务器根据用户标识在所述社交应用中对应的社交关系信息对一级搜索关键字对应的信息进行排序后得到的搜索结果排序列表;
304:显示社交应用服务器发送的搜索结果排序列表。
结合上述图1所示环境示意图、图2或图3所示实施例的内容以及图4所示的搜索交互示意图,本发明另一实施例提供了一种搜索方法。参见图5,本实施例提供的搜索方法流程包括:
501:社交应用客户端获取用户输入的一级搜索关键字及用户的用户标识,并将一级搜索关键字及用户标识发送给社交应用服务器;
其中,对于用户输入的一级搜索关键字的内容和长度,本发明实施例不作具体限定。社交应用客户端获取用户输入的一级搜索关键字的方法包括但不限于通过各种社交工具的客户端的搜索接口进行信息关键字的接收,本发明实施例对获取用户输入的一级搜索关键字的方法不作具体限定。
其中,社交工具的客户端的搜索接口可以以搜索框的形式显示在用户可视界面 上,以图6所示的输入关键字的界面示意图为例,当用户需要输入一级搜索关键字时,需要点击搜索按钮,界面上会同时显示虚拟键盘以供用户输入,同时在界面上除了虚拟键盘和搜索按钮以外的位置显示一层遮罩,暂时将除了虚拟键盘和搜索按钮以外的内容遮盖住。其中,在界面上同时显示的遮罩可以采用包括毛玻璃效果在内的任何一种显示效果。
此外,用户的用户标识可以是用户的IP(Internet Protocol,互联网协议)地址,用户在社交工具上的昵称和身份等,本发明实施例对于用户标识的内容不作具体限定。
社交应用客户端获取用户标识的方法可以包括但不限于:社交应用客户端检测到用户通过终端登录社交应用时,根据预先设定的获取程序自动对用户的用户标识进行获取。
进一步地,社交应用客户端将一级搜索关键字及用户标识发送给社交应用服务器的方式,具体包括但不限于:当社交应用客户端检测到用户输入的一级搜索关键字达到至少两个字符且输入停顿时间达到预设时间后,将一级搜索关键字及用户标识发送给社交应用服务器。此处之所以会在输入停顿时间达到预设时间后再将一级搜索关键字及用户标识发送给社交应用服务器,是为了确认用户的输入操作结束。关于预设时间的长短,本实施例对此不进行具体限定,具体实施时,可以依据具体情况进行设定。
作为一种可选实施例,当用户在输入一级搜索关键字时,社交应用客户端的显示界面上暂时仅显示搜索框和虚拟键盘,当用户结束关键字的输入想要返回时,需要用手指在界面上向左滑动即可实现返回操作,此时虚拟键盘被隐藏,搜索框依然位于社交应用客户端的显示界面上。
关于将一级搜索关键字及用户标识发送给社交应用服务器的方式,本实施例不作具体限定,由于社交应用客户端与社交应用服务器进行有线或无线连接,因而社交应用客户端可以包括但不限于采用将一级搜索关键字及用户标识打包成数据包,通过有线或无线的方式发送给社交应用服务器。
502:社交应用服务器接收社交应用客户端发送的一级搜索关键字及用户标识;
关于社交应用服务器接收社交应用客户端发送的一级搜索关键字及用户标识的方式,本实施例不作具体限定。由于社交应用客户端与社交应用服务器进行有线或无线连接,因而社交应用客户端在获取用户输入的一级搜索关键字及用户标识后,并将获取 到的完整的一级搜索关键字及用户标识通过有线或无线的方式发送给社交应用服务器后,社交应用服务器可以通过有线或无线的方式接收一级搜索关键字及用户标识。
503:社交应用服务器搜索社交应用客户端发送的一级搜索关键字相关的信息,得到包括至少一个信息的搜索结果;
其中,一级搜索关键字相关的信息可以是内容中包含一级搜索关键字的任何信息,本发明实施例对此不作具体限定。例如,可以是社交应用中包括一级搜索关键字的账户、公众号、文章等。
作为一种可选实施例,为了避免每次获取相关信息时都要从众多的信息资源中获取,社交应用服务器搜索社交应用客户端发送的一级搜索关键字相关的信息之前,还包括:采集信息资源,提取该信息资源的索引信息,并将该信息资源的索引信息进行存储,生成索引信息库,从而可以从该索引信息库中搜索一级搜索关键字相关的信息,得到包括至少一个信息的搜索结果。
其中,采集的信息资源可以是网络上或者客户端本地存储的一至多个信息资源,如各种类型的网页等。此外,每一个网页上还可以具有一至多个能链接到其他网页的超链接,本发明实施例对采集的信息资源的来源、内容和数量均不作限定。
针对信息资源为网页的情况,采集信息资源的方法具体包括但不限于:以少量已有的网页作为起始网页,采集起始网页的内容,记录下起始网页上的超链接数据,经由起始网页上的超链接链接到其他网页;采集链接到的其他网页的内容,判断其他网页上是否包含超链接,是则记录下其他网页上的超链接数据,并经由其他网页上的超链接链接到更多网页,否则访问结束;对更多网页进行新一轮的访问和采集,从而获取与一级搜索关键字相关的信息。
具体地,采集网页内容和超链接数据包括但不限于采用以下两种采集策略:
采集策略一:深度优先策略。先在起始网页上选中一个超链接,忽略起始网页上的其他超链接,先经由起始网页上被选中的超链接到达第二个网页,记录该超链接数据,并采集第二个网页的内容;在第二个网页上选中一个超链接,忽略第二个网页上的其他超链接,先经由第二个网页上被选中的超链接到达第三个网页,记录该超链接数据,并采集第三个网页的内容;依照上述方法继续往下采集网页内容和超链接数据,直到当前采集到的网页上没有超链接为止;当当前采集到的网页上没有超链接时,则回到当前采集到的网页对应的超链接所在的前一个网页上,并判断前一个网页上是否包含除当前 采集到的网页对应的超链接以外的其他超链接,是则选中前一个网页上的另一个超链接,并继续上述的采集操作,否则继续回到前一个网页对应的超链接所在的前一个网页上,并继续上述的判断和采集操作。
例如,以起始网页为网页A为例,沿着网页上的超链接依次往后是网页B,网页C,网页D,网页E。网页A上有10个超链接,记为A1、A2…A10;网页B上也有10个超链接,记为B1、B2…B10;同样网页C、网页D上也分别有10个超链接,记法同网页A和网页B的超链接;网页E上没有超链接。其中A1链接到网页B,B1链接到网页C,C1链接到网页D,D1链接到网页E。那么根据深度优先策略来采集时,即优先记录A1、B1、C1、D1的超链接数据,优先采集网页A、网页B、网页C、网页D、网页E。由于网页E上没有任何超链接,即A1路链接已经走完了,因此优先从A1路链接上最深层次的网页D上的超链接D2开始往更深层次的网页展开记录和采集。依此类推,每次都从当前走到的最深层次的网页往更深层次的网页开始展开记录和采集。
采集策略二:宽度优先策略。记起始网页为第一层网页,则起始网页上的超链接对应的网页均为第二层网页,第二层网页上的超链接对应的网页均为第三层网页,依次类推。先采集第一层网页的内容,记录第一层网页上的每一个超链接的数据,经由每一个超链接到达其对应的第二层网页,并采集所有的第二层网页的内容;记录每一个第二层网页上的每一个超链接的数据,经由每一个超链接到达其对应的第三层网页,并采集所有的第三层网页的内容;依此类推,继续采集第四层网页以及更深层次网页的内容,每一层网页的内容采集完毕,再进行下一层网页内容的采集。
例如,记起始网页为网页A,网页A上有两个超链接,分别为A1、A2,其中A1对应网页B,A2对应网页C;网页B和网页C上各有一个超链接B1和C1,超链接B1对应网页D,超链接C1对应网页E。则网页A为第一层网页,网页B和网页C为第二层网页,网页D和网页E为第三层网页。采用宽度优先的策略时,优先采集第一层的网页A,再采集第二层的网页B和网页C,再采集第三层的网页D和网页E,优先将同一层次的网页内容采集完再采集下一层次的网页内容,采集网页的同时记录该网页对应的超链接数据。
除了上述两种采集策略以外,还可以采用其他的采集策略进行网页内容和超链接数据的采集,本发明实施例对采集网页内容和超链接数据的采集策略不作具体的限定。
需要说明的是,由于网页和网页上的链接总是处于动态的变化之中,因此必须每过一段时间重新从起始网页开始访问,根据已采集的网页内容和已记录下的超链接数据,判断每一个已采集过的网页是否有内容更新、是否已经不存在、是否包含了新的超链接或者删除了原有的超链接;如果上次采集的网页有内容更新,则重新采集该网页的内容;如果上次采集的网页已经不存在,则删除上次采集的该网页的内容;如果上次采集的网页包含了新的超链接,则记录新的超链接数据,并对经由新的超链接链接到的网页作进一步的访问和采集;如果上次采集的网页删除了原有的超链接,则删除上次记录的原有超链接的数据,并删除上次采集的经由该超链接链接到的网页内容。
需要说明的是,少量已有的网页可以是一定IP地址范围内的网页,本发明实施例对此不作具体限定。
进一步地,提取信息资源的索引信息具体包括分词,网页查重,提取网页关键字信息等,本发明实施例对提取信息资源索引信息的方法不作具体限定。
具体地,分词主要是针对中文网页内容的分词,由于中文词语不同于英语,词语之间没有空格作为分隔标志,因此需要对中文网页内容进行分词,以将中文网页内容中的人名、地名、词语等按照相应的语境正确分隔开来,从而将分隔后得到的结果进行关键字的提取得到与网页相关的索引信息。中文分词的具体方法可以是将待分词的句子与事先建立好的词条库中的词条进行匹配,匹配的方式包括按照最小切分的原则进行匹配,使每一句中切分出的词的数量最少。网页查重,即在采集的网页中将与某一网页内容相同的其他网页删除。提取网页关键字信息,包括提取词语出现的频次、位置、字体、字号、颜色等相关信息,判断哪些词语属于网页中的关键字,并提取网页中的关键字。本发明实施例对于分词、网页查重和提取网页关键字信息的方法不作具体限定。
进一步地,将信息资源的索引信息进行存储而生成索引信息库的方法包括但不限于:将提取的网页关键字等以表格的形式生成索引信息,并将生成的索引信息进行存储,生成索引信息库。将信息资源的索引信息进行存储而生成的索引信息库中包含了被采集到的所有信息资源的索引信息,通过索引信息能够找到与索引信息对应的完整的信息资源。
搜索该索引信息库得到一级关键字的相关信息具体包括:判断索引信息库中的索引信息是否包含一级搜索关键字,或者是否与一级搜索关键字相同,从而获取包含一级搜索关键字的索引信息。
例如,以用户输入的一级搜索关键字为“校友会”为例,包含“校友会”“**大学校友会”“校友”等的索引信息将被获取。
由于根据索引信息库中的索引信息能够找到与索引信息对应的完整的信息资源,因此,根据包含一级搜索关键字的索引信息能够找到与一级搜索关键字对应的所有完整的信息资源,从而得到包含至少一个信息的搜索结果。
作为一种可选实施例,当社交应用服务器得到搜索结果之后,社交应用服务器得到的搜索结果中的信息可以是随意排列的顺序,也可以是根据一定的排序规则进行排列的顺序。根据一定的排序规则进行排列的顺序可以按照与一级搜索关键字的相关程度对搜索结果中的各个信息进行排序,从而得到排序后的搜索结果。例如,将与一级搜索关键字相关程度高的信息排列在前,与一级搜索关键字相关程度低的信息排列在后,重要程度高的信息排列在前,重要程度低的信息排列在后。无论如何按照相关程度进行排序,排序规则均用于衡量与一级搜索关键字相关的信息中不同信息与一级搜索关键字的相关程度,从而衡量不同信息的重要程度。以信息为网页为例,可以是根据与一级搜索关键字相关的网页中一级搜索关键字出现的位置、频次,以及网页的内容质量,还有网页上的超链接链接到的其他网页的内容质量等来制定排序算法,从而对网页进行排序。具体地,可以通过为影响网页重要度的各种因素赋予不同的权重,并制定一个分数计算规则,计算不同网页中影响网页重要度的各种因素所能得到的分数,将每个网页中影响网页重要度的各种因素的分数乘以其所占的权重,针对每个因素得到一个对应的乘积结果,再将所有的乘积结果进行相加,得到对应网页的重要度分数;将重要度分数高的网页排在前面,重要度分数低的网页排在后面,即得到了网页排序结果。本发明实施例对排序规则的内容不作具体限定。
当然,还可以按照各个信息中首字母的先后顺序等方式对搜索结果中的各个信息进行排序,关于对搜索结果中的各个信息进行排序的方式,本实施例对此不作具体限定。为了能够得到更为符合用户需求,即得到更具针对性的搜索结果排序列表,本实施例提供的方法在社交应用服务器得到包含至少一个信息的搜索结果之后,还包括后续处理步骤。
504:社交应用服务器获取用户标识在所述社交应用中所对应的社交关系信息,并根据获取到的社交关系信息对得到的搜索结果中的信息进行排序,得到搜索结果排序列表;
进一步地,社交应用服务器获取用户标识在所述社交应用中所对应的社交关系信息的方式,具体包括但不限于:根据用户标识来获取与用户相关的所有动态信息以及与用户有关联的其他用户的信息,并将与用户相关的所有动态信息以及与用户有关联的其他用户的信息作为获取到的社交关系信息。例如,通过用户A的社交应用账号可以获取用户A所分享的文章,用户A所关注的公众号,以及用户A的好友信息和其好友分享的文章等。
具体地,根据社交关系信息对搜索结果中的信息进行排序,得到搜索结果排序列表,包括但不限于采用以下几个步骤实现:
步骤一:对搜索结果中的信息进行分类,并对各个类别进行排序,得到按照类别排序的搜索结果主列表;
其中,针对社交应用中的搜索,对搜索结果中的信息进行分类,可以是将搜索结果中的信息按照用户的联系人、用户关注的公众号、用户的聊天记录、用户所加入的聊天群、用户的收藏、相关的文章等几个类别进行分类。本发明实施例对于分类的方法不作具体限定。
对分类后的各个类别进行排序,可以是随机的排序,也可以是按照每个类别名称的笔划多少来排序或者按照其他的规则来排序,本发明实施例对于各个类别的排序方法不作具体限定。
步骤二:根据社交关系信息对搜索结果主列表中的每个类别下的信息进行排序,得到搜索结果排序列表。
根据获取到的社交关系信息对搜索结果主列表中的每个类别下的信息进行排序,包括:根据社交关系信息对搜索结果主列表中的每个类别下的信息进行加权,得到搜索结果主列表中的每个类别下的各个信息对应的加权值;根据搜索结果主列表中的每个类别下的各个信息对应的加权值对搜索结果主列表中的每个类别下的信息进行排序。
进一步地,根据社交关系信息对搜索结果主列表中的每个类别下的信息进行加权,得到搜索结果主列表中的每个类别下的各个信息对应的加权值,针对用户的联系人和用户所加入的聊天群可以按照用户与联系人和聊天群的联系频繁程度来排序,联系频繁的排列在前,联系不频繁的排列在后;针对用户关注的公众号可以按照用户关注的时间先后来排序,最近关注的排列在前,之前关注的排列在后;针对用户的聊天记录可以按照聊天记录的时间先后来排序,最近的聊天记录排列在前,之前的聊天记录排列在后; 针对用户的收藏,可以按照用户收藏相关内容的多少来排序,收藏相关内容较多的排列在前,收藏相关内容少的排列在后;针对相关的文章,被用户收藏过和在朋友圈分享过的排列在前,用户关注的公众号所发表的文章次之,其他文章则按照文章标题包含信息关键词的文章排列在前,文章内容包含信息关键词的文章排列在后。
具体地,可以为上述影响排序结果的各种因素赋予一定的权重,同时按照一定的分数计算规则,计算出不同信息中对应的各种因素的分数,将不同信息中影响排序结果的各种因素的权重与分数相乘得到对应的乘积结果,再将所有因素对应的乘积结果相加,得到每个信息的重要度分数。
根据搜索结果主列表中的每个类别下的各个信息对应的加权值对搜索结果主列表中的每个类别下的信息进行排序,包括但不限于:将重要度分数高的信息排在前面,将重要度分数低的信息排在后面,从而得到搜索结果排序列表。
需要说明的是,由于不同用户具有不同的社交关系信息,因此,根据用户的社交关系信息对与一级关键字相关的搜索结果进行排序后,针对输入同样的一级关键字的不同用户得到的搜索结果排序列表将会不同。
例如,以文章资讯搜索为例,用户搜索关键字“**应用”,不同的用户优先看到的内容会不同,如果用户是一个互联网从业人员,当该用户搜索“**应用”时,因为其好友阅读、分享、收藏的关于“**应用”的文章都是关于**应用最新的进展以及**应用和互联网行业的合作情况的文章,所以该用户会优先看到这些文章。而一个普通用户搜索“**应用”,更可能看到的是“**应用10大你还不知道的功能”、“**应用上半年的谎言”等文章。因此用户的好友阅读、分享和收藏的文章的行为,影响了该用户得到的搜索结果排序列表。以公众号为例,用户搜索关键字“校友会”,如果用户是**大学的毕业生,在该用户的关系链中肯定有其校友,如果这些校友关注了**大学校友会,则在搜索结果排序列表中就会优先展示**大学校友会,不同学校的用户在公众号中搜索“校友会”,将能够优先查询到自己学校的校友会的公众号。
为了使社交应用服务器能够区分开搜索结果排序列表中的不同类别的信息,还包括:在搜索结果排序列表中为分出的每个类别分别添加对应的类别标识,从而使社交应用服务器能够根据每个类别对应的类别标识区分开搜索结果排序列表中的不同类别的信息。
505:社交应用服务器将搜索结果排序列表作为搜索结果排序列表发送给社交应 用客户端;
本实施例不对社交应用服务器将搜索结果排序列表作为搜索结果排序列表发送给社交应用客户端的方式进行限定,具体可以通过有线或无线的方式将搜索结果排序列表发送给社交应用客户端。
506:社交应用客户端接收社交应用服务器发送的搜索结果排序列表,并显示社交应用服务器发送的搜索结果排序列表。
其中,社交应用服务器发送的搜索结果排序列表为社交应用服务器根据用户标识在所述社交应用中对应的社交关系信息对一级搜索关键字对应的信息进行排序后得到的搜索结果排序列表。
社交应用客户端显示社交应用服务器发送的搜索结果排序列表,包括但不限于:按照搜索结果排序列表中的各个类别显示搜索结果排序列表。
其中,按照搜索结果排序列表中的各个类别显示搜索结果排序列表,包括但不限于:显示搜索结果排序列表中的每个类别下预设数量的信息;隐藏每个类别下超出预设数量的信息,并显示每个类别下的查看入口。
其中,对于预设数量的大小,本发明实施例不作具体限定。例如,以图7所示的显示界面,且该显示界面上显示的每个类别下的信息的预设数量为3为例,在搜索结果排序列表中的相关文章类别下显示3条信息,而隐藏了相关文章类别下超过3条以上的其他信息。
进一步地,显示每个类别下的查看入口之后,还包括:检测各个类别下的查看入口是否被选中;当检测到任一类别下的查看入口被选中后,显示被选中的查看入口对应类别下的剩余未显示信息。关于检测查看入口是否被选中的方式,本实施例不作具体限定。
例如,以图8所示的显示界面为例,当搜索结果排序列表中的相关文章类别的查看入口被选中后,将会显示相关文章类别的剩余未显示信息。
当检测到任一类别下的查看入口被选中之后,还包括:获取用户在被选中的查看入口对应类别下输入的二级搜索关键字;将二级搜索关键字及被选中的查看入口对应类别的类别标识发送给社交应用服务器;接收社交应用服务器在类别标识对应的类别下搜索到二级搜索关键字对应的信息后,根据社交关系信息对二级搜索关键字对应的信息进行排序得到的排序结果;显示社交应用服务器发送的排序结果。
其中,获取用户在被选中的查看入口对应类别下输入的二级搜索关键字的方式,可采用获取用户输入一级搜索关键字时相同的方式,本实施例对此不作具体限定,同样不对将二级搜索关键字及被选中的查看入口对应类别的类别标识发送给社交应用服务器的方式进行限定。
社交应用服务器将搜索结果排序列表发送给社交应用客户端之后,还包括:获取社交应用客户端发送的类别标识及二级搜索关键字;在类别标识对应的类别下搜索二级搜索关键字对应的信息;根据社交关系信息对二级搜索关键字对应的信息进行排序,并将得到的排序结果发送给社交应用客户端。
其中,社交应用服务器可采用上述搜索一级搜索关键字的方式在类别标识对应的类别下搜索二级搜索关键字对应的信息,或者采用其他方式,本实施例不对此进行限定。此外,社交应用服务器可采用上述根据社交关系信息对一级搜索关键字对应的信息进行排序的方式根据社交关系信息对二级搜索关键字对应的信息进行排序,或者采用其他排序方式,本实施例同样不对此进行限定。
例如,以图9所示的显示界面为例,在搜索结果排序列表中的相关文章类别中,用户输入一个二级搜索关键字时,社交应用客户端会将用户输入的二级搜索关键字及类别标识发送至社交应用服务器,社交应用服务器将得到的排序结果发送给社交应用客户端之后,社交应用客户端将会显示对应于相关文章类别的搜索结果排序列表。
作为一种可选实施例,如图8所示,当用户在被选中的查看入口对应类别下想返回对应搜索结果排序的主列表时,可以用手指在界面上向左滑动即可实现返回操作。
作为另一可选实施例,由于网络中的信息是不断变化的,因此在输出搜索列表排序结果的界面上,为了能实时更新信息搜索结果,还包括设置一个刷新按钮,当社交应用客户端检测到用户手指点击该刷新按钮时,相当于重新获取到原有的搜索关键字,并发送给社交应用服务器,社交应用服务器按照原有的操作重新进行搜索,得到最新的搜索结果排序列表,并发送给社交应用客户端。
参见图10,本发明实施例提供了一种社交应用服务器100,该社交应用服务器100应用于社交应用中的信息搜索,用于执行上述图2至图5所示实施例中任一实施例提供的搜索方法中社交应用服务器所执行的功能。该社交应用服务器100包括:
第一接收模块1001,用于接收社交应用客户端发送的一级搜索关键字及用户标识;
第一搜索模块1002,用于搜索一级搜索关键字相关的信息,得到包括至少一个信息的搜索结果;
获取模块1003,用于获取用户标识在所述社交应用中对应的社交关系信息;
第一排序模块1004,用于根据社交关系信息对搜索结果中的信息进行排序,得到搜索结果排序列表;
第一发送模块1005,用于将搜索结果排序列表发送给社交应用客户端。
进一步地,参见图11,第一排序模块1004具体包括:
分类单元10041,用于对搜索结果中的信息进行分类;
第一排序单元10042,用于对各个类别进行排序,得到按照类别排序的搜索结果主列表;
第二排序单元10043,用于根据社交关系信息对搜索结果主列表中的每个类别下的信息进行排序,得到搜索结果排序列表。
进一步地,参见图12,第二排序单元10043具体包括:
加权子单元100431,用于根据社交关系信息对搜索结果主列表中的每个类别下的信息进行加权,得到搜索结果主列表中的每个类别下的各个信息对应的加权值;
排序子单元100432,用于根据搜索结果主列表中的每个类别下的各个信息对应的加权值对搜索结果主列表中的每个类别下的信息进行排序。
进一步地,第一排序模块1004得到的搜索结果排序列表中具体还包括每个类别对应的类别标识。
进一步地,参见图13,该社交应用服务器100还包括:
第二接收模块1006,用于接收社交应用客户端发送的类别标识及二级搜索关键字;
第二搜索模块1007,用于在类别标识对应的类别下搜索二级搜索关键字对应的信息;
第二排序模块1008,用于根据社交关系信息对二级搜索关键字对应的信息进行排序;
第二发送模块1009,用于将得到的排序结果发送给社交应用客户端。
图14是根据一示例性实施例示出的一种社交应用服务器。参照图14,服务器1400包括处理组件1422,其进一步包括一个或多个处理器,以及由存储器1432所代表 的存储器资源,用于存储可由处理组件1422的执行的指令,例如应用程序。存储器1432中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1422被配置为执行指令,以执行上述图2及图5所示实施例中任一实施例提供的搜索方法中社交应用服务器所执行的功能。
服务器1400还可以包括一个电源组件1426被配置为执行服务器1400的电源管理,一个有线或无线网络接口1450被配置为将服务器1400连接到网络,和一个输入输出(I/O)接口1458。服务器1400可以操作基于存储在存储器1432的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。
其中,一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行,所述一个或者一个以上程序包含用于进行以下操作的指令:
接收社交应用客户端发送的一级搜索关键字及用户标识;
搜索一级搜索关键字相关的信息,得到包括至少一个信息的搜索结果;
获取用户标识在所述社交应用中对应的社交关系信息,并根据社交关系信息对搜索结果中的信息进行排序,得到搜索结果排序列表;
将搜索结果排序列表发送给社交应用客户端。
假设上述为第一种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第二种可能的实施方式中,服务器的存储器中,还包含用于执行以下操作的指令:
对搜索结果中的信息进行分类,并对各个类别进行排序,得到按照类别排序的搜索结果主列表;
根据社交关系信息对搜索结果主列表中的每个类别下的信息进行排序,得到搜索结果排序列表。
在第二种可能的实施方式作为基础而提供的第三种可能的实施方式中,服务器的存储器中,还包含用于执行以下操作的指令:
根据社交关系信息对搜索结果主列表中的每个类别下的信息进行加权,得到搜索结果主列表中的每个类别下的各个信息对应的加权值;
根据搜索结果主列表中的每个类别下的各个信息对应的加权值对搜索结果主列表中的每个类别下的信息进行排序。
在第二种可能的实施方式或第三种可能的实施方式作为基础而提供的第四种可能的实施方式中,服务器的存储器中,还包含用于执行以下操作的指令:
搜索结果排序列表中还包括每个类别对应的类别标识;
将搜索结果排序列表发送给社交应用客户端之后,还包括:
获取社交应用客户端发送的类别标识及二级搜索关键字;
在类别标识对应的类别下搜索二级搜索关键字对应的信息;
根据社交关系信息对二级搜索关键字对应的信息进行排序,并将得到的排序结果发送给社交应用客户端。
参见图15,本发明另一实施例提供了一种社交应用客户端150,该社交应用客户端150应用于社交应用中的信息搜索,该社交应用客户端150用于执行上述图2至图5中任一实施例提供的搜索方法中社交应用客户端所执行的功能。该社交应用客户端150包括:
第一获取模块1501,用于获取用户输入的一级搜索关键字及用户的用户标识;
第一发送模块1502,用于将一级搜索关键字及用户标识发送给社交应用服务器;
第一接收模块1503,用于接收社交应用服务器发送的搜索结果排序列表,该搜索结果排序列表为社交应用服务器根据用户标识在所述社交应用中对应的社交关系信息对一级搜索关键字对应的信息进行排序后得到的搜索结果排序列表;
第一显示模块1504,用于显示社交应用服务器发送的搜索结果排序列表。
进一步地,第一发送模块1502,具体用于当用户输入的一级搜索关键字达到至少两个字符且输入停顿时间达到预设时间后,将一级搜索关键字及用户标识发送给社交应用服务器。
进一步地,第一显示模块1504,具体用于按照搜索结果排序列表中的各个类别显示搜索结果排序列表。
进一步地,参见图16,第一显示模块1504具体包括:
第一显示单元15041,用于显示搜索结果排序列表中的每个类别下预设数量的信息;
隐藏单元15042,用于隐藏每个类别下超出预设数量的信息;
第二显示单元15043,用于显示每个类别下的查看入口。
进一步地,参见图17,社交应用客户端150还包括:
检测模块1505,用于检测各个类别下的查看入口是否被选中;
第二显示模块1506,用于当检测到任一类别下的查看入口被选中后,显示被选 中的查看入口对应类别下的剩余未显示信息。
进一步地,参见图18,社交应用客户端150还包括:
第二获取模块1507,用于获取用户在被选中的查看入口对应类别下输入的二级搜索关键字;
第二发送模块1508,用于将二级搜索关键字及被选中的查看入口对应类别的类别标识发送给社交应用服务器;
第二接收模块1509,用于接收社交应用服务器在类别标识对应的类别下搜索到二级搜索关键字对应的信息后,根据社交关系信息对二级搜索关键字对应的信息进行排序得到的排序结果;
第二显示模块1510,用于显示社交应用服务器发送的排序结果。
本实施例提供了一种终端,该终端可以用于执行上述图2至图5所示实施例中任一实施例提供的搜索方法中社交应用客户端所执行的功能。参见图19,该终端1900包括:
终端1900可以包括RF(Radio Frequency,射频)电路210、包括有一个或一个以上计算机可读存储介质的存储器220、输入单元230、显示单元240、传感器250、音频电路260、WiFi(Wireless Fidelity,无线保真)模块270、包括有一个或者一个以上处理核心的处理器280、以及电源290等部件。本领域技术人员可以理解,图19中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
RF电路210可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器280处理;另外,将涉及上行的数据发送给基站。通常,RF电路210包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路210还可以通过无线通信与网络和其他设备通信。无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。
存储器220可用于存储软件程序以及模块,处理器280通过运行存储在存储器220的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器220可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端1900的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器220可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器220还可以包括存储器控制器,以提供处理器280和输入单元230对存储器220的访问。
输入单元230可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元230可包括触敏表面231以及其他输入设备232。触敏表面231,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面231上或在触敏表面231附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面231可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器280,并能接收处理器280发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面231。除了触敏表面231,输入单元230还可以包括其他输入设备232。具体地,其他输入设备232可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元240可用于显示由用户输入的信息或提供给用户的信息以及终端1900的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元240可包括显示面板241,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板241。进一步的,触敏表面231可覆盖显示面板241,当触敏表面231检测到在其上或附近的触摸操作后,传送给处理器280以确定触摸事件的类型,随后处理器280根据触摸事件的类型在显示面板241上提供相应的视觉输出。虽然在图19中,触敏表面231与显示面板241是作为两个独立的部件来实现输入和输入功能,但是在某些实 施例中,可以将触敏表面231与显示面板241集成而实现输入和输出功能。
终端1900还可包括至少一种传感器250,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板241的亮度,接近传感器可在终端1900移动到耳边时,关闭显示面板241和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端1900还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路260、扬声器261,传声器262可提供用户与终端1900之间的音频接口。音频电路260可将接收到的音频数据转换后的电信号,传输到扬声器261,由扬声器261转换为声音信号输出;另一方面,传声器262将收集的声音信号转换为电信号,由音频电路260接收后转换为音频数据,再将音频数据输出处理器280处理后,经RF电路210以发送给比如另一终端,或者将音频数据输出至存储器220以便进一步处理。音频电路260还可能包括耳塞插孔,以提供外设耳机与终端1900的通信。
WiFi属于短距离无线传输技术,终端1900通过WiFi模块270可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图19示出了WiFi模块270,但是可以理解的是,其并不属于终端1900的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器280是终端1900的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器220内的软件程序和/或模块,以及调用存储在存储器220内的数据,执行终端1900的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器280可包括一个或多个处理核心;优选的,处理器280可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器280中。
终端1900还包括给各个部件供电的电源290(比如电池),优选的,电源可以通过电源管理系统与处理器280逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源290还可以包括一个或一个以上的直流或交流电源、再充电 系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管未示出,终端1900还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,终端的显示单元是触摸屏显示器,终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行。一个或者一个以上程序包含用于执行以下操作的指令:
获取用户输入的一级搜索关键字及用户的用户标识;
将一级搜索关键字及用户标识发送给社交应用服务器;
接收社交应用服务器发送的搜索结果排序列表,该搜索结果排序列表为社交应用服务器根据用户标识在所述社交应用中对应的社交关系信息对一级搜索关键字对应的信息进行排序后得到的搜索结果排序列表;
显示社交应用服务器发送的搜索结果排序列表。
假设上述为第一种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第二种可能的实施方式中,服务器的存储器中,还包含用于执行以下操作的指令:
当用户输入的一级搜索关键字达到至少两个字符且输入停顿时间达到预设时间后,将一级搜索关键字及用户标识发送给社交应用服务器。
在第一种可能的实施方式作为基础而提供的第三种可能的实施方式中,服务器的存储器中,还包含用于执行以下操作的指令:
按照搜索结果排序列表中的各个类别显示搜索结果排序列表。
在第三种可能的实施方式作为基础而提供的第四种可能的实施方式中,服务器的存储器中,还包含用于执行以下操作的指令:
显示搜索结果排序列表中的每个类别下预设数量的信息;
隐藏每个类别下超出预设数量的信息,并显示每个类别下的查看入口。
在第四种可能的实施方式作为基础而提供的第五种可能的实施方式中,服务器的存储器中,还包含用于执行以下操作的指令:
检测各个类别下的查看入口是否被选中;
当检测到任一类别下的查看入口被选中后,显示被选中的查看入口对应类别下的剩余未显示信息。
在第五种可能的实施方式作为基础而提供的第六种可能的实施方式中,服务器的存储器中,还包含用于执行以下操作的指令:
获取用户在被选中的查看入口对应类别下输入的二级搜索关键字;
将二级搜索关键字及被选中的查看入口对应类别的类别标识发送给社交应用服务器;
接收社交应用服务器在类别标识对应的类别下搜索到二级搜索关键字对应的信息后,根据社交关系信息对二级搜索关键字对应的信息进行排序得到的排序结果;
显示社交应用服务器发送的排序结果。
本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中的存储器中所包含的计算机可读存储介质;也可以是单独存在,未装配入终端中的计算机可读存储介质。该计算机可读存储介质存储有一个或者一个以上程序,该一个或者一个以上程序被一个或者一个以上的处理器用来执行搜索方法,该方法包括:
获取用户输入的一级搜索关键字及用户的用户标识;
将一级搜索关键字及用户标识发送给社交应用服务器;
接收社交应用服务器发送的搜索结果排序列表,该搜索结果排序列表为社交应用服务器根据用户标识在所述社交应用中对应的社交关系信息对一级搜索关键字对应的信息进行排序后得到的搜索结果排序列表;
显示社交应用服务器发送的搜索结果排序列表。
假设上述为第一种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第二种可能的实施方式中,服务器的存储器中,还包含用于执行以下操作的指令:
当用户输入的一级搜索关键字达到至少两个字符且输入停顿时间达到预设时间后,将一级搜索关键字及用户标识发送给社交应用服务器。
在第一种可能的实施方式作为基础而提供的第三种可能的实施方式中,服务器的存储器中,还包含用于执行以下操作的指令:
按照搜索结果排序列表中的各个类别显示搜索结果排序列表。
在第三种可能的实施方式作为基础而提供的第四种可能的实施方式中,服务器的存储器中,还包含用于执行以下操作的指令:
显示搜索结果排序列表中的每个类别下预设数量的信息;
隐藏每个类别下超出预设数量的信息,并显示每个类别下的查看入口。
在第四种可能的实施方式作为基础而提供的第五种可能的实施方式中,服务器 的存储器中,还包含用于执行以下操作的指令:
检测各个类别下的查看入口是否被选中;
当检测到任一类别下的查看入口被选中后,显示被选中的查看入口对应类别下的剩余未显示信息。
在第五种可能的实施方式作为基础而提供的第六种可能的实施方式中,服务器的存储器中,还包含用于执行以下操作的指令:
获取用户在被选中的查看入口对应类别下输入的二级搜索关键字;
将二级搜索关键字及被选中的查看入口对应类别的类别标识发送给社交应用服务器;
接收社交应用服务器在类别标识对应的类别下搜索到二级搜索关键字对应的信息后,根据社交关系信息对二级搜索关键字对应的信息进行排序得到的排序结果;
显示社交应用服务器发送的排序结果。
本发明实施例中提供了一种图形用户接口,该图形用户接口用在终端上,该终端包括触摸屏显示器、存储器和用于执行一个或者一个以上的程序的一个或者一个以上的处理器;该图形用户接口用于:
获取用户输入的一级搜索关键字及用户的用户标识;
将一级搜索关键字及用户标识发送给社交应用服务器;
接收社交应用服务器发送的搜索结果排序列表,该搜索结果排序列表为社交应用服务器根据用户标识在所述社交应用中对应的社交关系信息对一级搜索关键字对应的信息进行排序后得到的搜索结果排序列表;
显示社交应用服务器发送的搜索结果排序列表。
参见图20,本发明另一实施例提供了一种搜索系统,该系统包括社交应用服务器2001及终端2002;
其中,所述社交应用服务器2001为上述各个实施例提供的社交应用服务器,详见上述各个实施例的内容,此处不再赘述;
所述终端2002上安装有上述实施例提供的社交应用客户端,详见上述实施例的内容,此处不再赘述。
本发明上述各实施例提供的搜索方法,可通过终端将获取到的用户输入的一级搜索关键字及用户的用户标识发送给社交应用服务器,并接收社交应用服务器根据用户 标识在所述社交应用中对应的社交关系信息对一级搜索关键字对应的信息进行排序后得到的搜索结果排序列表,实现了根据用户的社交关系信息进行搜索,使得搜索结果排序列表更具针对性,且灵活性较高,不仅得到了更优化的搜索结果排序列表,同时还可提高用户获取相关信息的效率,提高了搜索效率。
需要说明的是:上述实施例提供的社交应用服务器和社交应用客户端在实现搜索时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的社交应用服务器、社交应用客户端与搜索方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (22)

  1. 一种搜索方法,应用于社交应用中,所述方法包括:
    接收社交应用客户端发送的一级搜索关键字及用户标识;
    搜索所述一级搜索关键字相关的信息,得到包括至少一个信息的搜索结果;
    获取所述用户标识在所述社交应用中对应的社交关系信息;
    根据所述社交关系信息对所述搜索结果中的信息进行排序,得到搜索结果排序列表;以及
    将所述搜索结果排序列表发送给所述社交应用客户端。
  2. 根据权利要求1所述的方法,其中,所述用户标识在所述社交应用中对应的社交关系信息选自由所述用户标识对应用户在所述社交应用中登记的档案信息、所述用户标识对应用户在所述社交应用中进行的行为、在所述社交应用中与所述用户标识对应用户相关联的用户、所述相关联的用户在所述社交应用中进行的行为及上述的任意组合组成的组。
  3. 根据权利要求1所述的方法,所述根据所述社交关系信息对所述搜索结果中的信息进行排序,得到搜索结果排序列表,包括:
    对所述搜索结果中的信息进行分类,并对各个类别进行排序,得到按照类别排序的搜索结果主列表;
    根据所述社交关系信息对所述搜索结果主列表中的每个类别下的信息进行排序,得到搜索结果排序列表。
  4. 根据权利要求3所述的方法,所述根据所述社交关系信息对所述搜索结果主列表中的每个类别下的信息进行排序,包括:
    根据所述社交关系信息对所述搜索结果主列表中的每个类别下的信息进行加权,得到所述搜索结果主列表中的每个类别下的各个信息对应的加权值;
    根据所述搜索结果主列表中的每个类别下的各个信息对应的加权值对所述搜索结果主列表中的每个类别下的信息进行排序。
  5. 根据权利要求3或4所述的方法,其中所述搜索结果排序列表中还包括每个类别对应的类别标识;
    所述将所述搜索结果排序列表发送给所述社交应用客户端之后,还包括:
    获取所述社交应用客户端发送的类别标识及二级搜索关键字;
    在所述类别标识对应的类别下搜索所述二级搜索关键字对应的信息;
    根据所述社交关系信息对所述二级搜索关键字对应的信息进行排序,并将得到的排序结果发送给所述社交应用客户端。
  6. 一种搜索方法,应用于社交应用中,所述方法包括:
    获取用户输入的一级搜索关键字及所述用户的用户标识;
    将所述一级搜索关键字及所述用户标识发送给社交应用服务器;
    接收所述社交应用服务器发送的搜索结果排序列表,所述搜索结果排序列表为所述社交应用服务器根据所述用户标识在所述社交应用中对应的社交关系信息对所述一级搜索关键字对应的信息进行排序后得到的搜索结果排序列表;以及
    显示所述社交应用服务器发送的搜索结果排序列表。
  7. 根据权利要求6所述的方法,其中,所述用户标识在所述社交应用中对应的社交关系信息选自由所述用户标识对应用户在所述社交应用中登记的档案信息、所述用户标识对应用户在所述社交应用中进行的行为、在所述社交应用中与所述用户标识对应用户相关联的用户、所述相关联的用户在所述社交应用中进行的行为及上述的任意组合组成的组。
  8. 根据权利要求6所述的方法,所述将所述一级搜索关键字及所述用户标识发送给社交应用服务器,包括:
    当用户输入的一级搜索关键字达到至少两个字符且输入停顿时间达到预设时间后,将所述一级搜索关键字及所述用户标识发送给社交应用服务器。
  9. 根据权利要求6所述的方法,所述显示所述社交应用服务器发送的搜索结果排 序列表,包括:
    按照所述搜索结果排序列表中的各个类别显示搜索结果排序列表。
  10. 根据权利要求9所述的方法,所述按照所述搜索结果排序列表中的各个类别显示搜索结果排序列表,包括:
    显示所述搜索结果排序列表中的每个类别下预设数量的信息;
    隐藏每个类别下超出预设数量的信息,并显示每个类别下的查看入口。
  11. 根据权利要求10所述的方法,所述显示每个类别下的查看入口之后,还包括:
    检测各个类别下的查看入口是否被选中;
    当检测到任一类别下的查看入口被选中后,显示被选中的查看入口对应类别下的剩余未显示信息。
  12. 根据权利要求11所述的方法,所述当检测到任一类别下的查看入口被选中之后,还包括:
    获取用户在所述被选中的查看入口对应类别下输入的二级搜索关键字;
    将所述二级搜索关键字及所述被选中的查看入口对应类别的类别标识发送给所述社交应用服务器;
    接收所述社交应用服务器在所述类别标识对应的类别下搜索到二级搜索关键字对应的信息后,根据所述社交关系信息对所述二级搜索关键字对应的信息进行排序得到的排序结果;
    显示所述社交应用服务器发送的排序结果。
  13. 一种社交应用服务器,应用于社交应用,所述社交应用服务器包括:
    至少一个处理器;以及
    存储器,所述存储器存储有指令,当所述处理器执行所述指令时,执行以下操作:
    接收社交应用客户端发送的一级搜索关键字及用户标识;
    搜索所述一级搜索关键字相关的信息,得到包括至少一个信息的搜索结果;
    获取所述用户标识在所述社交应用中对应的社交关系信息;
    根据所述社交关系信息对所述搜索结果中的信息进行排序,得到搜索结果排序列表;以及
    将所述搜索结果排序列表发送给所述社交应用客户端。
  14. 根据权利要求13所述的社交应用服务器,当所述处理器执行所述指令时,还执行以下操作:
    对所述搜索结果中的信息进行分类;
    对各个类别进行排序,得到按照类别排序的搜索结果主列表;
    根据所述社交关系信息对所述搜索结果主列表中的每个类别下的信息进行排序,得到搜索结果排序列表。
  15. 根据权利要求14所述的社交应用服务器,当所述处理器执行所述指令时,还执行以下操作:
    根据所述社交关系信息对所述搜索结果主列表中的每个类别下的信息进行加权,得到所述搜索结果主列表中的每个类别下的各个信息对应的加权值;
    根据所述搜索结果主列表中的每个类别下的各个信息对应的加权值对所述搜索结果主列表中的每个类别下的信息进行排序。
  16. 根据权利要求14或15所述的社交应用服务器,所述搜索结果排序列表中还包括每个类别对应的类别标识;
    当所述处理器执行所述指令时,还执行以下操作:
    接收所述社交应用客户端发送的类别标识及二级搜索关键字;
    在所述类别标识对应的类别下搜索所述二级搜索关键字对应的信息;
    根据所述社交关系信息对所述二级搜索关键字对应的信息进行排序;
    将得到的排序结果发送给所述社交应用客户端。
  17. 一种社交应用客户端,应用于社交应用,所述社交应用客户端包括:
    显示装置;
    至少一个处理器;以及
    存储器,所述存储器存储有指令,当所述处理器执行所述指令时,执行以下操作:
    获取用户输入的一级搜索关键字及所述用户的用户标识;
    将所述一级搜索关键字及所述用户标识发送给社交应用服务器;
    接收所述社交应用服务器发送的搜索结果排序列表,所述搜索结果排序列表为所述社交应用服务器根据所述用户标识在所述社交应用中对应的社交关系信息对所述一级搜索关键字对应的信息进行排序后得到的搜索结果排序列表;以及
    控制所述显示装置显示所述社交应用服务器发送的搜索结果排序列表。
  18. 根据权利要求17所述的社交应用客户端,当所述处理器执行所述指令时,还执行以下操作:当用户输入的一级搜索关键字达到至少两个字符且输入停顿时间达到预设时间后,将所述一级搜索关键字及所述用户标识发送给社交应用服务器。
  19. 根据权利要求17所述的社交应用客户端,当所述处理器执行所述指令时,还执行以下操作:控制所述显示装置按照所述搜索结果排序列表中的各个类别显示搜索结果排序列表。
  20. 根据权利要求19所述的社交应用客户端,当所述处理器执行所述指令时,还控制所述显示装置执行以下操作:
    显示所述搜索结果排序列表中的每个类别下预设数量的信息;
    隐藏每个类别下超出预设数量的信息;
    显示每个类别下的查看入口。
  21. 根据权利要求20所述的社交应用客户端,当所述处理器执行所述指令时,还检测各个类别下的查看入口是否被选中,并且当检测到任一类别下的查看入口被选中后,控制所述显示装置显示被选中的查看入口对应类别下的剩余未显示信息。
  22. 根据权利要求21所述的社交应用客户端,当所述处理器执行所述指令时,还执行以下操作:
    获取用户在所述被选中的查看入口对应类别下输入的二级搜索关键字;
    将所述二级搜索关键字及所述被选中的查看入口对应类别的类别标识发送给所述社交应用服务器;
    接收所述社交应用服务器在所述类别标识对应的类别下搜索到二级搜索关键字对应的信息后,根据所述社交关系信息对所述二级搜索关键字对应的信息进行排序得到的排序结果;
    控制所述显示装置显示所述社交应用服务器发送的排序结果。
PCT/CN2015/091010 2014-08-08 2015-09-29 搜索方法、服务器及客户端 WO2016019925A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/208,387 US20170091335A1 (en) 2014-08-08 2016-07-12 Search method, server and client

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410391655.6 2014-08-08
CN201410391655.6A CN104182488B (zh) 2014-08-08 2014-08-08 搜索方法、服务器及客户端

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/208,387 Continuation US20170091335A1 (en) 2014-08-08 2016-07-12 Search method, server and client

Publications (1)

Publication Number Publication Date
WO2016019925A1 true WO2016019925A1 (zh) 2016-02-11

Family

ID=51963528

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/091010 WO2016019925A1 (zh) 2014-08-08 2015-09-29 搜索方法、服务器及客户端

Country Status (3)

Country Link
US (1) US20170091335A1 (zh)
CN (1) CN104182488B (zh)
WO (1) WO2016019925A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399448A (zh) * 2019-07-31 2019-11-01 浪潮软件集团有限公司 中文地名地址搜索匹配方法、终端、计算机可读存储介质

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130096978A (ko) * 2012-02-23 2013-09-02 삼성전자주식회사 사용자 단말, 서버, 상황기반 정보 제공 시스템 및 그 방법
CN105224567B (zh) * 2014-06-26 2020-08-14 腾讯科技(深圳)有限公司 一种关键字的搜索方法及装置
CN104182488B (zh) * 2014-08-08 2016-09-07 腾讯科技(深圳)有限公司 搜索方法、服务器及客户端
CN104462525B (zh) * 2014-12-23 2018-04-13 百度在线网络技术(北京)有限公司 实现搜索的方法及装置
CN105893390B (zh) * 2015-01-26 2021-06-22 北京搜狗科技发展有限公司 一种应用程序的处理方法及电子设备
CN106919629B (zh) * 2015-12-28 2021-01-01 小米科技有限责任公司 在群聊中实现信息筛选的方法及装置
CN107104875B (zh) * 2016-02-22 2020-08-25 腾讯科技(深圳)有限公司 信息推送的方法和装置
CN107153498B (zh) * 2016-03-30 2021-01-08 斑马智行网络(香港)有限公司 一种页面处理方法、装置和智能终端
CN108874827B (zh) * 2017-05-12 2021-04-20 北京搜狗科技发展有限公司 一种搜索方法及相关装置
CN107609126B (zh) * 2017-09-15 2019-03-29 北京邮电大学 一种基于众包的空间检索词查询的评价方法和装置
CN107797646A (zh) * 2017-11-07 2018-03-13 广东欧珀移动通信有限公司 信息筛选方法、装置、终端设备及存储介质
CN111357245B (zh) * 2017-11-15 2022-08-09 华为技术有限公司 一种信息搜索的方法、终端、网络设备和系统
CN107909411A (zh) * 2017-12-04 2018-04-13 胡丽英 一种基于商品的微信抽奖方法及系统
CN108133464A (zh) * 2017-12-18 2018-06-08 美的集团股份有限公司 毛玻璃效果的处理方法、终端及计算机可读存储介质
CN108038221B (zh) * 2017-12-22 2021-10-15 新奥(中国)燃气投资有限公司 一种信息抓取方法及装置
WO2019149990A1 (en) * 2018-02-03 2019-08-08 Nokia Technologies Oy Application based routing of data packets in multi-access communication networks
CN108809810B (zh) * 2018-06-12 2021-05-25 深圳华讯网络科技有限公司 基于即时通讯的消息记录查看方法、系统和计算机设备
CN109033386B (zh) * 2018-07-27 2020-04-10 北京字节跳动网络技术有限公司 搜索排序方法、装置、计算机设备和存储介质
CN108959644B (zh) * 2018-07-27 2020-04-14 北京字节跳动网络技术有限公司 搜索排序方法、装置、计算机设备和存储介质
CN109299250A (zh) * 2018-09-14 2019-02-01 广州神马移动信息科技有限公司 答案的展示方法、装置、存储介质及电子设备
CN110245289A (zh) * 2019-05-20 2019-09-17 中国平安财产保险股份有限公司 一种信息搜索方法以及相关设备
CN110909074A (zh) * 2019-10-21 2020-03-24 北京海益同展信息科技有限公司 处理社交数据的方法、装置、计算机设备和存储介质
CN112578354B (zh) * 2020-02-28 2024-02-23 加特兰微电子科技(上海)有限公司 确定目标物方位角的方法、计算机设备和存储介质
CN111680072B (zh) * 2020-05-07 2023-12-08 国家计算机网络与信息安全管理中心 基于社交信息数据的划分系统及方法
CN114302246B (zh) * 2021-12-31 2024-01-16 北京快来文化传播集团有限公司 直播平台上搜索方法、装置及设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102132308A (zh) * 2008-08-20 2011-07-20 雅虎公司 在线社区中的信息分享
CN103034672A (zh) * 2011-09-29 2013-04-10 云壤(北京)信息技术有限公司 社会化搜索系统及搜索方法
CN103365913A (zh) * 2012-04-09 2013-10-23 腾讯科技(深圳)有限公司 一种搜索结果排序方法和装置
CN103699619A (zh) * 2013-12-18 2014-04-02 北京百度网讯科技有限公司 一种用于提供搜索结果的方法及装置
CN104182488A (zh) * 2014-08-08 2014-12-03 腾讯科技(深圳)有限公司 搜索方法、服务器及客户端

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009138755A1 (en) * 2008-05-16 2009-11-19 Aubert Park Ventures Ltd. Community search system with relational ranking
US20120166411A1 (en) * 2010-12-27 2012-06-28 Microsoft Corporation Discovery of remotely executed applications
CN103617267B (zh) * 2013-12-03 2017-05-10 北京奇虎科技有限公司 社交化扩展搜索方法及装置、系统
CN104050243B (zh) * 2014-05-28 2019-05-28 北京立新盈企大数据技术股份有限公司 一种将搜索与社交相结合的网络搜索方法及其系统
US10248729B2 (en) * 2014-05-28 2019-04-02 Bari Enterprises, Inc. Method and system of quantifying and qualifying athletic skills and competitive results in a social network
US10459992B2 (en) * 2015-10-15 2019-10-29 Oath Inc. User interface generation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102132308A (zh) * 2008-08-20 2011-07-20 雅虎公司 在线社区中的信息分享
CN103034672A (zh) * 2011-09-29 2013-04-10 云壤(北京)信息技术有限公司 社会化搜索系统及搜索方法
CN103365913A (zh) * 2012-04-09 2013-10-23 腾讯科技(深圳)有限公司 一种搜索结果排序方法和装置
CN103699619A (zh) * 2013-12-18 2014-04-02 北京百度网讯科技有限公司 一种用于提供搜索结果的方法及装置
CN104182488A (zh) * 2014-08-08 2014-12-03 腾讯科技(深圳)有限公司 搜索方法、服务器及客户端

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399448A (zh) * 2019-07-31 2019-11-01 浪潮软件集团有限公司 中文地名地址搜索匹配方法、终端、计算机可读存储介质
CN110399448B (zh) * 2019-07-31 2023-06-09 浪潮软件集团有限公司 中文地名地址搜索匹配方法、终端、计算机可读存储介质

Also Published As

Publication number Publication date
CN104182488B (zh) 2016-09-07
US20170091335A1 (en) 2017-03-30
CN104182488A (zh) 2014-12-03

Similar Documents

Publication Publication Date Title
WO2016019925A1 (zh) 搜索方法、服务器及客户端
US10162865B2 (en) Generating image tags
US9241242B2 (en) Information recommendation method and apparatus
US9638528B2 (en) Method and apparatus for displaying geographic location
EP3097704B1 (en) Determing data associated with proximate computing devices
CN104112213B (zh) 推荐信息的方法及装置
WO2017012437A1 (zh) 网页批注显示方法、装置及移动终端
CN108334539B (zh) 对象推荐方法、移动终端及计算机可读存储介质
CN108156508B (zh) 弹幕信息处理的方法、装置、移动终端、服务器及系统
CN106294308B (zh) 命名实体识别方法及装置
TWI597964B (zh) 訊息儲存方法、裝置及通訊終端
WO2017012423A1 (zh) 一种显示即时通信消息的方法和终端
CN111274416A (zh) 聊天信息查找方法及电子设备
CN108427761B (zh) 一种新闻事件处理的方法、终端、服务器及存储介质
TW201512865A (zh) 一種網頁數據搜索方法、裝置和系統
JP6543774B2 (ja) コンピューティングデバイスのプロパティに基づく情報のランク付け
WO2021120875A1 (zh) 搜索方法、装置、终端设备及存储介质
WO2017161994A1 (zh) 一种显示页面的方法及装置、计算机存储介质
WO2018040104A1 (zh) 用于发送搜索请求的方法和装置
CN110633438B (zh) 一种新闻事件处理的方法、终端、服务器及存储介质
CN108307039B (zh) 一种应用信息展示方法及移动终端
CN107465802A (zh) 一种显示通讯消息的方法、装置和系统
CN111510557B (zh) 内容处理方法及电子设备
CN106844572B (zh) 搜索结果处理方法及装置、用于搜索结果处理的装置
JP6915074B2 (ja) メッセージ通知方法及び端末

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14/07/17)

122 Ep: pct application non-entry in european phase

Ref document number: 15830199

Country of ref document: EP

Kind code of ref document: A1