WO2017185567A1 - 资源搜索方法及装置 - Google Patents

资源搜索方法及装置 Download PDF

Info

Publication number
WO2017185567A1
WO2017185567A1 PCT/CN2016/095809 CN2016095809W WO2017185567A1 WO 2017185567 A1 WO2017185567 A1 WO 2017185567A1 CN 2016095809 W CN2016095809 W CN 2016095809W WO 2017185567 A1 WO2017185567 A1 WO 2017185567A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
related information
input program
search character
server
Prior art date
Application number
PCT/CN2016/095809
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 北京小米移动软件有限公司
Priority to KR1020167027553A priority Critical patent/KR101926736B1/ko
Priority to JP2016562873A priority patent/JP6456403B2/ja
Priority to RU2017104508A priority patent/RU2663707C1/ru
Publication of WO2017185567A1 publication Critical patent/WO2017185567A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • 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/903Querying
    • G06F16/9032Query formulation
    • G06F16/90324Query formulation using system suggestions
    • 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/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/438Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9038Presentation of query results

Definitions

  • the present disclosure relates to the field of computers, and in particular, to a resource search method and apparatus.
  • the user can search for related resources in the application by inputting characters through the search bar provided by the application in the terminal, such as: inputting a character search application in the search bar of the application store, and inputting a character search in the search bar of the music application. Music, enter character search videos, etc. in the video application.
  • the present disclosure provides a resource search method and apparatus.
  • a resource search method for inputting into a program, the method comprising:
  • the server is configured to select related information of the resource matching the at least one search character from the resource library, and send the related information to the input program, where the resource library is used to store related information of the resource and the resource, Relevant information is used for users to identify and obtain resources;
  • receiving and providing relevant information to the user including:
  • the related information is displayed in the interface of the input program, including:
  • the related information is displayed in a neighboring area of the candidate word generated by the input program according to the at least one search character, the related information including at least the name of the resource and the address of the resource.
  • the method further includes:
  • the related information includes the address of the resource, detecting whether the first operation instruction generated by the user trigger address is received;
  • the server When receiving the first operation instruction, the server sends a resource acquisition request carrying an address, and the resource request is used to request a resource from the server.
  • the method further includes:
  • the at least one search character is updated with the name of the resource.
  • the method further includes:
  • the related information of the at least two resources When the related information of the at least two resources is received, the related information of the sorted resources is received, and the related information is sequentially displayed in the order of sorting, and the order of the sorting is the server according to the name of each resource and at least one search character.
  • the matching degree is sorted from high to low in order of the relevant information.
  • the method further includes:
  • the server is configured to select a resource library corresponding to the identifier from the at least one resource library, and select related information matching the at least one search character in the selected resource library.
  • a resource search method for a server, the method comprising:
  • the resource library is used to store related information of the resource and the resource, and the related information is used for the user to identify and acquire the resource;
  • the relevant information is sent to the input program, which is used to provide relevant information to the user.
  • selecting information about a resource that matches at least one search character from the repository including:
  • the method further includes:
  • the resource library corresponding to other applications belonging to the same application as the application is determined according to the identifier
  • Relevant information matching at least one search character is selected in the determined resource library.
  • the method further includes:
  • the resource library is a resource library corresponding to the application that calls the input program
  • the resource is sent to the application that calls the input program
  • the resource library is the resource library corresponding to the other application
  • the resource is sent to other applications.
  • the relevant information is sent to the input program, including:
  • each piece of related information is sorted according to the matching degree of each resource name and at least one search character from high to low;
  • Each piece of related information is sent to the input program in sort order.
  • a resource search apparatus for inputting a program, the apparatus comprising:
  • a receiving module configured to receive at least one search character input by a user when the input program is called by an application running in the foreground in the terminal;
  • the first sending module is configured to send, to the server, at least one search character received by the receiving module, and the server is configured to select related information of the resource that matches the at least one search character from the resource library, and send the related information to the input program
  • the resource library is used to store related information of resources and resources, and the related information is used for the user to identify and acquire resources;
  • a module is provided that is configured to receive and provide relevant information to the user.
  • a module including:
  • a receiving submodule configured to receive related information
  • the display submodule is configured to display related information received by the receiving submodule in an interface of the input program.
  • the display submodule is also configured to:
  • the related information is displayed in a neighboring area of the candidate word generated by the input program according to the at least one search character, the related information including at least the name of the resource and the address of the resource.
  • the device further includes:
  • the first detecting module is configured to: when the related information includes an address of the resource, detect whether the first operation instruction generated by the user trigger address is received;
  • the second sending module is configured to: when the first detecting module detects that the first operation instruction is received, send a resource acquisition request carrying an address to the server, where the resource request is used to request a resource from the server.
  • the device further includes:
  • a second detecting module configured to: when an input control is further displayed in the display area of the related information, detecting whether a second operation instruction generated by the user triggering the input control is received;
  • the character update module is configured to update the at least one search character with the name of the resource when the second detection module detects that the second operation instruction is received.
  • the display sub-module is further configured to: when receiving the related information of the at least two resources, receive the related information of the sorted resources, and sequentially display the related information in a sorted order, and the order of the sorting is
  • the server sorts each piece of related information according to the matching degree of each resource name and at least one search character from high to low.
  • the device further includes:
  • An acquisition module configured to obtain an identifier of an application that invokes the input program
  • the third sending module is configured to send the identifier acquired by the acquiring module to the server, where the server is configured to select a resource library corresponding to the identifier from the at least one resource library, and select a correlation matching the at least one search character in the selected resource library. information.
  • a resource search apparatus for use in a server, the apparatus comprising:
  • a receiving module configured to receive at least one search character sent by the input program, the at least one search character being received by the input program being called by an application running in the foreground of the terminal;
  • a first selection module configured to select, from the resource library, related information of a resource that matches at least one search character received by the receiving module, where the resource library is used to store related information of resources and resources, and the related information is used for user identification and acquisition.
  • the first sending module is configured to send related information selected by the first selecting module to the input program, and the input program is configured to provide related information to the user.
  • the first selection module includes:
  • a receiving submodule configured to receive an identifier of an application that calls the input program sent by the input program
  • a first selection submodule configured to select, from the at least one resource library, a resource library corresponding to the identifier received by the receiving submodule
  • the second selection submodule is configured to select related information matching the search character in the resource library selected by the first selection submodule.
  • the device further includes:
  • a first determining module configured to: when there is no related information matching the search character in the selected resource library, determine, according to the identifier, a resource library corresponding to another application that belongs to the same type of the application;
  • a second selection module configured to select related information that matches the search character in the resource pool determined by the first determining module.
  • the device further includes:
  • the detecting module is configured to detect whether a resource acquisition request sent by the input program is received, where the resource acquisition request is generated after the user of the input program triggers the address of the resource displayed in the interface of the input program, and the resource acquisition request is used to request the server Resource
  • a second determining module configured to: when the detecting module detects that the resource obtaining request is received, determine a resource pool corresponding to the address;
  • a second sending module configured to: when the resource library determined by the second determining module is a resource library corresponding to the application that calls the input program, send a resource to an application that calls the input program; when the resource library is a resource corresponding to another application When the library is used, resources are sent to other applications.
  • the first sending module includes:
  • the sorting sub-module is configured to sort the related information according to the matching degree of the name of each resource and the matching degree of the at least one search character from high to low when the related information of the at least two resources is selected;
  • the sending submodule is configured to send each piece of related information to the input program according to the sorting order of the sorting submodules.
  • a resource search apparatus comprising:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the server is configured to select related information of the resource matching the at least one search character from the resource library, and send the related information to the input program, where the resource library is used to store related information of the resource and the resource, Relevant information is used for users to identify and obtain resources;
  • a resource search apparatus comprising:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the resource library is used to store related information of the resource and the resource, and the related information is used for the user to identify and acquire the resource;
  • the relevant information is sent to the input program, which is used to provide relevant information to the user.
  • the server selects related information of the resource matching the at least one search character from the resource library; receiving and providing the relevant information to the user Information, so that when searching for resources, users do not have to enter the full name of the resource to be searched in the search bar of the application. Only need to input at least one search character, it is possible to find the resource that needs to be searched, and solve the problem that the user needs in the application. Enter the full name of the resource in the search bar, and the server will send the resource matching the name to the application, resulting in a problem that the resource search efficiency is not high, and the effect of improving resource search efficiency is achieved.
  • the user can conveniently operate the related information.
  • the server does not have to search for the related information of the resource in all the resource libraries, but selects the resource corresponding to the identifier from the at least one resource library.
  • the library selects related information matching the search character from the selected resource library, and reduces resources consumed by the server when searching for related information matching the search character.
  • the resources matching the search characters are sorted by the server according to the matching degree, and the input program is sorted according to the order.
  • the order displays the related information. The more the match with the search character, the greater the probability that the resource is the resource searched by the user. Therefore, the accuracy of displaying the related information can be improved by preferentially displaying the related information of the resource with high matching degree.
  • the resource library corresponding to other applications belonging to the same type as the application is determined according to the identifier; and the search character is selected in the determined resource library.
  • the related information enables the resource library corresponding to other applications of the same type to be searched when the resource corresponding to the user search does not exist in the resource library corresponding to the application calling the input program, and the resource library corresponding to the application calling the input program is solved.
  • the server cannot find the related information of the resource, and the cross-platform search resource is achieved, thereby providing more resources for the user.
  • FIG. 1 is a system structural diagram of a resource search method according to an exemplary embodiment.
  • FIG. 2 is a flowchart of a resource search method according to an exemplary embodiment.
  • FIG. 3A is a flowchart of a resource search method according to another exemplary embodiment.
  • FIG. 3B is a schematic diagram showing an input program displaying related information according to another exemplary embodiment.
  • FIG. 3C is a schematic diagram showing another input program displaying related information according to another exemplary embodiment.
  • FIG. 4 is a block diagram of a resource search apparatus according to an exemplary embodiment.
  • FIG. 5 is a block diagram of a resource search apparatus according to another exemplary embodiment.
  • FIG. 6 is a block diagram of a resource search apparatus according to an exemplary embodiment.
  • FIG. 7 is a block diagram of a resource search apparatus according to another exemplary embodiment.
  • FIG. 8 is a block diagram of an apparatus for resource search, according to an exemplary embodiment.
  • FIG. 9 is a block diagram of an apparatus for resource search, according to an exemplary embodiment.
  • FIG. 1 is a system structural diagram of a resource search according to an exemplary embodiment, as shown in FIG. 1, the system includes a terminal 110 and a server 120;
  • An input program is installed in the terminal 110, and the input program is used for the user to input characters in the terminal 110.
  • the terminal 110 can be a mobile phone, a tablet device, a PC (personal computer), etc., and an input program is installed.
  • the device in this order is not limited in this embodiment.
  • the server 120 communicates with the terminal 110 through a communication network, and the communication network may be a wireless network or a wired network, which is not limited in this embodiment.
  • FIG. 2 is a flowchart of a resource search method applied to the resource search system according to an exemplary embodiment. As shown in FIG. 2, the resource search method includes the following steps:
  • step 201 when the input program is called by an application running in the foreground in the terminal, the input program receives at least one search character input by the user.
  • step 202 the input program sends at least one search character to the server.
  • step 203 the server receives at least one search character sent by the input program.
  • step 204 the server selects information related to the resource that matches at least one search character from the repository.
  • the resource library is used to store related information of resources and resources, and the related information is used for the user to identify and acquire resources.
  • step 205 the server sends the relevant information to the input program.
  • step 206 the input program receives and provides relevant information to the user.
  • the step 201, the step 202, and the step 206 are separately implemented as the method embodiment on the input side of the program, and the step 203 to the step 205 are separately implemented as the method embodiment on the server side, which is not limited in this embodiment.
  • the resource search method receives at least one search character input by a user when the input program is called by an application running in the foreground in the terminal; the server selects from the resource library to match the at least one search character.
  • Information about the resources receiving and providing the relevant information to the user, so that when searching for resources, the user does not have to input the full name of the resource to be searched in the search bar of the application, and only needs to input at least one search character, and may find
  • the resource that needs to be searched solves the problem that the user needs to input the full name of the resource in the search bar of the application, and the server will send the resource matching the name to the application, thereby causing the problem that the resource search efficiency is not high. Achieve the effect of improving resource search efficiency.
  • FIG. 3A is a flowchart of a resource search method, which is applied to a terminal. As shown in FIG. 3A, the resource search method includes the following steps:
  • step 301 when the input program is called by an application running in the foreground in the terminal, the input program receives at least one search character input by the user.
  • the application When a user searches for a resource through an application in the terminal, the application needs to be opened first, so that the application runs in the foreground, and then a trigger operation is performed in the search box of the application, and after the application receives the trigger operation, the application knows the The user needs to perform a resource search. At this time, the input program is invoked, and the user can input at least one search character through the input program, and correspondingly, the input program receives the at least one search character.
  • the user may not perform the triggering operation, and the application directly invokes the input program, and the user inputs at least one search character through the input program, which is not limited in this embodiment.
  • the input program is a program installed in the terminal for the user to input characters in the terminal, and may be an input method.
  • the input program provides at least two input modes, such as a 9-key digital mode and a 26-key alphabetic mode, which are not limited in this embodiment.
  • Search characters are used to generate search words or to search for words.
  • the search character is in the form of a number; when the input mode of the input program is 26-key mode, the search character is in the form of a letter.
  • the user needs to search for an application in the application store, and after opening the application store, perform a click operation in the search box of the application store.
  • the application store calls the input program, and the input mode of the user setting input program is 9-key digital mode.
  • the at least one search character input by the user is at least one number, and the input program receives the at least one number.
  • step 302 the input program obtains an identification of the application that invoked the input program.
  • the identifier of the application is used to uniquely identify the application.
  • the identifier may be the package name of the application, which is not limited in this embodiment.
  • This step may be performed before step 301, or may be performed after step 301, and may also be performed simultaneously with step 301.
  • This embodiment does not limit the acquisition timing of the identifier of the application.
  • step 303 the input program sends at least one search character to the server.
  • step 304 the input program sends an identification to the server.
  • This step may be performed before step 303, or may be performed after step 303, and may be performed simultaneously with step 303, which is not limited in this embodiment.
  • step 305 the server receives at least one search character sent by the input program.
  • step 306 the server receives an identification of the application that invoked the input program sent by the input program.
  • This step may be performed before step 305, or may be performed after step 305, and may be performed simultaneously with step 305, which is not limited in this embodiment.
  • step 307 the server selects a resource library corresponding to the identifier from the at least one resource library.
  • the resource library is used to store information about resources and resources, and the related information is used for users to identify and obtain resources.
  • the related information includes at least a name of the resource and an address of the resource, where the address of the resource may include a download address of the resource and an address of the resource library to which the resource belongs, and the download address of the resource is used to provide the user with an entry for downloading the resource, and the resource to which the resource belongs.
  • the address of the library is used to notify the application corresponding to the resource library to which the user resource belongs.
  • the address of the resource is a link of the search result, so that when the user triggers the link, the browser displays the search result in the current display interface.
  • the related information may also include an icon of the resource, a size of the resource, and the like, which are not limited in this embodiment.
  • the server After the server receives the at least one search character, in a possible implementation manner, the server stores at least one resource library, and after receiving the at least one search character, the server searches all the resource pools to match the at least one search character. Information about the resources. At this point, because the server needs to traverse all the resources, the search speed is slow.
  • the corresponding storage of each resource library and the identifier of the application is pre-stored in the server.
  • the resource library corresponding to the identifier of the application is selected according to the correspondence, and the server searches for the related information of the resource matching the at least one search character from the selected resource library.
  • the server only needs to traverse a resource library, which improves the speed of searching for resources.
  • the corresponding relationship prestored in the server is as shown in the following table 1. If the identifier of the application received by the server is xxshangdian1, the information about the resource matching the search character is selected in the resource library 1. At this time, the server does not have to be in all resources. Selecting relevant information in the library improves the speed of searching for resources.
  • step 308 the server selects relevant information that matches at least one search character in the selected resource library.
  • the name of the stored resource is encoded in the form of the search character in advance, that is, when the search character is in the form of a number, the name of the resource is used.
  • the encoding is performed according to the input order of the 9-key digital method; when the search character is in the form of a letter, the name of the resource is encoded in the input order of the 26-key letter.
  • the server selects, in the selected resource library, the encoded related information whose prefix matches at least one search character.
  • the server selects the related information of the resource in the resource library 1
  • the search character received by the server is the number 9, and the name of the resource in the resource library 1 is encoded according to the input order of the 9-key digital mode, if there is an encoding For the resource of "934x", the resource "microx" is used as information related to the resource matching with 9.
  • the server may also encode the name of the resource according to the foregoing two methods before receiving the at least one search character.
  • the server may directly in the resource library without going through the encoding process.
  • the information about the resource matching the at least one search character is selected to improve the efficiency of the resource search. This embodiment does not limit the timing at which the server encodes the related information of the resource.
  • the resource library corresponding to other applications belonging to the same application is determined according to the identifier; and at least one selected in the determined resource library Search for relevant information that matches the characters.
  • the application corresponding to the identifier received by the server is xxshangdian 1
  • the related information of the resource matching the at least one search character is selected in the resource library 1, if in the resource library 1
  • the server determines, according to the identifier, a resource library corresponding to the application xxshangdian 2 of the same type, that is, the resource library 2, and at this time, the server from the resource library 2 select relevant information that matches at least one search character.
  • the resources searched by the server are no longer limited to the call. Entering the resource library corresponding to the application of the program increases the scope of resource search, thereby increasing the success rate of resource search.
  • step 309 when the related information of at least two resources is selected, the server sorts the pieces of related information according to the matching degree of the names of the respective resources and the at least one search character from high to low.
  • the matching degree may be a search heat or a downloading heat of the resource, which is not limited in this embodiment.
  • step 310 the server sends each piece of related information to the input program in a sorted order.
  • the server sorts the related information in descending order of the matching degree of each resource with the at least one search character, and The related information is sent to the input program according to the sorting order, so that the input program preferentially receives the related information of the resource with high matching degree among the resources matching the search character, thereby improving the resource corresponding to the related information received by the input program is the user.
  • step 311 when receiving the related information of the at least two resources, the input program receives the related information of the sorted resources, sequentially displays the pieces of related information in the sorted order, and displays the related information in the input program according to at least An adjacent region of a candidate word generated by a search character.
  • the input mode set by the user is a 9-key digital mode, and after the application program 30 calls the input program, the number 2 is input through the input program, and the input panel is input above the input panel.
  • the candidate word 31 corresponding to the number 2 appears, and the related information received by the input program is the name of the resource "defense xx2, defend xx" 32, the icon 33 of the resource, the download address 34 of the resource, and the address 35 of the resource library to which the resource belongs.
  • the above related information is displayed in the area near the candidate.
  • the related information display order is: the icon of the resource, the name of the resource, and the related information is displayed on the candidate word list as an example for example.
  • the display order of the related information is not in this embodiment.
  • the positional relationship between the related information and the list of candidate words is defined.
  • an input control is further displayed in the display area of the related information, detecting whether a second operation instruction generated by the user triggering the input control is received; when receiving the second operation instruction, updating the at least one search by using the name of the resource character.
  • the second operation instruction is for instructing the input program to input the name of the resource into the search bar of the application calling the input program, and the search bar includes at least one search character.
  • the input program displays the related information as shown in FIG. 3C, and the input control 36 is also displayed in the display area of the related information.
  • the search character 2 in the search bar is replaced with the name of the resource. Defend xx2".
  • the terminal jumps to another application to download the resource. If the other application is not installed in the terminal, The terminal needs to download the other application first, and then jump to the other application to download the resource.
  • an input control may be set in the display area of the related information. If the user triggers the input control, the input program inputs the name of the resource into the search bar. At this time, the server searches for the resource in the resource library corresponding to the application. .
  • at least one search character can be updated by using the name of the resource, instead of inputting the name of the complete resource and then inputting it into the search bar, the input efficiency can be improved.
  • step 312 when the related information includes the address of the resource, the input program detects whether the first operation instruction generated by the user trigger address is received.
  • the first operation instruction is used to instruct the input program to generate a resource acquisition request, and the resource acquisition request is used to request a resource from the server.
  • the input program detects whether the first operation command generated by the user triggering the download address 34 is received.
  • step 313 when receiving the first operation instruction, the input program sends a resource acquisition request carrying the address to the server.
  • the input program receives the first operation instruction, the user needs to download the resource corresponding to the displayed related information. At this time, the input program sends a resource acquisition request carrying the address to the server.
  • the user triggers the download address 34 of the resource
  • the input program receives the first operation instruction
  • step 314 the server detects whether a resource acquisition request sent by the input program is received.
  • step 315 when the resource library is a resource library corresponding to the application calling the input program, the server sends the resource to the application that calls the input program; when the resource library is the resource library corresponding to the other application, the server sends the resource to the other application. Send resources.
  • the server detects that the resource acquisition request sent by the input program is received, the resource is sent to the application corresponding to the resource library according to the download address and the address of the resource library to which the resource belongs.
  • the sending according to the download address and the address of the resource library to which the resource belongs, the resource to the application corresponding to the resource library, including:
  • the server sends the resource to the application that invoked the input program.
  • the application that called the input program receives the resource.
  • the address 35 of the resource library indicates the application 30, and at this time, the application 30 receives the resource transmitted by the server.
  • the server sends resources to other applications. at this time, The terminal launches and jumps to another application indicated by the address of the repository, which receives the resources sent by the server.
  • the address 35 of the resource library indicates that the application 30 is not in use.
  • the terminal starts and jumps to another application indicated by the address 35 of the resource library.
  • Other applications receive resources sent by the server.
  • Step 301 to step 304, and step 311 to step 313 can be separately implemented as an input method side method embodiment; steps 305 to 310, and steps 314 and 315 can be separately implemented as a server side method embodiment, The embodiment is not limited.
  • the resource search method receives at least one search character input by a user when the input program is called by an application running in the foreground in the terminal; the server selects from the resource library to match the at least one search character.
  • Information about the resources receiving and providing the relevant information to the user, so that when searching for resources, the user does not have to input the full name of the resource to be searched in the search bar of the application, and only needs to input at least one search character, and may find
  • the resource that needs to be searched solves the problem that the user needs to input the full name of the resource in the search bar of the application, and the server will send the resource matching the name to the application, thereby causing the problem that the resource search efficiency is not high. Achieve the effect of improving resource search efficiency.
  • the user can conveniently operate the related information.
  • the server does not have to search for the related information of the resource in all the resource libraries, but selects the resource corresponding to the identifier from the at least one resource library.
  • the library selects related information matching the search character from the selected resource library, and reduces resources consumed by the server when searching for related information matching the search character.
  • the resources matching the search characters are sorted according to the matching degree by the server, and the input program displays each piece of related information in the sorted order.
  • the more the matching with the search characters the greater the probability that the resource is the resource searched by the user, so The accuracy of displaying related information can be improved by preferentially displaying related information of resources with high matching degree.
  • the resource library corresponding to other applications belonging to the same type as the application is determined according to the identifier; and the search character is selected in the determined resource library.
  • the related information enables the resource library corresponding to other applications of the same type to be searched when the resource corresponding to the user search does not exist in the resource library corresponding to the application calling the input program, and the resource library corresponding to the application calling the input program is solved.
  • the server cannot find the related information of the resource, and the cross-platform search resource is achieved, thereby providing more resources for the user.
  • FIG. 4 is a block diagram of a resource search device, which is applied to an input program, as shown in FIG. 4, the resource search device includes: a receiving module 410, and a first sending module 420, according to an exemplary embodiment.
  • a module 430 is provided.
  • the receiving module 410 is configured to receive at least one search character input by the user when the input program is invoked by an application running in the foreground in the terminal;
  • the first sending module 420 is configured to send, to the server, at least one search character received by the receiving module 410, and the server is configured to select related information of the resource that matches the at least one search character from the resource library, and send the related information to the
  • the resource library is used to store related information of resources and resources, and the related information is used for the user to identify and acquire resources;
  • the providing module 430 is configured to receive and provide relevant information to the user.
  • the resource search apparatus receives at least one search character input by a user when the input program is invoked by an application running in the foreground in the terminal; the server selects from the resource library to match the at least one search character.
  • Information about the resources receiving and providing the relevant information to the user, so that the user does not have to enter the full name of the resource to be searched in the search bar of the application, and only needs to input at least one search character, and may find the resource that needs to be searched. It solves the problem that when the user searches for a resource, the full name of the resource needs to be entered in the search bar of the application, and the server sends the resource matching the name to the application, resulting in a problem that the resource search efficiency is not high. Achieve the effect of improving resource search efficiency.
  • FIG. 5 is a block diagram of a resource search device, which is applied to an input program, as shown in FIG. 5, the resource search device includes: a receiving module 510, a first sending module 520, according to an exemplary embodiment.
  • a module 530 is provided.
  • the receiving module 510 is configured to receive at least one search character input by the user when the input program is invoked by an application running in the foreground in the terminal;
  • the first sending module 520 is configured to send at least one search character received by the receiving module 510 to the server, and the server is configured to select related information of the resource that matches the at least one search character from the resource library, and send the related information to the
  • the resource library is used to store related information of resources and resources, and the related information is used for the user to identify and acquire resources;
  • the providing module 530 is configured to receive and provide relevant information to the user.
  • the providing module 530 includes: a receiving submodule 531 and a display submodule 532.
  • the receiving submodule 531 is configured to receive related information
  • the display sub-module 532 is configured to display related information received by the receiving sub-module 531 in an interface of the input program.
  • the display submodule 532 is further configured to:
  • the related information is displayed in a neighboring area of the candidate word generated by the input program according to the at least one search character, the related information including at least the name of the resource and the address of the resource.
  • the device further includes: a first detecting module 540 and a second sending module 550.
  • the first detecting module 540 is configured to detect, when the related information includes an address of the resource, whether the first operation instruction generated by the user trigger address is received;
  • the second sending module 550 is configured to, when the first detecting module 540 detects that the first operation instruction is received, send a resource acquisition request carrying an address to the server, where the resource request is used to request a resource from the server.
  • the device further includes: a second detecting module 560 and a character updating module 570.
  • the second detecting module 560 is configured to display an input control in the display area of the related information, and detect whether a second operation instruction generated by the user triggering the input control is received;
  • the character update module 570 is configured to update the at least one search character with the name of the resource when the second detection module 560 detects that the second operation instruction is received.
  • the display sub-module 532 is further configured to: when receiving the related information of the at least two resources, receive the related information of the sorted resources, and sequentially display the related information in a sorted order, the order of the sorting.
  • the server obtains the related information by sorting the related information according to the matching degree of each resource name and at least one search character from high to low.
  • the device further includes: an obtaining module 580 and a third sending module 590.
  • the obtaining module 580 is configured to acquire an identifier of an application that invokes the input program
  • the third sending module 590 is configured to send the identifier acquired by the obtaining module 580 to the server, and the server is configured to select a resource library corresponding to the identifier from the at least one resource library, and select, in the selected resource library, the at least one search character. Match related information.
  • the resource search apparatus receives at least one search character input by a user when the input program is invoked by an application running in the foreground in the terminal; the server selects from the resource library to match the at least one search character.
  • Information about the resources receiving and providing the relevant information to the user, so that when searching for resources, the user does not have to input the full name of the resource to be searched in the search bar of the application, and only needs to input at least one search character, and may find
  • the resource that needs to be searched solves the problem that the user needs to input the full name of the resource in the search bar of the application, and the server will send the resource matching the name to the application, thereby causing the problem that the resource search efficiency is not high. Achieve the effect of improving resource search efficiency.
  • the user can conveniently operate the related information.
  • the server does not have to search for the related information of the resource in all the resource libraries, but selects the resource corresponding to the identifier from the at least one resource library.
  • the library selects related information matching the search character from the selected resource library, and reduces resources consumed by the server when searching for related information matching the search character.
  • the input program displays each piece of related information in a sorted order by the resources matching the search characters sorted by the matching degree by the server, and the more the matching with the search characters, the greater the probability that the resource is the resource searched by the user. Therefore, the accuracy of displaying related information can be improved by preferentially displaying related information of resources with high matching degree.
  • FIG. 6 is a block diagram of a resource search device, which is applied to a server, as shown in FIG. 6 , the resource search device includes: a receiving module 610, a first selection module 620, The first sending module 630.
  • the receiving module 610 is configured to receive at least one search character sent by the input program, where the at least one search character is received by the input program being called by an application running in the foreground of the terminal;
  • the first selection module 620 is configured to select, from the resource library, related information of resources that match at least one search character received by the receiving module 610, where the resource library is used to store related information of resources and resources, and the related information is used for the user. Identify and obtain resources;
  • the first sending module 630 is configured to send related information selected by the first selecting module 620 to the input program, and the input program is used to provide related information to the user.
  • the resource search apparatus selects, by the server, related information of a resource that matches at least one search character received from a resource library; receives and provides the related information to the user, so that the user does not have to be in the application. Enter the full name of the resource to be searched in the search bar. You only need to enter at least one search character to find the resource that needs to be searched. It solves the problem that the user needs to enter the full name of the resource in the search bar of the application when searching for resources.
  • the server will send the resource matching the name to the application, resulting in a problem that the resource search efficiency is not high, and the effect of improving the resource search efficiency is achieved.
  • FIG. 7 is a block diagram of a resource search device, which is applied to a server, as shown in FIG. 7 , the resource search device includes: a receiving module 710, a first selecting module 720, The first sending module 730.
  • the receiving module 710 is configured to receive at least one search character sent by the input program, where the at least one search character is received by the input program being called by an application running in the foreground of the terminal;
  • the first selection module 720 is configured to select, from the resource library, related information of resources that match at least one search character received by the receiving module 710, where the resource library is used to store related information of resources and resources, and the related information is used for the user. Identify and obtain resources;
  • the first sending module 730 is configured to send related information selected by the first selecting module 720 to the input program, and the input program is used to provide related information to the user.
  • the first selection module 720 includes: a receiving submodule 721, a first selecting submodule 722, and a second selecting submodule 723.
  • the receiving submodule 721 is configured to receive an identifier of an application that calls the input program sent by the input program;
  • the first selection sub-module 722 is configured to select, from the at least one resource library, a resource library corresponding to the identifier received by the receiving sub-module 721;
  • the second selection sub-module 723 is configured to select related information that matches at least one search character in the resource library selected by the first selection module 722.
  • the device further includes: a first determining module 740 and a second selecting module 750.
  • the first determining module 740 is configured to: when there is no related information matching the at least one search character in the selected resource library, determine, according to the identifier, a resource library corresponding to another application that belongs to the same application;
  • the second selection module 750 is configured to select related information that matches at least one search character in the resource pool determined by the first determining module 740.
  • the device further includes: a detecting module 760, a second determining module 770, and a second sending module 780.
  • the detection module 760 is configured to detect whether a resource acquisition request sent by the input program is received, and the resource acquisition request is generated after the user of the input program triggers the address of the resource displayed in the interface of the input program, and the resource acquisition request is used to The server requests the resource;
  • the second determining module 770 is configured to: when the detecting module 760 detects that the resource obtaining request is received, determine a resource pool corresponding to the address;
  • the second sending module 780 is configured to: when the resource library determined by the second determining module 770 is a resource library corresponding to the application that calls the input program, send the resource to the application that calls the input program; when the resource library is another application Send resources to other applications when the corresponding repository is used.
  • the first sending module 730 includes: a sorting submodule 731 and a sending submodule 732.
  • the sorting sub-module 731 is configured to sort the related information according to the matching degree of the name of each resource and the matching degree of the at least one search character from high to low when the related information of the at least two resources is selected;
  • the transmitting sub-module 732 is configured to transmit each piece of related information to the input program in accordance with the sorting order of the sorting sub-module 731.
  • the resource search apparatus selects, by the server, information related to resources that match at least one search character received from the resource pool;
  • the user provides the related information, so that the user does not have to input the full name of the resource to be searched in the search bar of the application when searching for the resource, and only needs to input at least one search character, and may find the resource that needs to be searched, and solve the user's need.
  • the server will send the resource matching the name to the application, resulting in a problem that the resource search efficiency is not high, and the effect of improving resource search efficiency is achieved.
  • the server obtains the identifier of the application that calls the input program by receiving the input program, so that the server does not have to search for the related information of the resource in all the resource libraries, but selects the resource library corresponding to the identifier from at least one resource library, and selects the resource library corresponding to the identifier.
  • the related information matching the search character is selected in the resource library, which reduces the resources consumed by the server when searching for related information matching the search character.
  • the resources matching the search characters are sorted according to the matching degree by the server, and the input program displays each piece of related information in the sorted order.
  • the more the matching with the search characters the greater the probability that the resource is the resource searched by the user, so The accuracy of displaying related information can be improved by preferentially displaying related information of resources with high matching degree.
  • the server determines a resource library corresponding to another application belonging to the same type according to the identifier according to the identifier; and selects the search character in the determined resource library. Matching relevant information, when the resource corresponding to the user search does not exist in the resource library corresponding to the application calling the input program, the resource library corresponding to other applications of the same type may be searched, and the resource corresponding to the application calling the input program is solved.
  • the server cannot find the related information of the resource, and the cross-platform search resource is achieved, thereby providing more resources for the user.
  • An exemplary embodiment of the present disclosure provides a resource search apparatus capable of implementing a resource search method provided by the present disclosure, the resource search apparatus including: a processor, a memory for storing processor executable instructions;
  • processor is configured to:
  • the server is configured to select related information of the resource matching the at least one search character from the resource library, and send the related information to the input program, where the resource library is used to store related information of the resource and the resource, Relevant information is used for users to identify and obtain resources;
  • An exemplary embodiment of the present disclosure provides a resource search apparatus capable of implementing a resource search method provided by the present disclosure, the resource search apparatus including: a processor, a memory for storing processor executable instructions;
  • processor is configured to:
  • the resource library is used to store related information of the resource and the resource, and the related information is used for the user to identify and acquire the resource;
  • the relevant information is sent to the input program, which is used to provide relevant information to the user.
  • FIG. 8 is a block diagram of an apparatus 800 for resource searching, according to an exemplary embodiment.
  • device 800 can include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, And a communication component 816.
  • Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 802 can include one or more processors 818 to execute instructions to perform all or part of the steps described above.
  • processing component 802 can include one or more modules to facilitate interaction between component 802 and other components.
  • processing component 802 can include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
  • Memory 804 is configured to store various types of data to support operation at device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 804 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM Electrically erasable programmable read only memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 806 provides power to various components of device 800.
  • Power component 806 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 800.
  • the multimedia component 808 includes a screen between the device 800 and the user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 810 is configured to output and/or input an audio signal.
  • the audio component 810 includes a microphone (MIC) that is configured to receive an external audio signal when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 804 or transmitted via communication component 816.
  • the audio component 810 also includes a speaker for outputting an audio signal.
  • the I/O interface 812 provides an interface between the processing component 802 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 814 includes one or more sensors for providing device 800 with a status assessment of various aspects.
  • sensor assembly 814 can detect an open/closed state of device 800, relative positioning of components, such as the display and keypad of device 800, and sensor component 814 can also detect a change in position of one component of device 800 or device 800. The presence or absence of user contact with device 800, device 800 orientation or acceleration/deceleration, and temperature variation of device 800.
  • Sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor assembly 814 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices.
  • the device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • communication component 816 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 816 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for execution Method.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable Gate array
  • controller microcontroller, microprocessor or other electronic component implementation for execution Method.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 804 comprising instructions executable by processor 818 of apparatus 800 to perform the above method.
  • the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • FIG. 9 is a block diagram of an apparatus 900 for resource searching, according to an exemplary embodiment.
  • device 900 can be provided as a server.
  • apparatus 900 includes a processing component 922 that further includes one or more processors, and memory resources represented by memory 932 for storing instructions executable by processing component 922, such as an application.
  • An application stored in memory 932 may include one or more modules each corresponding to a set of instructions.
  • processing component 922 is configured to execute instructions to perform the resource search method described above.
  • Device 900 may also include a power supply component 926 configured to perform power management of device 900, a wired or wireless network interface 950 configured to connect device 900 to the network, and an input/output (I/O) interface 958.
  • Device 900 may operate based on an operating system stored in the memory 932, such as Windows Server TM, Mac OS X TM , Unix TM, Linux TM, FreeBSD TM or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

