CN104978430A - Data processing method and device - Google Patents
Data processing method and device Download PDFInfo
- Publication number
- CN104978430A CN104978430A CN201510406572.4A CN201510406572A CN104978430A CN 104978430 A CN104978430 A CN 104978430A CN 201510406572 A CN201510406572 A CN 201510406572A CN 104978430 A CN104978430 A CN 104978430A
- Authority
- CN
- China
- Prior art keywords
- data
- search
- encapsulation
- lua
- format
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention discloses a data processing method and a data processing device, which are used for carrying out data processing according to corresponding results, obtained by searching a server according to keywords input by a user, so as to improve data processing efficiency. The method comprises: receiving the keywords input by the user, carrying out data searching according to the keywords, and obtaining Json-format searched results; decoding the obtained Json-format searched result to obtain a lua-format table object; reading each subobject in the lua-format table object in a circulating mode, and carrying out transcoding on each read subobject to obtain Unicode-format searched data; and packaging the Unicode-format searched data to obtain Json-format packaged data and sending the obtained packaged data to an searching engine which feeds back the packaged data to the user as searched results. The data processing method has the beneficial effects of carrying out data processing on corresponding results obtained by searching according to keywords input by the user.
Description
Technical field
The present invention relates to Internet technical field, particularly a kind of data processing method and device.
Background technology
Through the develop rapidly of Internet technology in recent years, the business of internet constantly increases, and people can touch various information based on internet, and network also becomes a part indispensable in people's routine work and life.Such as, user can utilize internet transmitting-receiving work mail, carry out video conference etc.; Or, utilize internet browsing news, listen to the music, do shopping, make a reservation, watch video etc.When user obtains the information self needed, need to utilize corresponding research tool, search for from the information of internet mass and find out the information required for self; In this case, how internet, as the carrier of magnanimity information, effectively extracts and utilizes these information to become a huge challenge.
Search engine, as the instrument of auxiliary people's retrieving information, becomes entrance and guide that user accesses internet.But these versatility search engines also also exist certain limitation.Such as, it is that after the keyword that inputs of user, WEB server is searched for according to above-mentioned keyword that search engine receives, and obtains corresponding search result data; And the language format that the form of search result data and WEB server use can not be compatible, that is, the language format that WEB server uses can not be directly corresponding to search engine search result data carry out data processing, therefore, how to utilize WEB server to carry out data processing to Search Results and become one of current problem demanding prompt solution.
Summary of the invention
The embodiment of the present invention provides a kind of data processing method and device, carries out data processing in order to the keyword inputted according to user to the corresponding result that server search obtains, and improves data-handling efficiency.
The embodiment of the present invention provides a kind of data processing method, comprising:
Receive the keyword that user inputs based on search engine, and carry out data search according to the keyword of user's input, obtain the search result data of lightweight data interchange format Json form corresponding to data search;
The described search result data of the Json form obtained is decoded, obtains the table object of decoded script lua form;
The each subobject in the described table object of lua form is read in circulation, and carries out transcoding to each subobject read, and obtains the search data of preset characters coded format;
The search data of described preset characters coded format is encapsulated, obtain the encapsulation of data of default lightweight data interchange format, and the described encapsulation of data obtained is sent to described search engine, for described search engine, described encapsulation of data is fed back to user as Search Results.
In one embodiment, the described search result data of the described Json form to obtaining is decoded, and obtains the table object of decoded script lua form, comprising:
The type of server of the WEB server used when obtaining search data, identifies that the script form that described WEB server is supported is lua form;
According to the script form lua form that described WEB server is supported, disposable decoding is carried out to the described search result data of the Json form obtained, obtains the table object that decoded script lua form is corresponding.
In one embodiment, each subobject in the described table object of lua form is read in described circulation, and carries out transcoding to each subobject read, and obtains the search data of preset characters coded format, comprising:
Utilize the architectural feature of the described table object of lua form, perform the first heavily idle loop;
In units of minimum subobject, perform and second to recirculate, circulation is read each subobject institute in described table object and is distinguished the object data of correspondence; Wherein, described object data comprises: the title that this subobject is corresponding, summary, chained address, picture, publication and file types;
Transcoding is carried out to the object data of each subobject read out, obtains the search data that preset characters coding standard Unicode format is corresponding.
In one embodiment, the described search data to described preset characters coded format encapsulates, obtain the encapsulation of data of default lightweight data interchange format, and the described encapsulation of data obtained is sent to described search engine, for described search engine, described encapsulation of data is fed back to user as Search Results, comprising:
According to the format convention that described Json form is corresponding, the search data of preset characters coded format Unicode format is encapsulated, obtain the encapsulation of data of described Json form;
The encapsulation of data of described Json form is sent to corresponding search engine, for described search engine, described encapsulation of data is fed back to user as Search Results.
In one embodiment, described the described encapsulation of data obtained is sent to described search engine, for described search engine, described encapsulation of data is fed back to user as Search Results, comprising:
The described encapsulation of data obtained is sent to search engine;
The correlativity of the described keyword that described search engine inputs according to described encapsulation of data and user, sorts to described encapsulation of data, and the described encapsulation of data after sequence is fed back to user as Search Results.
Corresponding to a kind of data processing method that above embodiment provides, the embodiment of the present invention additionally provides a kind of data processing equipment, comprising:
Search module, for receiving the keyword that user inputs based on search engine, and carrying out data search according to the keyword of user's input, obtaining the search result data of lightweight data interchange format Json form corresponding to data search;
Decoder module, for decoding to the described search result data of the Json form obtained, obtains the table object of decoded script lua form;
Transcoding module, for each subobject in the described table object reading lua form that circulates, and carries out transcoding to each described subobject read, obtains the search data of preset characters coded format;
Package module, for encapsulating the search data of described preset characters coded format, obtain the encapsulation of data of default lightweight data interchange format, and the described encapsulation of data obtained is sent to described search engine, for described search engine, described encapsulation of data is fed back to user as Search Results.
In one embodiment, described decoder module comprises:
Recognition unit, the type of server of the WEB server used during for obtaining search data, identifies that the script form that described WEB server is supported is lua form;
Decoding unit, for the script form lua form supported according to described WEB server, carries out disposable decoding to the described search result data of the Json form obtained, obtains the table object that decoded script lua form is corresponding.
In one embodiment, described transcoding module comprises:
Idle loop unit, for utilizing the architectural feature of the described table object of lua form, performs the first heavily idle loop;
Reading unit, in units of minimum subobject, performs and second to recirculate, and circulation is read each subobject institute in described table object and distinguished the object data of correspondence; Wherein, described object data comprises: the title that this subobject is corresponding, summary, chained address, picture, publication and file types;
Transcoding units, for carrying out transcoding to the object data of each subobject read out, obtains the search data that preset characters coding standard Unicode format is corresponding.
In one embodiment, described package module comprises:
Encapsulation unit, for according to format convention corresponding to described Json form, encapsulates the search data of preset characters coded format Unicode format, obtains the encapsulation of data of described Json form;
Transmitting element, for the encapsulation of data of described Json form being sent to corresponding search engine, feeds back to user using described encapsulation of data as Search Results for described search engine.
In one embodiment, described transmitting element also for:
The described encapsulation of data obtained is sent to search engine, for the correlativity of the described keyword that described search engine inputs according to described encapsulation of data and user, described encapsulation of data is sorted, and the described encapsulation of data after sequence is fed back to user as Search Results.
A kind of data processing method described by above embodiment and device can reach following beneficial effect:
By receiving the keyword that user inputs based on search engine, and carrying out data search according to the keyword of user's input, obtaining the search result data of lightweight data interchange format Json form corresponding to data search; The described search result data of the Json form obtained is decoded, obtains the table object of decoded script lua form; The each subobject in the described table object of lua form is read in circulation, and carries out transcoding to each subobject read, and obtains the search data of preset characters coded format; The search data of described preset characters coded format is encapsulated, obtain the encapsulation of data of default lightweight data interchange format, and the described encapsulation of data obtained is sent to described search engine, for described search engine, described encapsulation of data is fed back to user as Search Results; There is the keyword inputted according to user carries out data processing beneficial effect to the corresponding result that server search obtains, reach WEB server and search engine and can carry out for the data of different-format the object that processes, improve data-handling efficiency, also furthermore achieved that the convenient displaying of Search Results.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write instructions, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for instructions, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of a kind of data processing method of the present invention according to an exemplary embodiment;
Fig. 2 is the process flow diagram of step S20 in a kind of data processing method of the present invention according to an exemplary embodiment;
Fig. 3 is the process flow diagram of step S30 in a kind of data processing method of the present invention according to an exemplary embodiment;
Fig. 4 is the process flow diagram of step S40 in a kind of data processing method of the present invention according to an exemplary embodiment;
Fig. 5 is the block diagram of a kind of data processing equipment of the present invention according to an exemplary embodiment;
Fig. 6 is the block diagram of decoder module 70 in a kind of data processing equipment of the present invention according to an exemplary embodiment;
Fig. 7 is the block diagram of a kind of data processing equipment transit code module 80 of the present invention according to an exemplary embodiment;
Fig. 8 is the block diagram of package module 90 in a kind of data processing equipment of the present invention according to an exemplary embodiment.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Disclosed by the invention one embodiments provides a kind of data processing method, carries out data processing in order to the keyword inputted according to user to the corresponding result that server search obtains, and improves data-handling efficiency, realizes the convenient displaying of Search Results.As shown in Figure 1, in the embodiment of the present invention, a kind of data processing method comprises step S10-S40:
The keyword that step S10, reception user input based on search engine, and carry out data search according to the keyword of user's input, obtain the search result data of lightweight data interchange format Json form corresponding to data search;
In the embodiment of the present invention, after the keyword of user based on search engine input correspondence, WEB server generates reptile task, keyword according to user's input carries out data search, crawl Search Results in network, and then obtain the search result data of lightweight data interaction form (JavaScript Object Notation, Json) corresponding to data search.
Step S20, the described search result data of Json form obtained to be decoded, obtain the table object of decoded script lua form;
In the embodiment of the present invention, the such WEB server of Nginx can be adopted, and the language that the WEB server of this type is supported is dynamic script language lua language, using the WEB server of lua language can not carry out data processing to searching for the Json object obtained, therefore needing the table object described search result data of Json form being decoded into the lua form that this WEB server can process.
In the embodiment of the present invention, the reptile result crawled is Json form, and wherein, webpage is an object in Json file, and reptile result can include multiple object.The embodiment of the present invention adopts the reptile result of Json form to be conveniently search engine process and to send to user, better compatible.
As shown in Figure 2, in one embodiment, described step S20 may be embodied as step S201-S202 as described below:
The type of server of the WEB server used when step S201, acquisition search data, identifies that the script form that described WEB server is supported is lua form;
Step S202, the script form lua form supported according to described WEB server, carry out disposable decoding to the described search result data of the Json form obtained, obtain the table object that decoded script lua form is corresponding.
In the embodiment of the present invention, when after the type of server obtaining the WEB server crawling data, identify that the script form that this WEB server is supported is lua form, and then according to this script form lua form, disposable decoding is carried out to the search result data of the Json form obtained, obtains the table object that decoded script lua form is corresponding.
In a concrete application scenarios, the embodiment of the present invention is decoded to all Json object crawled are disposable, obtains a lua table object.Table due to lua provides the function of MAP, achieves Associate array, and integer, character string even nil can as the keyword of index, and the size that table does not fix.Therefore, based on the table of lua, common array, symbol table, set, record, queue and other data structures can be represented.Such as, realize carrying out disposable decoding to all Json object by " data=jason.decode (args). ".Wherein, the corresponding Json object of a subobject in lua table object.
Each subobject in the described table object of step S30, circulation reading lua form, and transcoding is carried out to each subobject read, obtain the search data of preset characters coded format;
After Json decoding data being obtained to the table object of lua form, all subobjects in the table object of lua form are read in circulation, carry out transcoding simultaneously, obtain the search data of preset characters coded format to each subobject read.
In one embodiment, as shown in Figure 3, described step S30 may be embodied as step S301-S303 as described below:
Step S301, utilize the architectural feature of the described table object of lua form, perform the first heavily idle loop;
In the embodiment of the present invention, because lua table and table object corresponding to lua form are two-dimensional structure, and the embodiment of the present invention has only used one-dimentional structure, therefore, first utilizes the architectural feature of the table object of lua form, performs the first heavily idle loop.
Step S302, in units of minimum subobject, perform and second to recirculate, circulation is read each subobject institute in described table object and is distinguished the object data of correspondence; Wherein, described object data comprises: the title that this subobject is corresponding, summary, chained address, picture, publication and file types;
Step S303, transcoding is carried out to the object data of each subobject read out, obtain the search data that preset characters coding standard Unicode format is corresponding.
Execute first heavily after idle loop, in lua table in units of minimum subobject, perform second and recirculate, circulate with this and read the object data of each subobject institute difference correspondence in lua table table object.Wherein, described object data includes but not limited to: the attributive character that this subobject is corresponding, such as: the title that this subobject is corresponding, summary, chained address, picture, publication and file types etc.And then again transcoding is carried out to the above-mentioned object data of each subobject read out, obtain the search data that preset characters coding standard Unicode format is corresponding.
In a concrete application scenarios, the transcoding that can realize lua table table object by following manner:
In the embodiment of the present invention, because lua table subobject is UTF8 form, and the search engine interface major part corresponding to search engine that user uses is Unicode format, therefore, needing each luatable subobject by UTF8 format conversion is Unicode format.
Step S40, the search data of described preset characters coded format to be encapsulated, obtain the encapsulation of data of default lightweight data interchange format, and the described encapsulation of data obtained is sent to described search engine, for described search engine, described encapsulation of data is fed back to user as Search Results.
In the embodiment of the present invention, each subobject in lua table is carried out after transcoding obtains the search data of Unicode format, become the data of Json form to be sent to search engine the object encapsulation of Unicode format again, for search engine, above-mentioned encapsulation of data is fed back to user as Search Results.
In one embodiment, as shown in Figure 4, described step S40 may be embodied as step S401-S402 as described below:
Step S401, according to format convention corresponding to described Json form, the search data of preset characters coded format Unicode format to be encapsulated, obtain the encapsulation of data of described Json form;
Step S402, the encapsulation of data of described Json form is sent to corresponding search engine, for described search engine, described encapsulation of data fed back to user as Search Results.
In the embodiment of the present invention, when encapsulating the data of the Unicode format after transcoding, according to the format convention that Json form is corresponding, the search data of the above-mentioned Unicode format obtained is encapsulated, obtain the encapsulation of data of Json form, then the data of the Json form after encapsulation are sent to corresponding search engine, then, the encapsulation of data of above-mentioned Json form is fed back to user as Search Results by search engine again, completes whole flow chart of data processing.
In one embodiment, after searching the encapsulation of data of the Json form that plain engine accepts sends to WEB server, the correlativity of the described keyword inputted according to described encapsulation of data and user, described encapsulation of data is sorted, and the described encapsulation of data after sequence is fed back to user as Search Results.That is, the further data processings such as search engine can sort to mentioned above searching results, screening, then by the data feedback after process to user, check for user.
A kind of data processing method described by above embodiment, by receiving the keyword that user inputs based on search engine, and carry out data search according to the keyword of user's input, obtain the search result data of lightweight data interchange format Json form corresponding to data search; The described search result data of the Json form obtained is decoded, obtains the table object of decoded script lua form; The each subobject in the described table object of lua form is read in circulation, and carries out transcoding to each subobject read, and obtains the search data of preset characters coded format; The search data of described preset characters coded format is encapsulated, obtain the encapsulation of data of default lightweight data interchange format, and the described encapsulation of data obtained is sent to described search engine, for described search engine, described encapsulation of data is fed back to user as Search Results; There is the keyword inputted according to user carries out data processing beneficial effect to the corresponding result that server search obtains, reach WEB server and search engine and can carry out for the data of different-format the object that processes, improve data-handling efficiency, also furthermore achieved that the convenient displaying of Search Results.
A kind of data processing method that the corresponding embodiment of the present invention provides, present invention also offers a kind of data processing equipment; As shown in Figure 5, described a kind of data processing equipment, comprising: search module 60, decoder module 70, transcoding module 80 and package module 90; Wherein:
Described search module 60, for receiving the keyword that user inputs based on search engine, and carrying out data search according to the keyword of user's input, obtaining the search result data of lightweight data interchange format Json form corresponding to data search;
Described decoder module 70, for decoding to the described search result data of the Json form obtained, obtains the table object of decoded script lua form;
In one embodiment, as shown in Figure 6, described decoder module 70 comprises:
Recognition unit 701, the type of server of the WEB server used during for obtaining search data, identifies that the script form that described WEB server is supported is lua form;
Decoding unit 702, for the script form lua form supported according to described WEB server, carries out disposable decoding to the described search result data of the Json form obtained, obtains the table object that decoded script lua form is corresponding.
Described transcoding module 80, for each subobject in the described table object reading lua form that circulates, and carries out transcoding to each described subobject read, obtains the search data of preset characters coded format;
In one embodiment, as shown in Figure 7, described transcoding module 80 comprises:
Idle loop unit 801, for utilizing the architectural feature of the described table object of lua form, performs the first heavily idle loop;
Reading unit 802, in units of minimum subobject, performs and second to recirculate, and circulation is read each subobject institute in described table object and distinguished the object data of correspondence; Wherein, described object data comprises: the title that this subobject is corresponding, summary, chained address, picture, publication and file types;
Transcoding units 803, for carrying out transcoding to the object data of each subobject read out, obtains the search data that preset characters coding standard Unicode format is corresponding.
Described package module 90, for encapsulating the search data of described preset characters coded format, obtain the encapsulation of data of default lightweight data interchange format, and the described encapsulation of data obtained is sent to described search engine, for described search engine, described encapsulation of data is fed back to user as Search Results.
In one embodiment, as shown in Figure 8, described package module 90 comprises:
Encapsulation unit 901, for according to format convention corresponding to described Json form, encapsulates the search data of preset characters coded format Unicode format, obtains the encapsulation of data of described Json form;
Transmitting element 902, for the encapsulation of data of described Json form being sent to corresponding search engine, feeds back to user using described encapsulation of data as Search Results for described search engine.
In one embodiment, described transmitting element 902 also for:
The described encapsulation of data obtained is sent to search engine, for the correlativity of the described keyword that described search engine inputs according to described encapsulation of data and user, described encapsulation of data is sorted, and the described encapsulation of data after sequence is fed back to user as Search Results.
A kind of data processing equipment described by above embodiment, by receiving the keyword that user inputs based on search engine, and carry out data search according to the keyword of user's input, obtain the search result data of lightweight data interchange format Json form corresponding to data search; The described search result data of the Json form obtained is decoded, obtains the table object of decoded script lua form; The each subobject in the described table object of lua form is read in circulation, and carries out transcoding to each subobject read, and obtains the search data of preset characters coded format; The search data of described preset characters coded format is encapsulated, obtain the encapsulation of data of default lightweight data interchange format, and the described encapsulation of data obtained is sent to described search engine, for described search engine, described encapsulation of data is fed back to user as Search Results; There is the keyword inputted according to user carries out data processing beneficial effect to the corresponding result that server search obtains, reach WEB server and search engine and can carry out for the data of different-format the object that processes, improve data-handling efficiency, also furthermore achieved that the convenient displaying of Search Results.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (10)
1. a data processing method, is characterized in that, comprising:
Receive the keyword that user inputs based on search engine, and carry out data search according to the keyword of user's input, obtain the search result data of lightweight data interchange format Json form corresponding to data search;
The described search result data of the Json form obtained is decoded, obtains the table object of decoded script lua form;
The each subobject in the described table object of lua form is read in circulation, and carries out transcoding to each subobject read, and obtains the search data of preset characters coded format;
The search data of described preset characters coded format is encapsulated, obtain the encapsulation of data of default lightweight data interchange format, and the described encapsulation of data obtained is sent to described search engine, for described search engine, described encapsulation of data is fed back to user as Search Results.
2. the method for claim 1, is characterized in that, the described search result data of the described Json form to obtaining is decoded, and obtains the table object of decoded script lua form, comprising:
The type of server of the WEB server used when obtaining search data, identifies that the script form that described WEB server is supported is lua form;
According to the script form lua form that described WEB server is supported, disposable decoding is carried out to the described search result data of the Json form obtained, obtains the table object that decoded script lua form is corresponding.
3. the method for claim 1, is characterized in that, each subobject in the described table object of lua form is read in described circulation, and carries out transcoding to each subobject read, and obtains the search data of preset characters coded format, comprising:
Utilize the architectural feature of the described table object of lua form, perform the first heavily idle loop;
In units of minimum subobject, perform and second to recirculate, circulation is read each subobject institute in described table object and is distinguished the object data of correspondence; Wherein, described object data comprises: the title that this subobject is corresponding, summary, chained address, picture, publication and file types;
Transcoding is carried out to the object data of each subobject read out, obtains the search data that preset characters coding standard Unicode format is corresponding.
4. the method as described in claim 1 or 3, it is characterized in that, the described search data to described preset characters coded format encapsulates, obtain the encapsulation of data of default lightweight data interchange format, and the described encapsulation of data obtained is sent to described search engine, for described search engine, described encapsulation of data is fed back to user as Search Results, comprising:
According to the format convention that described Json form is corresponding, the search data of preset characters coded format Unicode format is encapsulated, obtain the encapsulation of data of described Json form;
The encapsulation of data of described Json form is sent to corresponding search engine, for described search engine, described encapsulation of data is fed back to user as Search Results.
5. method as claimed in claim 4, is characterized in that, described the described encapsulation of data obtained is sent to described search engine, for described search engine, described encapsulation of data is fed back to user as Search Results, comprising:
The described encapsulation of data obtained is sent to search engine;
The correlativity of the described keyword that described search engine inputs according to described encapsulation of data and user, sorts to described encapsulation of data, and the described encapsulation of data after sequence is fed back to user as Search Results.
6. a data processing equipment, is characterized in that, comprising:
Search module, for receiving the keyword that user inputs based on search engine, and carrying out data search according to the keyword of user's input, obtaining the search result data of lightweight data interchange format Json form corresponding to data search;
Decoder module, for decoding to the described search result data of the Json form obtained, obtains the table object of decoded script lua form;
Transcoding module, for each subobject in the described table object reading lua form that circulates, and carries out transcoding to each described subobject read, obtains the search data of preset characters coded format;
Package module, for encapsulating the search data of described preset characters coded format, obtain the encapsulation of data of default lightweight data interchange format, and the described encapsulation of data obtained is sent to described search engine, for described search engine, described encapsulation of data is fed back to user as Search Results.
7. device as claimed in claim 6, it is characterized in that, described decoder module comprises:
Recognition unit, the type of server of the WEB server used during for obtaining search data, identifies that the script form that described WEB server is supported is lua form;
Decoding unit, for the script form lua form supported according to described WEB server, carries out disposable decoding to the described search result data of the Json form obtained, obtains the table object that decoded script lua form is corresponding.
8. device as claimed in claim 6, it is characterized in that, described transcoding module comprises:
Idle loop unit, for utilizing the architectural feature of the described table object of lua form, performs the first heavily idle loop;
Reading unit, in units of minimum subobject, performs and second to recirculate, and circulation is read each subobject institute in described table object and distinguished the object data of correspondence; Wherein, described object data comprises: the title that this subobject is corresponding, summary, chained address, picture, publication and file types;
Transcoding units, for carrying out transcoding to the object data of each subobject read out, obtains the search data that preset characters coding standard Unicode format is corresponding.
9. the device as described in claim 6 or 8, is characterized in that, described package module comprises:
Encapsulation unit, for according to format convention corresponding to described Json form, encapsulates the search data of preset characters coded format Unicode format, obtains the encapsulation of data of described Json form;
Transmitting element, for the encapsulation of data of described Json form being sent to corresponding search engine, feeds back to user using described encapsulation of data as Search Results for described search engine.
10. device as claimed in claim 9, is characterized in that, described transmitting element also for:
The described encapsulation of data obtained is sent to search engine, for the correlativity of the described keyword that described search engine inputs according to described encapsulation of data and user, described encapsulation of data is sorted, and the described encapsulation of data after sequence is fed back to user as Search Results.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510406572.4A CN104978430A (en) | 2015-07-10 | 2015-07-10 | Data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510406572.4A CN104978430A (en) | 2015-07-10 | 2015-07-10 | Data processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104978430A true CN104978430A (en) | 2015-10-14 |
Family
ID=54274934
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510406572.4A Pending CN104978430A (en) | 2015-07-10 | 2015-07-10 | Data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104978430A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109885678A (en) * | 2019-01-11 | 2019-06-14 | 珠海金山网络游戏科技有限公司 | A kind of examination examination question generation method and its device, storage medium |
CN109962755A (en) * | 2019-02-27 | 2019-07-02 | 深圳市元征科技股份有限公司 | A kind of data processing method and device |
WO2019153588A1 (en) * | 2018-02-08 | 2019-08-15 | 平安科技(深圳)有限公司 | Intelligence information collection method and apparatus, computer device and storage medium |
CN110619098A (en) * | 2018-12-26 | 2019-12-27 | 北京时光荏苒科技有限公司 | Information display method and device, electronic equipment and storage medium |
CN110765097A (en) * | 2018-07-27 | 2020-02-07 | 北京京东尚科信息技术有限公司 | Data processing method and device, computer storage medium and electronic equipment |
CN111504124A (en) * | 2020-04-16 | 2020-08-07 | 广州大学 | Visual shooting training system and method, terminal device and storage medium |
CN112156476A (en) * | 2020-09-23 | 2021-01-01 | 成都完美天智游科技有限公司 | Game configuration file exporting method, device, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101561808A (en) * | 2008-04-18 | 2009-10-21 | 北京瑞佳晨科技有限公司 | Method of data reconstruction by search |
US20120254333A1 (en) * | 2010-01-07 | 2012-10-04 | Rajarathnam Chandramouli | Automated detection of deception in short and multilingual electronic messages |
-
2015
- 2015-07-10 CN CN201510406572.4A patent/CN104978430A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101561808A (en) * | 2008-04-18 | 2009-10-21 | 北京瑞佳晨科技有限公司 | Method of data reconstruction by search |
US20120254333A1 (en) * | 2010-01-07 | 2012-10-04 | Rajarathnam Chandramouli | Automated detection of deception in short and multilingual electronic messages |
Non-Patent Citations (2)
Title |
---|
JINNIANSHILONGNIAN: "第五章 常用 Lua开发库2-JSON库、编码转换、字符串处理", 《HTTP://JINNIANSHILONGNIAN.ITEYE.COM/BLOG/2187643》 * |
谢兵: "土豆网视频搜索引擎系统的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019153588A1 (en) * | 2018-02-08 | 2019-08-15 | 平安科技(深圳)有限公司 | Intelligence information collection method and apparatus, computer device and storage medium |
CN110765097A (en) * | 2018-07-27 | 2020-02-07 | 北京京东尚科信息技术有限公司 | Data processing method and device, computer storage medium and electronic equipment |
CN110619098A (en) * | 2018-12-26 | 2019-12-27 | 北京时光荏苒科技有限公司 | Information display method and device, electronic equipment and storage medium |
CN109885678A (en) * | 2019-01-11 | 2019-06-14 | 珠海金山网络游戏科技有限公司 | A kind of examination examination question generation method and its device, storage medium |
CN109962755A (en) * | 2019-02-27 | 2019-07-02 | 深圳市元征科技股份有限公司 | A kind of data processing method and device |
CN111504124A (en) * | 2020-04-16 | 2020-08-07 | 广州大学 | Visual shooting training system and method, terminal device and storage medium |
CN112156476A (en) * | 2020-09-23 | 2021-01-01 | 成都完美天智游科技有限公司 | Game configuration file exporting method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104978430A (en) | Data processing method and device | |
CN105117378B (en) | A kind of JSON files are converted to the method and device of EXCEL file | |
CN104919522A (en) | Distributed NLU/NLP | |
CN110442330A (en) | List element conversion method, device, electronic equipment and storage medium | |
US9436776B2 (en) | Web browsing system and method for rendering dynamic resource URIs using script | |
CN111314388B (en) | Method and apparatus for detecting SQL injection | |
CN110826002B (en) | Information sharing method, device, terminal and storage medium | |
CN113126990A (en) | Page development method, device, equipment and storage medium | |
CN102693238B (en) | Widget application process, system and multimedia terminal | |
CN111694866A (en) | Data searching and storing method, data searching system, data searching device, data searching equipment and data searching medium | |
CN111600920B (en) | JS-based data request proxy method, device, equipment and readable storage medium | |
CN104750853A (en) | Method and device for searching heterogeneous data | |
CN108959294B (en) | Method and device for accessing search engine | |
CN111565220B (en) | Remote sensing image data quick access method and system | |
CN107643892B (en) | Interface processing method, device, storage medium and processor | |
CN102467502A (en) | Retrieval method and system | |
CN106452855B (en) | Article label adding method and device | |
CN113110874B (en) | Method and apparatus for generating code structure diagram | |
CN111459584B (en) | Page rendering method and device and electronic equipment | |
US10089369B2 (en) | Searching method, searching apparatus and device | |
CN104965924B (en) | A kind of date storage method and device | |
CN114691850A (en) | Method for generating question-answer pairs, training method and device of neural network model | |
CN109635175B (en) | Page data splicing method and device, readable storage medium and electronic equipment | |
CN114860566A (en) | Source code testing method and device, electronic equipment and storage medium | |
CN112818710A (en) | Method and device for processing asynchronous network machine translation request |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20190809 |