Summary of the invention
In view of this, the shortcomings such as fundamental purpose of the present invention is to provide a kind of expression searching method, expression search open platform, expression search access side and system, and the renewal speed that is used for solving existing expression input mode expression is slow, cost is high, selectable expression classification and quantity are lacked.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of expression searching method, the method comprises:
Expression search open platform provides access interface for the side of access, expression search open platform is carried out the expression search after the access square tube is crossed the expression searching request that described access interface sends receiving, and feeds back the Search Results of expressing one's feelings to access side by described access interface.
Further, described method also comprises: described expression searching request is initiated by the dynamic expression searched page of access side, and described dynamic expression searched page is embedded in the access page of access side;
After described expression search open platform receives described expression searching request, the described expression searched page of assembly unit, and by described access interface described expression searched page is fed back to access side.
Further, when described access orientation during in same area not, described access interface is responsible for processing and is positioned at the not cross-domain access of the access side of same area; And/or when described expression search open platform adopted different character codes from described access side, described access interface was responsible for the conversion between the kinds of characters coding.
Further, described method also comprises: searching for open platform in described expression is the different different configuration files of access side's configuration; Described expression search open platform is the expression Search Results that different access side's feedbacks is suitable for each access side according to described configuration file.
Further, described method also comprises: described expression search open platform provides the acquiescence expression in described expression searched page.
Further, described method also comprises: described expression search open platform is by at least a in access side propelling movement hot category and the popular key word of expression searched page.
Based on the embodiment of the invention on the other hand, the present invention also provides a kind of expression search open platform, comprising:
Interface module is used for feeding back to access side based on the expression searched page that open access interface standard receives the expression searching request and will comprise the Search Results of expressing one's feelings;
Configuration Manager is used for for the different different configuration files of access side's configuration;
Data retrieval module, for the search of expressing one's feelings according to the search key of expression searching request, and the Search Results of will expressing one's feelings sends to page assembling module;
Page assembling module is used for according to access side's configuration file and expression Search Results assembly unit expression searched page.
Further, described expression search open platform also comprises:
The content recommendation administration module is used for arranging or statistical study hot category and/or popular search key word;
Described page assembling module also is used for obtaining hot category and/or popular search key word from described content recommendation administration module, and hot category and/or the popular search key word that obtains is assembled in the expression searched page.
Based on the embodiment of the invention on the other hand, the present invention also provides a kind of expression search access side, comprising:
Access interface, be used for to realize with expression search open platform between mutual, described access interface supports cross-domain access and/or kinds of characters to encode;
The access page is used for embedding dynamic expression searched page;
The expression searched page is used for initiating the expression searching request and presenting the expression Search Results to described expression search open platform based on described access interface.
Based on the embodiment of the invention on the other hand, the present invention also provides a kind of expression search system, the expression search open platform that described expression search system is above-mentioned and above-mentioned expression search access side.
The present invention is by making up expression search open platform, the expression function of search is inner with the website that embedded mode joins each access side, open platform provides customizable expression picture search service by simple, unified interface for the side of access, and the expression picture of user selection is inserted in the corresponding RichTextBox.This open platform is not limited by domain name, can provide service to any website.Access website only need be introduced the line parameter registration of going forward side by side of the client script file of open platform and interface document and can successfully access, thus obtain magnanimity expression that open platform provides, simultaneously improved expression renewal speed, lower and upgrade cost.
Embodiment
The invention provides an expression search open platform, provide expression picture in the mode of real-time search as the user.Access website (or claiming access side) embeds the dynamic expression searched page in the access page, in toolbar corresponding to rich text input frame (Rich Text Box), provide the expression load button, the user opens the expression searched page by clicking the expression load button, in the expression searched page, provide expression function of search and acquiescence expression to show, search for the access interface that open platform provides based on expression, access direction expression search open platform is initiated the expression searching request, and expression search open platform can return the expression picture that searches dynamically according to search key.Expression searched page in the technical solution of the present invention adopts the dynamic page technology, be that the expression searched page that different access side's assembly units meets access side's individual demand feeds back to access side by expression search open platform, can provide the expression picture of magnanimity for user selection, simultaneously, expression picture is classified and key word/keyword is set, can search for to the expression of certain series (series expressions such as search rabbit this or Frog Leon).Need that no longer pure static page is carried out timing and upgrade, well solved the content update cost is higher in the existing scheme problem and optional expression quantity and classification problem on the low side.
For making the purpose, technical solutions and advantages of the present invention clearer, by the following examples and with reference to accompanying drawing, the present invention is described in more detail.
The expression that Fig. 2 provides for the embodiment of the invention is searched for the relation structure diagram of open platform and access side, principle of design of the present invention is that a large amount of, loaded down with trivial details computing is concentrated on the expression search open platform, mode take lightweight provides customizable expression search access as different access sides, described access side is including but not limited to forum, microblogging, blog, mailbox etc., as long as there is the terminal of input expression demand can search for as expression the access side of open platform.
The embodiment of the invention provides a kind of expression searching method, and this expression searching method comprises the steps:
Step 1: set up expression search open platform, the access interface of described expression search open platform is provided for the side of access;
Step 2: the access square tube is crossed described access interface and is initiated the expression searching request and obtain the expression Search Results to described expression search open platform.
Preferably, in the access page of access side, embed dynamic expression searched page, show the expression Search Results by the expression searched page; The expression searched page feeds back to access side by access interface after searching for the open platform assembly unit by expression.
Preferably, because expression search open platform can have different access sides, therefore, described access interface also needs to support the function of cross-domain access and character code conversion.For example, when the access orientation in a plurality of when having the website of different domain names, access interface can be distinguished from the expression searching request of same area not; The character set that adopts when access side and expression search open platform not simultaneously, access interface can be realized accessing square cards for learning characters symbol coding and expression and search for mutual conversion between the open platform character code.
Preferably, in order to satisfy the individual demand of different access sides, described expression search open platform for different access side's configurations different be used for reflection access side customization need matching file, thereby provide the expression that meets access side's individual demand Search Results for different access sides.
Preferably, for the input demand of user friendly expression commonly used, described expression search open platform also is used for providing one group of acquiescence expression, and described acquiescence expression is showed in described expression searched page, directly selects for the user.
Preferably, for user friendly retrieval, described expression search open platform also is used for arranging or statistical study hot category and/or popular search key word, and pass through the expression searched page to access side's propelling movement hot category and/or popular key word, the user can directly initiate searching request to expression search open platform by hot category or the key word connection clicked in the searched page of expressing one's feelings, and does not need in the search box manual inputted search word.
The structural representation of the expression search system that Fig. 3 provides for the embodiment of the invention, this system comprises expression search open platform 320 and expression search access side 310;
Expression search access side 310 is for having the application terminal of expression input demand, and such as the terminal of system of forum, the terminal of blog system etc. is used for realizing the input of expression;
Expression search access side 310 comprises: the access page 311, expression searched page 312, access interface 313; Embed dynamic expression searched page 312 in the described access page 311, expression searched page 312 call access interface 313 realize with expression search open platform between alternately;
The access interface 313 that expression search open platform provides, be used for unified mode realize expressing one's feelings between search access side 310 and the expression search open platform alternately, described access interface is supported the access side that same area not and/or employing kinds of characters are encoded;
The access page 311 is used for embedding dynamic expression searched page, realizes the expression input;
Expression searched page 312 is used for providing the expression search and shows the interface, initiates the expression searching request and obtains the expression Search Results to described expression search open platform based on described access interface 313;
Fig. 4 example the access page and expression searched page show state figure, the access page 311 is a forum page among the figure, the user calls expression searched page 312 by the expression button of clicking above the text input frame.Take JavaScript client dynamic web page technique as example, the access page 311 is introduced the access interface file that adopts JavaScript to write, and carry out the registration that registration Register function is finished each access parameter, described access parameter comprises the position of access square mark, expression searched page and size parameter etc.
Since expression search open platform towards the user from different websites (using different domain names), therefore, access interface 313 also needs to process the cross-domain communication character code different with compatibility.In the preferred embodiment of the present invention, access interface 313 adopts the communication mode realization open platform of JSONP (JSON with Padding) and communicating by letter of client, but utilize the characteristics of script label cross-domain communication among the html, solve the Cross-domain problem of expression search open platform.Because different accesses can be used different character codes, for all kinds of character codes of compatibility, access interface 313 utilizes json (JavaScript Object Notation) to support the characteristic of unicode, transmits returned content in the coded format of the unified unicode of use of access interface layer.
Expression search open platform 320 provides real-time expression function of search based on the access interface 313 of announcing for the side of access, the expression picture that it receives the searching request of access side and meets search condition to access side's feedback.Expression search open platform 320 further comprises:
Interface module 321 is used for receiving the expression searched page that comprises the Search Results of expressing one's feelings of expressing one's feelings searching request and page assembling module being generated based on open access interface standard and feeds back to access side;
Configuration Manager 322 is used for the configuration file for the different reflection side of the access individual demand of different access side's configurations; Because open platform has a large amount of access sides, individual demand between each access side also is not quite similar, therefore, the embodiment of the invention reflects the individual demand of different access sides with configuration file, this module can be carried out unified management to the configuration file of whole platform, comprise configuration item setting, upgrade and the links such as issue.
Data retrieval module 324, for the search of expressing one's feelings according to the search key of expression searching request, and the Search Results of will expressing one's feelings sends to page assembling module; This module is in fact a data retrieval interface, and this module is connected with the data retrieval layer, and the data retrieval layer is set up data directory for after original expression data are carried out the processing such as information extraction, participle, and the data retrieval service is provided to the upper strata.
Page assembling module 323 is used for will feeding back to according to the configuration file of reflection access side individual demand and the expression Search Results assembly unit that obtains the expression searched page of access side.Because expression search open platform communicates with access side by the dynamic page mode, therefore, need to the assembly unit of expression Search Results in dynamic expression searched page, feed back to access side.
Preferably, described expression search open platform 320 also can further comprise:
Content recommendation administration module 325 is used for arranging or statistical study hot category and/or popular search key word, for example: MashiMaro, Frog Leon, China Dolls etc.; This module is connected with the data retrieval layer by interface, and the expression data in the data retrieval layer are arranged and manage.This module also is used for obtaining hot category and/or popular search key word from described content recommendation administration module 325, and hot category and/or the popular search key word that obtains is assembled in the expression searched page, together feeds back to access side with Search Results.
Below take Fig. 4 to Fig. 7 as example, the express one's feelings use procedure of searching method of the present invention is described, the expression searched page among Fig. 4 provides the acquiescence expression, the acquiescence expression is the one group of basis expression bag that is provided by expression search open platform, satisfies the most basic demand of user.The user can click " heat is searched ", " series " or " entertaining " enters the recommendation page, and to click " heat is searched " as example, the expression searched page represents heat and searches the popular keyword of recommending the page, and show state as shown in Figure 5.When the recommendation word " praise " in user's click " heat is searched " page, access side is returned immediately to the searching request of expression search open platform transmission about " praise " keyword, expression search open platform can return to access side with the result for retrieval of keyword " praise ", and the javascript that the access square tube is crossed client carries out page rendering.When mouse streaked picture, the page provided large-sized thumbnail, made things convenient for preview and selection, as shown in Figure 6.When the user clicked the small thumbnails of current selected expression, js can be filled into expression picture in the RichTextBox, and the design sketch after making comments is shown in 7.
The above is preferred embodiment of the present invention only, is not for limiting protection scope of the present invention.