一种资源搜索方法及装置,属于计算机技术领域。所述方法包括:在输入程序被终端中前台运行的应用程序调用时,输入程序接收用户输入的至少一个搜索字符(201);所述输入程序向服务器发送所述至少一个搜索字符(202);所述服务器接收所述输入程序发送的所述至少一个搜索字符(203);所述服务器从资源库中选择与所述至少一个搜索字符相匹配的资源的相关信息(204);所述服务器将所述相关信息发送给所述输入程序(205);所述输入程序接收并向所述用户提供所述相关信息(206)。所述方法使得用户在搜索资源时,只需要输入至少一个搜索字符,就可能找到需要搜索的资源,解决了用户需要在应用程序的搜索栏中输入该资源的完整名称,服务器才会将和该名称匹配的资源发送给该应用程序,从而导致的资源搜索效率不高的问题,达到了提高资源搜索效率的效果。

Description

资源搜索方法及装置
本申请基于申请号为201610274210.9、申请日为2016年4月27日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开涉及计算机领域,特别涉及一种资源搜索方法及装置。
背景技术
用户可以通过终端中的应用程序提供的搜索栏输入字符,搜索该应用程序中的相关资源,如:在应用商店的搜索栏中输入字符搜索应用程序,在音乐应用程序的搜索栏中输入字符搜索音乐,在视频应用程序中输入字符搜索视频等。
发明内容
为解决相关技术中的问题,本公开提供了一种资源搜索方法及装置。
根据本公开实施例的第一方面,提供一种资源搜索方法,用于输入程序中,方法包括:
在输入程序被终端中前台运行的应用程序调用时,接收用户输入的至少一个搜索字符;
向服务器发送至少一个搜索字符,服务器用于从资源库中选择与至少一个搜索字符相匹配的资源的相关信息,并将相关信息发送给输入程序,资源库用于存储资源和资源的相关信息,相关信息用于供用户识别并获取资源;
接收并向用户提供相关信息。
可选的,接收并向用户提供相关信息,包括:
接收相关信息;
将相关信息显示在输入程序的界面中。
可选的,将相关信息显示在输入程序的界面中,包括:
将相关信息显示在输入程序根据至少一个搜索字符生成的候选词的相邻区域,该相关信息至少包括资源的名称和资源的地址。
可选的,该方法还包括:
当相关信息包括资源的地址时,检测是否接收到用户触发地址所生成的第一操作指令;
当接收到第一操作指令时,向服务器发送携带有地址的资源获取请求,资源请求用于向服务器请求资源。
可选的,该方法还包括:
当相关信息的显示区域内还显示有输入控件,检测是否接收到用户触发输入控件所产生的第二操作指令;
当接收到第二操作指令时,利用资源的名称更新至少一个搜索字符。
可选的,该方法还包括:
当接收到至少两个资源的相关信息时,接收排序后的各个资源的相关信息,按照排序的顺序依次显示各条相关信息,该排序的顺序是服务器按照各个资源的名称与至少一个搜索字符的匹配度由高到低的顺序对各条相关信息进行排序得到的。
可选的,该方法还包括:
获取调用输入程序的应用程序的标识;
向服务器发送标识,服务器用于从至少一个资源库中选择标识对应的资源库,并在选择的资源库中选择与至少一个搜索字符相匹配的相关信息。
根据本公开实施例的第二方面,提供一种资源搜索方法,用于服务器中,该方法包括:
接收输入程序发送的至少一个搜索字符,该至少一个搜索字符是输入程序被终端中前台运行的应用程序调用的接收到的;
从资源库中选择与至少一个搜索字符相匹配的资源的相关信息,资源库用于存储资源和资源的相关信息,相关信息用于用户识别并获取资源;
将相关信息发送给输入程序,输入程序用于将相关信息提供给用户。
可选的,从资源库中选择与至少一个搜索字符相匹配的资源的相关信息,包括:
接收输入程序发送的调用输入程序的应用程序的标识;
从至少一个资源库中选择标识对应的资源库;
在选择的资源库中选择与至少一个搜索字符相匹配的相关信息。
可选的,该方法还包括:
当选择的资源库中不存在与至少一个搜索字符相匹配的相关信息时,根据标识确定与应用程序属于同类的其他应用程序对应的资源库;
在确定的资源库中选择与至少一个搜索字符相匹配的相关信息。
可选的,该方法还包括:
检测是否接收到输入程序发送的资源获取请求,资源获取请求是输入程序的用户触发在输入程序的界面中显示的资源的地址后生成的,资源获取请求用于向服务器请求资源;
在接收到资源获取请求时,确定地址对应的资源库;
当资源库是调用输入程序的应用程序对应的资源库时,向调用输入程序的应用程序发送资源;当资源库是其他应用程序对应的资源库时,向其他应用程序发送资源。
可选的,该将相关信息发送给输入程序,包括:
当选择出至少两个资源的相关信息时,按照各个资源的名称与至少一个搜索字符的匹配度由高到低的顺序对各条相关信息进行排序;
按照排序顺序将各条相关信息发送给输入程序。
根据本公开实施例的第三方面,提供一种资源搜索装置,用于输入程序中,该装置包括:
接收模块,被配置为在输入程序被终端中前台运行的应用程序调用时,接收用户输入的至少一个搜索字符;
第一发送模块,被配置为向服务器发送接收模块接收的至少一个搜索字符,服务器用于从资源库中选择与至少一个搜索字符相匹配的资源的相关信息,并将相关信息发送给输入程序,资源库用于存储资源和资源的相关信息,相关信息用于供用户识别并获取资源;
提供模块,被配置为接收并向用户提供相关信息。
可选的,提供模块,包括:
接收子模块,被配置为接收相关信息;
显示子模块,被配置为将接收子模块接收的相关信息显示在输入程序的界面中。
可选的,显示子模块,还被配置为:
将相关信息显示在输入程序根据至少一个搜索字符生成的候选词的相邻区域,该相关信息至少包括资源的名称和资源的地址。
可选的,该装置还包括:
第一检测模块,被配置为当相关信息包括资源的地址时,检测是否接收到用户触发地址所生成的第一操作指令;
第二发送模块,被配置为当第一检测模块检测出接收到第一操作指令时,向服务器发送携带有地址的资源获取请求,资源请求用于向服务器请求资源。
可选的,该装置还包括:
第二检测模块,被配置为当相关信息的显示区域内还显示有输入控件,检测是否接收到用户触发输入控件所产生的第二操作指令;
字符更新模块,被配置为当第二检测模块检测出接收到第二操作指令时,利用资源的名称更新至少一个搜索字符。
可选的,该显示子模块,还被配置为当接收到至少两个资源的相关信息时,接收排序后的各个资源的相关信息,按照排序的顺序依次显示各条相关信息,排序的顺序是服务器按照各个资源的名称与至少一个搜索字符的匹配度由高到低的顺序对各条相关信息进行排序得到的。
可选的,该装置还包括:
获取模块,被配置为获取调用输入程序的应用程序的标识;
第三发送模块,被配置为向服务器发送获取模块获取的标识,服务器用于从至少一个资源库中选择标识对应的资源库,并在选择的资源库中选择与至少一个搜索字符相匹配的相关信息。
根据本公开实施例的第四方面,提供一种资源搜索装置,用于服务器中,所述装置包括:
接收模块,被配置为接收输入程序发送的至少一个搜索字符,该至少一个搜索字符是输入程序被终端中前台运行的应用程序调用的接收到的;
第一选择模块,被配置为从资源库中选择与接收模块接收的至少一个搜索字符相匹配的资源的相关信息,资源库用于存储资源和资源的相关信息,相关信息用于用户识别并获取资源;
第一发送模块,被配置为将第一选择模块选择的相关信息发送给输入程序,输入程序用于将相关信息提供给用户。
可选的,第一选择模块,包括:
接收子模块,被配置为接收输入程序发送的调用输入程序的应用程序的标识;
第一选择子模块,被配置为从至少一个资源库中选择接收子模块接收的标识对应的资源库;
第二选择子模块,被配置为在第一选择子模块选择的资源库中选择与搜索字符相匹配的相关信息。
可选的,该装置还包括:
第一确定模块,被配置为当选择的资源库中不存在与搜索字符相匹配的相关信息时,根据标识确定与应用程序属于同类的其他应用程序对应的资源库;
第二选择模块,被配置为在第一确定模块确定的资源库中选择与搜索字符相匹配的相关信息。
可选的,该装置还包括:
检测模块,被配置为检测是否接收到输入程序发送的资源获取请求,资源获取请求是输入程序的用户触发在输入程序的界面中显示的资源的地址后生成的,资源获取请求用于向服务器请求资源;
第二确定模块,被配置为在检测模块检测出接收到资源获取请求时,确定地址对应的资源库;
第二发送模块,被配置为当第二确定模块确定的资源库是调用输入程序的应用程序对应的资源库时,向调用输入程序的应用程序发送资源;当资源库是其他应用程序对应的资源库时,向其他应用程序发送资源。
可选的,第一发送模块,包括:
排序子模块,被配置为当选择出至少两个资源的相关信息时,按照各个资源的名称与至少一个搜索字符的匹配度由高到低的顺序对各条相关信息进行排序;
发送子模块,被配置为按照排序子模块的排序顺序将各条相关信息发送给输入程序。
根据本公开实施例的第五方面,提供一种资源搜索装置,所述装置包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,处理器被配置为:
在输入程序被终端中前台运行的应用程序调用时,接收用户输入的至少一个搜索字符;
向服务器发送至少一个搜索字符,服务器用于从资源库中选择与至少一个搜索字符相匹配的资源的相关信息,并将相关信息发送给输入程序,资源库用于存储资源和资源的相关信息,相关信息用于供用户识别并获取资源;
接收并向用户提供相关信息。
根据本公开实施例的第六方面,提供一种资源搜索装置,所述装置包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,处理器被配置为:
接收输入程序发送的至少一个搜索字符,该至少一个搜索字符是输入程序被终端中前台运行的应用程序调用的接收到的;
从资源库中选择与至少一个搜索字符相匹配的资源的相关信息,资源库用于存储资源和资源的相关信息,相关信息用于用户识别并获取资源;
将相关信息发送给输入程序,输入程序用于将相关信息提供给用户。
本公开的实施例提供的技术方案可以包括以下有益效果:
通过在输入程序被终端中前台运行的应用程序调用时,接收用户输入的至少一个搜索字符;服务器从资源库中选择与该至少一个搜索字符匹配的资源的相关信息;接收并向用户提供该相关信息,使得用户在搜索资源时,不必在应用程序的搜索栏中输入需要搜索的资源的完整名称,只需要输入至少一个搜索字符,就可能找到需要搜索的资源,解决了用户需要在应用程序的搜索栏中输入该资源的完整名称,服务器才会将和该名称匹配的资源发送给该应用程序,从而导致的资源搜索效率不高的问题,达到了提高资源搜索效率的效果。
另外,通过将相关信息显示在候选词的相邻区域,使得用户可以方便地操作相关信息。
另外,通过获取调用输入程序的应用程序的标识,并将该标识发送给服务器,使得服务器不必在所有的资源库中搜索资源的相关信息,而是从至少一个资源库中选择该标识对应的资源库,从选出的资源库中选择与搜索字符相匹配的相关信息,降低了服务器搜索与该搜索字符相匹配的相关信息时消耗的资源。
另外,通过服务器将与搜索字符相匹配的资源按照匹配度排序,输入程序按照排序后 的顺序显示各条相关信息,由于与搜索字符越匹配,该资源是用户搜索的资源的概率越大,因此,通过优先显示匹配度高的资源的相关信息可以提高显示相关信息的准确性。
另外,当选择的资源库中不存在与搜索字符相匹配的相关信息时,通过根据标识确定与应用程序属于同类的其他应用程序对应的资源库;在确定的资源库中选择与搜索字符相匹配的相关信息,使得调用输入程序的应用程序对应的资源库中不存在用户搜索的资源时,可以搜索同类型的其他应用程序对应的资源库,解决了调用输入程序的应用程序所对应的资源库不存在用户搜索的资源时,服务器查找不到资源的相关信息的问题,达到了跨平台搜索资源,从而为用户提供更多的资源的效果。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本公开说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
图1是根据一示例性实施例示出的一种资源搜索方法的系统结构图。
图2是根据一示例性实施例示出的一种资源搜索方法的流程图。
图3A是根据另一示例性实施例示出的一种资源搜索方法的流程图。
图3B是根据另一示例性实施例示出的一种输入程序显示相关信息的示意图。
图3C是根据另一示例性实施例示出的另一种输入程序显示相关信息的示意图。
图4是根据一示例性实施例示出的一种资源搜索装置的框图。
图5是根据另一示例性实施例示出的一种资源搜索装置的框图。
图6是根据一示例性实施例示出的一种资源搜索装置的框图。
图7是根据另一示例性实施例示出的一种资源搜索装置的框图。
图8是根据一示例性实施例示出的一种用于资源搜索的装置的框图。
图9是根据一示例性实施例示出的一种用于资源搜索的装置的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
图1是根据一示例性实施例示出的一种资源搜索的系统结构图,如图1所示,该系统包括终端110和服务器120;
该终端110中安装有输入程序,该输入程序用于供用户在终端110中输入字符,终端110可以是移动电话,平板设备,PC(personal computer,个人计算机)等安装有输入程 序的设备,本实施例不作限定。
服务器120通过通信网络与终端110进行通信,该通信网络可以为无线网络或者有线网络,本实施例不作限定。
图2是根据一示例性实施例示出的一种资源搜索方法的流程图,该资源搜索方法应用于上述资源搜索系统中,如图2所示,该资源搜索方法包括以下步骤:
在步骤201中,在输入程序被终端中前台运行的应用程序调用时,输入程序接收用户输入的至少一个搜索字符。
在步骤202中,输入程序向服务器发送至少一个搜索字符。
在步骤203中,服务器接收输入程序发送的至少一个搜索字符。
在步骤204中,服务器从资源库中选择与至少一个搜索字符相匹配的资源的相关信息。
其中,资源库用于存储资源和资源的相关信息,相关信息用于供用户识别并获取资源。
在步骤205中,服务器将相关信息发送给输入程序。
在步骤206中,输入程序接收并向用户提供相关信息。
其中,步骤201、步骤202、步骤206可单独实现为输入程序侧的方法实施例,步骤203至步骤205可单独实现为服务器侧的方法实施例,本实施例不作限定。
综上所述,本公开提供的资源搜索方法,通过在输入程序被终端中前台运行的应用程序调用时,接收用户输入的至少一个搜索字符;服务器从资源库中选择与该至少一个搜索字符匹配的资源的相关信息;接收并向用户提供该相关信息,使得用户在搜索资源时,不必在应用程序的搜索栏中输入需要搜索的资源的完整名称,只需要输入至少一个搜索字符,就可能找到需要搜索的资源,解决了用户需要在应用程序的搜索栏中输入该资源的完整名称,服务器才会将和该名称匹配的资源发送给该应用程序,从而导致的资源搜索效率不高的问题,达到了提高资源搜索效率的效果。
图3A是根据另一示例性实施例示出的一种资源搜索方法的流程图,该资源搜索方法应用于终端中,如图3A所示,该资源搜索方法包括以下步骤:
在步骤301中,在输入程序被终端中前台运行的应用程序调用时,输入程序接收用户输入的至少一个搜索字符。
用户通过终端中的应用程序搜索资源时,首先需要打开该应用程序,使得该应用程序在前台运行,然后在该应用程序的搜索框内执行触发操作,应用程序接收到该触发操作后,获知该用户需要进行资源搜索,此时,调用输入程序,用户可以通过该输入程序输入至少一个搜索字符,对应的,输入程序接收该至少一个搜索字符。
可选的,用户在打开应用程序后,也可以不执行触发操作,该应用程序直接调用输入程序,用户通过该输入程序输入至少一个搜索字符,本实施例不作限定。
其中,输入程序为安装在终端中供用户在终端中输入字符的程序,可以是输入法。输入程序至少提供两种输入方式,如9键数字方式和26键字母方式,本实施例不作限定。
搜索字符用于生成搜索字,或搜索单词。当用户设置输入程序的输入方式为9键数字方式时,该搜索字符的形式为数字;当用户设置输入程序的输入方式为26键字母方式时,该搜索字符的形式为字母。
例如:用户需要在应用商店中搜索应用程序,打开应用商店后,在该应用商店的搜索框内执行点击操作,此时,应用商店调用输入程序,用户设置输入程序的输入方式为9键数字方式,此时,用户输入的至少一个搜索字符为至少一个数字,输入程序接收该至少一个数字。
在步骤302中,输入程序获取调用输入程序的应用程序的标识。
应用程序的标识用于唯一地标识该应用程序,在实际实现时,该标识可以为应用程序的包名,本实施例不作限定。
本步骤可以在步骤301之前执行,也可以在步骤301之后执行,还可以与步骤301同时执行,本实施例不对应用程序的标识的获取时机作限定。
在步骤303中,输入程序向服务器发送至少一个搜索字符。
在步骤304中,输入程序向服务器发送标识。
本步骤可以在步骤303之前执行,也可以在步骤303之后执行,还可以和步骤303同时执行,本实施例不作限定。
在步骤305中,服务器接收输入程序发送的至少一个搜索字符。
在步骤306中,服务器接收输入程序发送的调用输入程序的应用程序的标识。
本步骤可以在步骤305之前执行,也可以在步骤305之后执行,还可以和步骤305同时执行,本实施例不作限定。
在步骤307中,服务器从至少一个资源库中选择标识对应的资源库。
资源库用于存储资源和资源的相关信息,相关信息用于供用户识别并获取资源。其中,相关信息至少包括资源的名称和资源的地址,资源的地址可以包括资源的下载地址及资源所属的资源库的地址,资源的下载地址用于向用户提供下载资源的入口,资源所属的资源库的地址用于通知用户资源所属的资源库对应的应用程序。
需要说明的是,若用户在浏览器中搜索资源,此时,该资源的地址为搜索结果的链接,使得用户在触发该链接时,浏览器在当前显示界面中显示搜索结果。
可选的,该相关信息还可以包括资源的图标,资源的大小等,本实施例不作限定。
服务器接收到至少一个搜索字符后,在一种可能的实现方式中,服务器中存储有至少一个资源库,服务器接收到至少一个搜索字符后,在所有的资源库中搜索与该至少一个搜索字符匹配的资源的相关信息。此时,由于服务器需要把所有的资源库都遍历一遍,搜索速度慢。
在另一种可能的实现方式中,服务器中预存各个资源库与应用程序的标识的对应关 系,在接收到应用程序的标识后,根据该对应关系选择该应用程序的标识对应的资源库,服务器从选择的资源库中搜索与至少一个搜索字符相匹配的资源的相关信息。此时,服务器只需要遍历一个资源库,提高了搜索资源的速度。
例如:服务器中预存的对应关系如下表一,服务器接收到的应用程序的标识为xxshangdian1,则在资源库1中选择与搜索字符相匹配的资源的相关信息,此时,服务器不必在所有的资源库中选择相关信息,提高了搜索资源的速度。
表一
应用程序的标识 资源库
xxshangdian1 资源库1
xxshangdian2 资源库2
xxshipin 资源库3
xxyinyue 资源库4
xxliulanqi 资源库5
在步骤308中,服务器在选择的资源库中选择与至少一个搜索字符相匹配的相关信息。
服务器在选择的资源库中选择与至少一个搜索字符相匹配的相关信息之前,预先将存储的资源的名称按照搜索字符的形式进行编码,也即,搜索字符的形式为数字时,将资源的名称按照9键数字方式的输入顺序进行编码;搜索字符的形式为字母时,将资源的名称按照26键字母方式的输入顺序进行编码。服务器在选择的资源库中选择前缀与至少一个搜索字符相匹配的编码后的相关信息。
例如:服务器在资源库1中选择资源的相关信息时,服务器接收到的搜索字符为数字9,则将该资源库1中的资源的名称按照9键数字方式的输入顺序进行编码,若存在编码为“934x”的资源,则将该资源“微x”作为与9匹配的资源的相关信息。
可选的,服务器也可以在接收到至少一个搜索字符之前将资源的名称按照上述两种方式进行编码,此时,服务器在接收到至少一个搜索字符后,不必经过编码过程就可以直接在资源库中选择与至少一个搜索字符相匹配的资源的相关信息,提高了资源搜索的效率,本实施例不对服务器将资源的相关信息进行编码的时机作限定。
其中,当服务器选择的资源库中不存在与至少一个搜索字符相匹配的相关信息时,根据标识确定与应用程序属于同类的其他应用程序对应的资源库;在确定的资源库中选择与至少一个搜索字符相匹配的相关信息。
例如:根据上表一所示的对应关系,服务器接收到的标识对应的应用程序为xxshangdian 1,则在资源库1中选择与至少一个搜索字符相匹配的资源的相关信息,若在资源库1中不存在与该至少一个搜索字符相匹配的资源的相关信息,则服务器根据该标识确定同类型的应用程序xxshangdian 2对应的资源库,即资源库2,此时,服务器从资源库 2中选择与至少一个搜索字符相匹配的相关信息。
在本实施例中,当服务器选择的资源库中不存在与至少一个搜索字符相匹配的相关信息时,通过搜索其他同类型的应用程序对应的资源库,使得服务器搜索的资源不再局限于调用输入程序的应用程序对应的资源库,增大了资源搜索的范围,从而增加了资源搜索的成功率。
在步骤309中,当选择出至少两个资源的相关信息时,服务器按照各个资源的名称与至少一个搜索字符的匹配度由高到低的顺序对各条相关信息进行排序。
其中,匹配度可以为搜索热度或资源的下载热度,本实施例不作限定。
在步骤310中,服务器按照排序顺序将各条相关信息发送给输入程序。
由于与搜索字符越匹配,该资源是用户搜索的资源的概率越大,因此,服务器按照各个资源的名称与至少一个搜索字符的匹配度由高到低的顺序对各条相关信息进行排序,并按照排序顺序将各条相关信息发送给输入程序,使得输入程序优先接收到与搜索字符相匹配的资源中匹配程度高的资源的相关信息,从而提高了输入程序接收的相关信息对应的资源是用户需要搜索的资源的概率。
在步骤311中,当接收到至少两个资源的相关信息时,输入程序接收排序后的各个资源的相关信息,按照排序的顺序依次显示各条相关信息,且将相关信息显示在输入程序根据至少一个搜索字符生成的候选词的相邻区域。
请参考图3B所示的输入程序显示相关信息的示意图,用户设置的输入方式为9键数字方式,且在应用程序30调用输入程序后,通过输入程序输入了数字2,输入程序的输入面板上方出现了数字2对应的候选词31,输入程序接收到的相关信息为资源的名称“保卫xx2、保卫xx”32、资源的图标33、资源的下载地址34、资源所属的资源库的地址35,上述相关信息均显示在候选词附近的区域。
本实施例仅以相关信息显示顺序为:资源的图标、资源的名称,且将相关信息显示在候选词列表的上方为例进行举例说明,在实际实现时,本实施例不对相关信息的显示顺序,以及相关信息与候选词列表之间的位置关系作限定。
可选的,当相关信息的显示区域内还显示有输入控件,检测是否接收到用户触发输入控件所产生的第二操作指令;当接收到第二操作指令时,利用资源的名称更新至少一个搜索字符。
该第二操作指令用于指示输入程序将资源的名称输入到调用输入程序的应用程序的搜索栏中,该搜索栏中包括至少一个搜索字符。
例如:如图3C所示的输入程序显示相关信息的示意图,相关信息的显示区域内还显示有输入控件36,用户触发该输入控件后,将搜索栏中的搜索字符2替换为资源的名称“保卫xx2”。
若输入程序显示的资源所属的资源库的地址指示的是其他应用程序,用户在获取该资源时,终端会跳转到其他应用程序中下载资源,若此时终端中没有安装该其他应用程序, 则终端需要先下载该其他应用程序,再跳转到该其他应用程序中下载资源。当其他应用程序中资源不安全时,用户可能并不希望在其他应用程序对应的资源库中下载资源,而是希望在调用输入程序的应用程序对应的资源库中下载资源。此时,可以在相关信息的显示区域内设置输入控件,若用户触发该输入控件,输入程序将该资源的名称输入到搜索栏中,此时,服务器在该应用程序对应的资源库中搜索资源。另外,由于可以利用资源的名称更新至少一个搜索字符,而不要输入完整的资源的名称后再输入到搜索栏中,可以提高输入效率。
在步骤312中,当相关信息包括资源的地址时,输入程序检测是否接收到用户触发地址所生成的第一操作指令。
第一操作指令用于指示输入程序生成资源获取请求,该资源获取请求用于向服务器请求资源。
例如:在图3C所示的输入程序显示相关信息的示意图中,输入程序检测是否接收到用户触发下载地址34所生成的第一操作指令。
在步骤313中,当接收到第一操作指令时,输入程序向服务器发送携带有地址的资源获取请求。
若输入程序接收到第一操作指令,说明用户需要下载显示的相关信息对应的资源,此时,输入程序向服务器发送携带地址的资源获取请求。
例如:在图3C所示的输入程序显示相关信息的示意图中,用户触发资源的下载地址34,输入程序接收到第一操作指令,并向服务器发送携带下载地址34和资源库的地址35的资源获取请求。
在步骤314中,服务器检测是否接收到输入程序发送的资源获取请求。
在步骤315中,当资源库是调用输入程序的应用程序对应的资源库时,服务器向调用输入程序的应用程序发送资源;当资源库是其他应用程序对应的资源库时,服务器向其他应用程序发送资源。
若服务器检测出接收到输入程序发送的资源获取请求,根据该下载地址和资源所属的资源库的地址,向该资源库对应的应用程序发送资源。
其中,根据该下载地址和资源所属的资源库的地址,向该资源库对应的应用程序发送资源,包括:
当资源库是调用输入程序的应用程序对应的资源库时,服务器向调用输入程序的应用程序发送资源。此时,调用输入程序的应用程序接收该资源。
例如:在图3C所示的输入程序显示相关信息的示意图中,资源库的地址35指示应用程序30,此时,应用程序30接收服务器发送的资源。
根据该下载地址和资源所属的资源库的地址,向该资源库对应的应用程序发送资源,还包括:
当资源库是其他应用程序对应的资源库时,服务器向其他应用程序发送资源。此时, 终端启动并跳转到资源库的地址指示的其他应用程序,该其他应用程序接收服务器发送的资源。
例如:在图3C所示的输入程序显示相关信息的示意图中,资源库的地址35指示的不是应用程序30,此时,终端启动并跳转到资源库的地址35指示的其他应用程序,该其他应用程序接收服务器发送的资源。
其中,步骤301至步骤304,以及步骤311至步骤313可单独实现为输入程序侧的方法实施例;步骤305至步骤310,以及步骤314和步骤315可单独实现为服务器侧的方法实施例,本实施例不作限定。
综上所述,本公开提供的资源搜索方法,通过在输入程序被终端中前台运行的应用程序调用时,接收用户输入的至少一个搜索字符;服务器从资源库中选择与该至少一个搜索字符匹配的资源的相关信息;接收并向用户提供该相关信息,使得用户在搜索资源时,不必在应用程序的搜索栏中输入需要搜索的资源的完整名称,只需要输入至少一个搜索字符,就可能找到需要搜索的资源,解决了用户需要在应用程序的搜索栏中输入该资源的完整名称,服务器才会将和该名称匹配的资源发送给该应用程序,从而导致的资源搜索效率不高的问题,达到了提高资源搜索效率的效果。
另外,通过将相关信息显示在候选词的相邻区域,使得用户可以方便地操作相关信息。
另外,通过获取调用输入程序的应用程序的标识,并将该标识发送给服务器,使得服务器不必在所有的资源库中搜索资源的相关信息,而是从至少一个资源库中选择该标识对应的资源库,从选出的资源库中选择与搜索字符相匹配的相关信息,降低了服务器搜索与该搜索字符相匹配的相关信息时消耗的资源。
另外,通过服务器将与搜索字符相匹配的资源按照匹配度排序,输入程序按照排序后的顺序显示各条相关信息,由于与搜索字符越匹配,该资源是用户搜索的资源的概率越大,因此,通过优先显示匹配度高的资源的相关信息可以提高显示相关信息的准确性。
另外,当选择的资源库中不存在与搜索字符相匹配的相关信息时,通过根据标识确定与应用程序属于同类的其他应用程序对应的资源库;在确定的资源库中选择与搜索字符相匹配的相关信息,使得调用输入程序的应用程序对应的资源库中不存在用户搜索的资源时,可以搜索同类型的其他应用程序对应的资源库,解决了调用输入程序的应用程序所对应的资源库不存在用户搜索的资源时,服务器查找不到资源的相关信息的问题,达到了跨平台搜索资源,从而为用户提供更多的资源的效果。
图4是根据一示例性实施例示出的一种资源搜索装置的框图,该资源搜索装置应用于输入程序中,如图4所示,该资源搜索装置包括:接收模块410、第一发送模块420、提供模块430。
该接收模块410,被配置为在输入程序被终端中前台运行的应用程序调用时,接收用户输入的至少一个搜索字符;
该第一发送模块420,被配置为向服务器发送接收模块410接收的至少一个搜索字符,服务器用于从资源库中选择与至少一个搜索字符相匹配的资源的相关信息,并将相关信息发送给输入程序,资源库用于存储资源和资源的相关信息,相关信息用于供用户识别并获取资源;
该提供模块430,被配置为接收并向用户提供相关信息。
综上所述,本公开提供的资源搜索装置,通过在输入程序被终端中前台运行的应用程序调用时,接收用户输入的至少一个搜索字符;服务器从资源库中选择与该至少一个搜索字符匹配的资源的相关信息;接收并向用户提供该相关信息,使得用户不必在应用程序的搜索栏中输入需要搜索的资源的完整名称,只需要输入至少一个搜索字符,就可能找到需要搜索的资源,解决了用户在搜索资源时,需要在应用程序的搜索栏中输入该资源的完整名称,服务器才会将和该名称匹配的资源发送给该应用程序,从而导致的资源搜索效率不高的问题,达到了提高资源搜索效率的效果。
图5是根据一示例性实施例示出的一种资源搜索装置的框图,该资源搜索装置应用于输入程序中,如图5所示,该资源搜索装置包括:接收模块510、第一发送模块520、提供模块530。
该接收模块510,被配置为在输入程序被终端中前台运行的应用程序调用时,接收用户输入的至少一个搜索字符;
该第一发送模块520,被配置为向服务器发送接收模块510接收的至少一个搜索字符,服务器用于从资源库中选择与至少一个搜索字符相匹配的资源的相关信息,并将相关信息发送给输入程序,资源库用于存储资源和资源的相关信息,相关信息用于供用户识别并获取资源;
该提供模块530,被配置为接收并向用户提供相关信息。
可选的,提供模块530,包括:接收子模块531、显示子模块532。
该接收子模块531,被配置为接收相关信息;
该显示子模块532,被配置为将接收子模块531接收的相关信息显示在输入程序的界面中。
可选的,显示子模块532,还被配置为:
将相关信息显示在输入程序根据至少一个搜索字符生成的候选词的相邻区域,该相关信息至少包括资源的名称和资源的地址。
可选的,该装置还包括:第一检测模块540、第二发送模块550。
该第一检测模块540,被配置为当相关信息包括资源的地址时,检测是否接收到用户触发地址所生成的第一操作指令;
该第二发送模块550,被配置为当第一检测模块540检测出接收到第一操作指令时,向服务器发送携带有地址的资源获取请求,资源请求用于向服务器请求资源。
可选的,该装置还包括:第二检测模块560、字符更新模块570。
该第二检测模块560,被配置为当相关信息的显示区域内还显示有输入控件,检测是否接收到用户触发输入控件所产生的第二操作指令;
该字符更新模块570,被配置为当第二检测模块560检测出接收到第二操作指令时,利用资源的名称更新至少一个搜索字符。
可选的,该显示子模块532,还被配置为当接收到至少两个资源的相关信息时,接收排序后的各个资源的相关信息,按照排序的顺序依次显示各条相关信息,排序的顺序是服务器按照各个资源的名称与至少一个搜索字符的匹配度由高到低的顺序对各条相关信息进行排序得到的。
可选的,该装置还包括:获取模块580、第三发送模块590。
该获取模块580,被配置为获取调用输入程序的应用程序的标识;
该第三发送模块590,被配置为向服务器发送获取模块580获取的标识,服务器用于从至少一个资源库中选择标识对应的资源库,并在选择的资源库中选择与至少一个搜索字符相匹配的相关信息。
综上所述,本公开提供的资源搜索装置,通过在输入程序被终端中前台运行的应用程序调用时,接收用户输入的至少一个搜索字符;服务器从资源库中选择与该至少一个搜索字符匹配的资源的相关信息;接收并向用户提供该相关信息,使得用户在搜索资源时,不必在应用程序的搜索栏中输入需要搜索的资源的完整名称,只需要输入至少一个搜索字符,就可能找到需要搜索的资源,解决了用户需要在应用程序的搜索栏中输入该资源的完整名称,服务器才会将和该名称匹配的资源发送给该应用程序,从而导致的资源搜索效率不高的问题,达到了提高资源搜索效率的效果。
另外,通过将相关信息显示在候选词的相邻区域,使得用户可以方便地操作相关信息。
另外,通过获取调用输入程序的应用程序的标识,并将该标识发送给服务器,使得服务器不必在所有的资源库中搜索资源的相关信息,而是从至少一个资源库中选择该标识对应的资源库,从选出的资源库中选择与搜索字符相匹配的相关信息,降低了服务器搜索与该搜索字符相匹配的相关信息时消耗的资源。
另外,输入程序通过将服务器按照匹配度排序后的与搜索字符相匹配的资源按照排序后的顺序显示各条相关信息,由于与搜索字符越匹配,该资源是用户搜索的资源的概率越大,因此,通过优先显示匹配度高的资源的相关信息可以提高显示相关信息的准确性。
图6是根据一示例性实施例示出的一种资源搜索装置的框图,该资源搜索装置应用于服务器中,如图6所示,该资源搜索装置包括:接收模块610、第一选择模块620、第一发送模块630。
该接收模块610,被配置为接收输入程序发送的至少一个搜索字符,该至少一个搜索字符是输入程序被终端中前台运行的应用程序调用的接收到的;
该第一选择模块620,被配置为从资源库中选择与接收模块610接收的至少一个搜索字符相匹配的资源的相关信息,资源库用于存储资源和资源的相关信息,相关信息用于用户识别并获取资源;
该第一发送模块630,被配置为将第一选择模块620选择的相关信息发送给输入程序,输入程序用于将相关信息提供给用户。
综上所述,本公开提供的资源搜索装置,通过服务器从资源库中选择与接收的至少一个搜索字符匹配的资源的相关信息;接收并向用户提供该相关信息,使得用户不必在应用程序的搜索栏中输入需要搜索的资源的完整名称,只需要输入至少一个搜索字符,就可能找到需要搜索的资源,解决了用户在搜索资源时,需要在应用程序的搜索栏中输入该资源的完整名称,服务器才会将和该名称匹配的资源发送给该应用程序,从而导致的资源搜索效率不高的问题,达到了提高资源搜索效率的效果。
图7是根据一示例性实施例示出的一种资源搜索装置的框图,该资源搜索装置应用于服务器中,如图7所示,该资源搜索装置包括:接收模块710、第一选择模块720、第一发送模块730。
该接收模块710,被配置为接收输入程序发送的至少一个搜索字符,该至少一个搜索字符是输入程序被终端中前台运行的应用程序调用的接收到的;
该第一选择模块720,被配置为从资源库中选择与接收模块710接收的至少一个搜索字符相匹配的资源的相关信息,资源库用于存储资源和资源的相关信息,相关信息用于用户识别并获取资源;
该第一发送模块730,被配置为将第一选择模块720选择的相关信息发送给输入程序,输入程序用于将相关信息提供给用户。
可选的,第一选择模块720,包括:接收子模块721、第一选择子模块722、第二选择子模块723。
该接收子模块721,被配置为接收输入程序发送的调用输入程序的应用程序的标识;
该第一选择子模块722,被配置为从至少一个资源库中选择接收子模块721接收的标识对应的资源库;
该第二选择子模块723,被配置为在第一选择模块722选择的资源库中选择与至少一个搜索字符相匹配的相关信息。
可选的,该装置还包括:第一确定模块740、第二选择模块750。
该第一确定模块740,被配置为当选择的资源库中不存在与至少一个搜索字符相匹配的相关信息时,根据标识确定与应用程序属于同类的其他应用程序对应的资源库;
该第二选择模块750,被配置为在第一确定模块740确定的资源库中选择与至少一个搜索字符相匹配的相关信息。
可选的,该装置还包括:检测模块760、第二确定模块770、第二发送模块780。
该检测模块760,被配置为检测是否接收到输入程序发送的资源获取请求,资源获取请求是输入程序的用户触发在输入程序的界面中显示的资源的地址后生成的,资源获取请求用于向服务器请求资源;
该第二确定模块770,被配置为在检测模块760检测出接收到资源获取请求时,确定地址对应的资源库;
该第二发送模块780,被配置为当第二确定模块770确定的资源库是调用输入程序的应用程序对应的资源库时,向调用输入程序的应用程序发送资源;当资源库是其他应用程序对应的资源库时,向其他应用程序发送资源。
可选的,第一发送模块730,包括:排序子模块731、发送子模块732。
该排序子模块731,被配置为当选择出至少两个资源的相关信息时,按照各个资源的名称与至少一个搜索字符的匹配度由高到低的顺序对各条相关信息进行排序;
该发送子模块732,被配置为按照排序子模块731的排序顺序将各条相关信息发送给输入程序。
综上所述,本公开提供的资源搜索装置,综上所述,本公开提供的资源搜索装置,通过服务器从资源库中选择与接收的至少一个搜索字符匹配的资源的相关信息;接收并向用户提供该相关信息,使得用户在搜索资源时,不必在应用程序的搜索栏中输入需要搜索的资源的完整名称,只需要输入至少一个搜索字符,就可能找到需要搜索的资源,解决了用户需要在应用程序的搜索栏中输入该资源的完整名称,服务器才会将和该名称匹配的资源发送给该应用程序,从而导致的资源搜索效率不高的问题,达到了提高资源搜索效率的效果。
另外,服务器通过接收输入程序获取调用输入程序的应用程序的标识使得服务器不必在所有的资源库中搜索资源的相关信息,而是从至少一个资源库中选择该标识对应的资源库,从选出的资源库中选择与搜索字符相匹配的相关信息,降低了服务器搜索与该搜索字符相匹配的相关信息时消耗的资源。
另外,通过服务器将与搜索字符相匹配的资源按照匹配度排序,输入程序按照排序后的顺序显示各条相关信息,由于与搜索字符越匹配,该资源是用户搜索的资源的概率越大,因此,通过优先显示匹配度高的资源的相关信息可以提高显示相关信息的准确性。
另外,当选择的资源库中不存在与搜索字符相匹配的相关信息时,服务器通过根据标识确定与应用程序属于同类的其他应用程序对应的资源库;在确定的资源库中选择与搜索字符相匹配的相关信息,使得调用输入程序的应用程序对应的资源库中不存在用户搜索的资源时,可以搜索同类型的其他应用程序对应的资源库,解决了调用输入程序的应用程序所对应的资源库不存在用户搜索的资源时,服务器查找不到资源的相关信息的问题,达到了跨平台搜索资源,从而为用户提供更多的资源的效果。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
本公开一示例性实施例提供了一种资源搜索装置,能够实现本公开提供的资源搜索方法,该资源搜索装置包括:处理器、用于存储处理器可执行指令的存储器;
其中,处理器被配置为:
在输入程序被终端中前台运行的应用程序调用时,接收用户输入的至少一个搜索字符;
向服务器发送至少一个搜索字符,服务器用于从资源库中选择与至少一个搜索字符相匹配的资源的相关信息,并将相关信息发送给输入程序,资源库用于存储资源和资源的相关信息,相关信息用于供用户识别并获取资源;
接收并向用户提供相关信息。
本公开一示例性实施例提供了一种资源搜索装置,能够实现本公开提供的资源搜索方法,该资源搜索装置包括:处理器、用于存储处理器可执行指令的存储器;
其中,处理器被配置为:
接收输入程序发送的至少一个搜索字符,该至少一个搜索字符是输入程序被终端中前台运行的应用程序调用的接收到的;
从资源库中选择与至少一个搜索字符相匹配的资源的相关信息,资源库用于存储资源和资源的相关信息,相关信息用于用户识别并获取资源;
将相关信息发送给输入程序,输入程序用于将相关信息提供给用户。
图8是根据一示例性实施例示出的一种用于资源搜索的装置800的框图。
参照图8,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器818来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。
存储器804被配置为存储各种类型的数据以支持在装置800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件806为装置800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当装置800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到装置800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上 述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器818执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
图9是根据一示例性实施例示出的一种用于资源搜索的装置900的框图。例如,装置900可以被提供为一服务器。参照图9,装置900包括处理组件922,其进一步包括一个或多个处理器,以及由存储器932所代表的存储器资源,用于存储可由处理组件922的执行的指令,例如应用程序。存储器932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件922被配置为执行指令,以执行上述资源搜索方法。
装置900还可以包括一个电源组件926被配置为执行装置900的电源管理,一个有线或无线网络接口950被配置为将装置900连接到网络,和一个输入输出(I/O)接口958。装置900可以操作基于存储在存储器932的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。
本领域技术人员在考虑说明书及实践这里的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (26)

  1. 一种资源搜索方法,其特征在于,用于输入程序中,所述方法包括:
    在所述输入程序被终端中前台运行的应用程序调用时,接收用户输入的至少一个搜索字符;
    向服务器发送所述至少一个搜索字符,所述服务器用于从资源库中选择与所述至少一个搜索字符相匹配的资源的相关信息,并将所述相关信息发送给所述输入程序,所述资源库用于存储所述资源和所述资源的相关信息,所述相关信息用于供所述用户识别并获取所述资源;
    接收并向所述用户提供所述相关信息。
  2. 根据权利要求1所述的方法,其特征在于,所述接收并向所述用户提供所述相关信息,包括:
    接收所述相关信息;
    将所述相关信息显示在所述输入程序的界面中。
  3. 根据权利要求2所述的方法,其特征在于,所述将所述相关信息显示在所述输入程序的界面中,包括:
    将所述相关信息显示在所述输入程序根据所述至少一个搜索字符生成的候选词的相邻区域,所述相关信息至少包括所述资源的名称和所述资源的地址。
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:
    当所述相关信息包括所述资源的地址时,检测是否接收到所述用户触发所述地址所生成的第一操作指令;
    当接收到所述第一操作指令时,向所述服务器发送携带有所述地址的资源获取请求,所述资源请求用于向所述服务器请求所述资源。
  5. 根据权利要求3所述的方法,其特征在于,所述方法还包括:
    当所述相关信息的显示区域内还显示有输入控件,检测是否接收到所述用户触发所述输入控件所产生的第二操作指令;
    当接收到所述第二操作指令时,利用所述资源的名称更新所述至少一个搜索字符。
  6. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    当接收到至少两个资源的相关信息时,接收排序后的各个资源的相关信息,按照排序的顺序依次显示各条相关信息,所述排序的顺序是所述服务器按照各个资源的名称与所述至少一个搜索字符的匹配度由高到低的顺序对各条相关信息进行排序得到的。
  7. 根据权利要求1至6任一所述的方法,其特征在于,所述方法还包括:
    获取调用所述输入程序的应用程序的标识;
    向所述服务器发送所述标识,所述服务器用于从至少一个所述资源库中选择所述标识对应的资源库,并在选择的所述资源库中选择与所述至少一个搜索字符相匹配的所述相关信息。
  8. 一种资源搜索方法,其特征在于,用于服务器中,所述方法包括:
    接收输入程序发送的至少一个搜索字符,所述至少一个搜索字符是所述输入程序被终端中前台运行的应用程序调用的接收到的;
    从资源库中选择与所述至少一个搜索字符相匹配的资源的相关信息,所述资源库用于存储所述资源和所述资源的相关信息,所述相关信息用于所述用户识别并获取所述资源;
    将所述相关信息发送给所述输入程序,所述输入程序用于将所述相关信息提供给所述用户。
  9. 根据权利要求8所述的方法,其特征在于,所述从资源库中选择与所述至少一个搜索字符相匹配的资源的相关信息,包括:
    接收所述输入程序发送的调用所述输入程序的应用程序的标识;
    从至少一个所述资源库中选择所述标识对应的资源库;
    在选择的所述资源库中选择与所述至少一个搜索字符相匹配的所述相关信息。
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:
    当选择的所述资源库中不存在与所述至少一个搜索字符相匹配的所述相关信息时,根据所述标识确定与所述应用程序属于同类的其他应用程序对应的资源库;
    在确定的所述资源库中选择与所述至少一个搜索字符相匹配的所述相关信息。
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:
    检测是否接收到所述输入程序发送的资源获取请求,所述资源获取请求是所述输入程序的用户触发在所述输入程序的界面中显示的所述资源的地址后生成的,所述资源获取请求用于向所述服务器请求所述资源;
    在接收到所述资源获取请求时,确定所述地址对应的资源库;
    当所述资源库是调用所述输入程序的所述应用程序对应的资源库时,向调用所述输入程序的所述应用程序发送所述资源;当所述资源库是所述其他应用程序对应的资源库时,向所述其他应用程序发送所述资源。
  12. 根据权利要求8至11任一所述的方法,其特征在于,所述将所述相关信息发送给所述输入程序,包括:
    当选择出至少两个资源的相关信息时,按照各个资源的名称与所述至少一个搜索字符的匹配度由高到低的顺序对各条相关信息进行排序;
    按照排序顺序将各条相关信息发送给所述输入程序。
  13. 一种资源搜索装置,其特征在于,用于输入程序中,所述装置包括:
    接收模块,被配置为在所述输入程序被终端中前台运行的应用程序调用时,接收用户输入的至少一个搜索字符;
    第一发送模块,被配置为向服务器发送所述接收模块接收的所述至少一个搜索字符,所述服务器用于从资源库中选择与所述至少一个搜索字符相匹配的资源的相关信息,并将所述相关信息发送给所述输入程序,所述资源库用于存储所述资源和所述资源的相关信息,所述相关信息用于供所述用户识别并获取所述资源;
    提供模块,被配置为接收并向所述用户提供所述相关信息。
  14. 根据权利要求13所述的装置,其特征在于,所述提供模块,包括:
    接收子模块,被配置为接收所述相关信息;
    显示子模块,被配置为将所述接收子模块接收的所述相关信息显示在所述输入程序的界面中。
  15. 根据权利要求14所述的装置,其特征在于,所述显示子模块,还被配置为:
    将所述相关信息显示在所述输入程序根据所述至少一个搜索字符生成的候选词的相邻区域,所述相关信息至少包括所述资源的名称和所述资源的地址。
  16. 根据权利要求15所述的装置,其特征在于,所述装置还包括:
    第一检测模块,被配置为当所述相关信息包括所述资源的地址时,检测是否接收到所述用户触发所述地址所生成的第一操作指令;
    第二发送模块,被配置为当所述第一检测模块检测出接收到所述第一操作指令时,向所述服务器发送携带有所述地址的资源获取请求,所述资源请求用于向所述服务器请求所述资源。
  17. 根据权利要求15所述的装置,其特征在于,所述装置还包括:
    第二检测模块,被配置为当所述相关信息的显示区域内还显示有输入控件,检测是否接收到所述用户触发所述输入控件所产生的第二操作指令;
    字符更新模块,被配置为当所述第二检测模块检测出接收到所述第二操作指令时,利 用所述资源的名称更新所述至少一个搜索字符。
  18. 根据权利要求14所述的装置,其特征在于,所述显示子模块,还被配置为:
    当接收到至少两个资源的相关信息时,接收排序后的各个资源的相关信息,按照排序的顺序依次显示各条相关信息,所述排序的顺序是所述服务器按照各个资源的名称与所述至少一个搜索字符的匹配度由高到低的顺序对各条相关信息进行排序得到的。
  19. 根据权利要求13至18任一所述的装置,其特征在于,所述装置还包括:
    获取模块,被配置为获取调用所述输入程序的应用程序的标识;
    第三发送模块,被配置为向所述服务器发送所述获取模块获取的所述标识,所述服务器用于从至少一个所述资源库中选择所述标识对应的资源库,并在选择的所述资源库中选择与所述至少一个搜索字符相匹配的所述相关信息。
  20. 一种资源搜索装置,其特征在于,用于服务器中,所述装置包括:
    接收模块,被配置为接收输入程序发送的至少一个搜索字符,所述至少一个搜索字符是所述输入程序被终端中前台运行的应用程序调用的接收到的;
    第一选择模块,被配置为从资源库中选择与所述接收模块接收的所述至少一个搜索字符相匹配的资源的相关信息,所述资源库用于存储所述资源和所述资源的相关信息,所述相关信息用于所述用户识别并获取所述资源;
    第一发送模块,被配置为将所述第一选择模块选择的所述相关信息发送给所述输入程序,所述输入程序用于将所述相关信息提供给所述用户。
  21. 根据权利要求20所述的装置,其特征在于,所述第一选择模块,包括:
    接收子模块,被配置为接收所述输入程序发送的调用所述输入程序的应用程序的标识;
    第一选择子模块,被配置为从至少一个所述资源库中选择所述接收子模块接收的所述标识对应的资源库;
    第二选择子模块,被配置为在所述第一选择子模块选择的所述资源库中选择与所述至少一个搜索字符相匹配的所述相关信息。
  22. 根据权利要求21所述的装置,其特征在于,所述装置还包括:
    第一确定模块,被配置为当选择的所述资源库中不存在与所述至少一个搜索字符相匹配的所述相关信息时,根据所述标识确定与所述应用程序属于同类的其他应用程序对应的资源库;
    第二选择模块,被配置为在所述第一确定模块确定的所述资源库中选择与所述至少一 个搜索字符相匹配的所述相关信息。
  23. 根据权利要求22所述的装置,其特征在于,所述装置还包括:
    检测模块,被配置为检测是否接收到所述输入程序发送的资源获取请求,所述资源获取请求是所述输入程序的用户触发在所述输入程序的界面中显示的所述资源的地址后生成的,所述资源获取请求用于向所述服务器请求所述资源;
    第二确定模块,被配置为在所述检测模块检测出接收到所述资源获取请求时,确定所述地址对应的资源库;
    第二发送模块,被配置为当所述第二确定模块确定的所述资源库是调用所述输入程序的所述应用程序对应的资源库时,向调用所述输入程序的所述应用程序发送所述资源;当所述资源库是所述其他应用程序对应的资源库时,向所述其他应用程序发送所述资源。
  24. 根据权利要求20至23任一所述的装置,其特征在于,所述第一发送模块,包括:
    排序子模块,被配置为当选择出至少两个资源的相关信息时,按照各个资源的名称与所述至少一个搜索字符的匹配度由高到低的顺序对各条相关信息进行排序;
    发送子模块,被配置为按照所述排序子模块的排序顺序将各条相关信息发送给所述输入程序。
  25. 一种资源搜索装置,其特征在于,所述装置包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    在所述输入程序被终端中前台运行的应用程序调用时,接收用户输入的至少一个搜索字符;
    向服务器发送所述至少一个搜索字符,所述服务器用于从资源库中选择与所述至少一个搜索字符相匹配的资源的相关信息,并将所述相关信息发送给所述输入程序,所述资源库用于存储所述资源和所述资源的相关信息,所述相关信息用于供所述用户识别并获取所述资源;
    接收并向所述用户提供所述相关信息。
  26. 一种资源搜索装置,其特征在于,所述装置包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    接收输入程序发送的至少一个搜索字符,所述至少一个搜索字符是所述输入程序被终 端中前台运行的应用程序调用的接收到的;
    从资源库中选择与所述至少一个搜索字符相匹配的资源的相关信息,所述资源库用于存储所述资源和所述资源的相关信息,所述相关信息用于所述用户识别并获取所述资源;
    将所述相关信息发送给所述输入程序,所述输入程序用于将所述相关信息提供给所述用户。
PCT/CN2016/095809 2016-04-27 2016-08-18 资源搜索方法及装置 WO2017185567A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
KR1020167027553A KR101926736B1 (ko) 2016-04-27 2016-08-18 자원 검색 방법, 장치, 프로그램 및 기록매체
JP2016562873A JP6456403B2 (ja) 2016-04-27 2016-08-18 資源検索方法、装置、プログラム、及び記録媒体
RU2017104508A RU2663707C1 (ru) 2016-04-27 2016-08-18 Способ и устройство для поиска ресурсов

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610274210.9A CN105956067B (zh) 2016-04-27 2016-04-27 资源搜索方法及装置
CN201610274210.9 2016-04-27

Publications (1)

Publication Number Publication Date
WO2017185567A1 true WO2017185567A1 (zh) 2017-11-02

Family

ID=56915703

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/095809 WO2017185567A1 (zh) 2016-04-27 2016-08-18 资源搜索方法及装置

Country Status (7)

Country Link
US (1) US20170316011A1 (zh)
EP (1) EP3239858A1 (zh)
JP (1) JP6456403B2 (zh)
KR (1) KR101926736B1 (zh)
CN (1) CN105956067B (zh)
RU (1) RU2663707C1 (zh)
WO (1) WO2017185567A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122222B (zh) * 2017-04-20 2019-02-19 深圳大普微电子科技有限公司 一种字符串的搜索系统及方法
CN107329743B (zh) * 2017-06-14 2021-09-28 北京小米移动软件有限公司 应用页面的展示方法、装置及存储介质
CN107547911B (zh) * 2017-08-31 2020-04-24 江西博瑞彤芸科技有限公司 一种节目信息搜索方法
US10785340B2 (en) * 2018-01-25 2020-09-22 Operr Technologies, Inc. System and method for a convertible user application
CN110471717B (zh) * 2019-08-21 2022-11-11 金瓜子科技发展(北京)有限公司 一种数据处理方法和装置
CN110658960A (zh) * 2019-09-27 2020-01-07 北京字节跳动网络技术有限公司 消息处理方法、装置和电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071425A (zh) * 2006-10-19 2007-11-14 腾讯科技(深圳)有限公司 一种信息快捷搜索装置、客户端、系统及方法
CN102024063A (zh) * 2011-01-11 2011-04-20 宇龙计算机通信科技(深圳)有限公司 自动搜索方法和移动通信终端
CN102306171A (zh) * 2011-08-22 2012-01-04 百度在线网络技术(北京)有限公司 一种用于提供网络访问建议和网络搜索建议的方法与设备
CN102446109A (zh) * 2011-09-13 2012-05-09 上海量明科技发展有限公司 利用输入法工具安装软件的方法、客户端及系统
US20120246032A1 (en) * 2011-03-21 2012-09-27 Joshua Beroukhim Website, user interfaces, and applications facilitating improved media search capability

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7779011B2 (en) * 2005-08-26 2010-08-17 Veveo, Inc. Method and system for dynamically processing ambiguous, reduced text search queries and highlighting results thereof
CN100565516C (zh) * 2006-12-08 2009-12-02 腾讯科技(深圳)有限公司 一种移动终端进行网络搜索的方法及系统
US7925652B2 (en) * 2007-12-31 2011-04-12 Mastercard International Incorporated Methods and systems for implementing approximate string matching within a database
JP2009239630A (ja) * 2008-03-27 2009-10-15 Toshiba Corp Epgデータ検索システムとepgデータ検索方法
JP5472960B2 (ja) * 2008-06-19 2014-04-16 Necカシオモバイルコミュニケーションズ株式会社 端末装置及びプログラム
US8438148B1 (en) * 2008-09-01 2013-05-07 Google Inc. Method and system for generating search shortcuts and inline auto-complete entries
JP2010146366A (ja) * 2008-12-19 2010-07-01 Toshiba Corp 情報提供サーバ
US10346479B2 (en) * 2010-11-16 2019-07-09 Microsoft Technology Licensing, Llc Facilitating interaction with system level search user interface
CN103793495B (zh) * 2010-12-07 2017-06-16 北京奇虎科技有限公司 应用信息检索方法及系统和应用信息获取方法及系统
CN102591874B (zh) * 2011-01-12 2013-12-25 联想(北京)有限公司 提示方法、终端和服务器
RU2453916C1 (ru) * 2011-05-05 2012-06-20 Игорь Викторович Лебедев Способ поиска информационных ресурсов с использованием переадресаций
CN102955798B (zh) * 2011-08-25 2018-04-17 深圳市世纪光速信息技术有限公司 一种基于搜索引擎的搜索方法及搜索服务器
US9305092B1 (en) * 2012-08-10 2016-04-05 Google Inc. Search query auto-completions based on social graph
US9665615B2 (en) * 2012-10-24 2017-05-30 Microsoft Technology Licensing, Llc Search-as-you-type on a relational database
CN103957460A (zh) * 2014-03-24 2014-07-30 上海聚力传媒技术有限公司 一种用于生成电视接收终端桌面应用的方法与设备
JP5952343B2 (ja) * 2014-06-11 2016-07-13 ヤフー株式会社 検索装置、検索方法及び検索プログラム
US20160098416A1 (en) * 2014-10-03 2016-04-07 Yahoo! Inc. Auto complete search box based on the user's context to reduce user's input

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071425A (zh) * 2006-10-19 2007-11-14 腾讯科技(深圳)有限公司 一种信息快捷搜索装置、客户端、系统及方法
CN102024063A (zh) * 2011-01-11 2011-04-20 宇龙计算机通信科技(深圳)有限公司 自动搜索方法和移动通信终端
US20120246032A1 (en) * 2011-03-21 2012-09-27 Joshua Beroukhim Website, user interfaces, and applications facilitating improved media search capability
CN102306171A (zh) * 2011-08-22 2012-01-04 百度在线网络技术(北京)有限公司 一种用于提供网络访问建议和网络搜索建议的方法与设备
CN102446109A (zh) * 2011-09-13 2012-05-09 上海量明科技发展有限公司 利用输入法工具安装软件的方法、客户端及系统

Also Published As

Publication number Publication date
JP2018519555A (ja) 2018-07-19
RU2663707C1 (ru) 2018-08-08
CN105956067B (zh) 2019-07-05
US20170316011A1 (en) 2017-11-02
KR20170131817A (ko) 2017-11-30
EP3239858A1 (en) 2017-11-01
JP6456403B2 (ja) 2019-01-23
KR101926736B1 (ko) 2019-03-07
CN105956067A (zh) 2016-09-21

Similar Documents

Publication Publication Date Title
US20220303605A1 (en) Method for switching live-streaming rooms and electronic device
US11120078B2 (en) Method and device for video processing, electronic device, and storage medium
WO2017185567A1 (zh) 资源搜索方法及装置
WO2016206292A1 (zh) 文本输入方法和装置
CN108334623B (zh) 歌曲的显示方法、装置和系统
RU2663709C2 (ru) Способ и устройство для обработки информации
CN104462296B (zh) 文件的管理方法、装置及终端
CN105095427A (zh) 搜索推荐方法和装置
WO2017092121A1 (zh) 信息处理的方法及装置
WO2018000710A1 (zh) WiFi信号图标的展示方法、装置和移动终端
US20160314164A1 (en) Methods and devices for sharing cloud-based business card
CN114090575A (zh) 基于键值数据库的数据存储方法、检索方法及相应的装置
CN104951522B (zh) 一种进行搜索的方法和装置
JP2017520877A5 (zh)
CN106960026B (zh) 搜索方法、搜索引擎和电子设备
WO2017092138A1 (zh) 用户信息推送方法及装置
WO2019144724A1 (zh) 一种表情输入方法及装置
EP3460717A1 (en) Method, apparatus, terminal, and computer-readable storage medium for processing fingerprints
CN114051157A (zh) 一种输入方法和装置
CN107315590B (zh) 通知消息处理方法及装置
CN106843860B (zh) 一种调整搜索框的显示样式的方法、装置和系统
EP3432166A1 (en) Information processing method and apparatus, and storage medium
CN112068793A (zh) 一种语音输入方法及装置
WO2017166635A1 (zh) 一种联系人创建方法、装置及移动设备
WO2017173827A1 (zh) 一种搜索方法、装置和设备

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 20167027553

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2016562873

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2017104508

Country of ref document: RU

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16900076

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16900076

Country of ref document: EP

Kind code of ref document: A1