CN102799611B - Mailbox index building method and system and mailbox search method and system - Google Patents

Mailbox index building method and system and mailbox search method and system Download PDF

Info

Publication number
CN102799611B
CN102799611B CN201210185946.0A CN201210185946A CN102799611B CN 102799611 B CN102799611 B CN 102799611B CN 201210185946 A CN201210185946 A CN 201210185946A CN 102799611 B CN102799611 B CN 102799611B
Authority
CN
China
Prior art keywords
mailbox
user
index
mail
node server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210185946.0A
Other languages
Chinese (zh)
Other versions
CN102799611A (en
Inventor
林金鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sina Technology China Co Ltd
Original Assignee
Sina Technology China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sina Technology China Co Ltd filed Critical Sina Technology China Co Ltd
Priority to CN201210185946.0A priority Critical patent/CN102799611B/en
Publication of CN102799611A publication Critical patent/CN102799611A/en
Application granted granted Critical
Publication of CN102799611B publication Critical patent/CN102799611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a mailbox index building method, a mailbox index building system, a mailbox search method and a mailbox search system. The mailbox index building method comprises the following steps of: judging whether the current user selects a mailbox full text search function on an interface where a mailbox is used in real time; if the current user selects the mailbox full text search function, acquiring mailbox information of the current user, wherein the mailbox information comprises storage position information of the mailbox, mailbox account name information and mailbox contents; and sending the mailbox information to the current node server where the current user is positioned, and building a mailbox index of the current user through the current node server according to the mailbox information. By the methods or the systems of the embodiment of the invention, a queue for building the index can be effectively reduced, and the efficiency for building the index is improved. Furthermore, mail query is performed based on the index built by the index building method, so that the whole system performance is improved, and the accuracy of a search result is improved.

Description

Mailbox index establishing method and system, mailbox searching method and system
Technical field
The present invention relates to database technical field, particularly relate to mailbox index establishing method and system, mailbox searching method and system.
Background technology
Along with the development of computer technology, E-mail address that is ultra-large, that never delete letter also arises at the historic moment, and the demand of mailbox full-text search is also more and more urgent.Full-text search is named full-text search again, by setting up inverted index to word content in OUTLOOK, to support a kind of technology of quick-searching demand.Mailbox search system uses the general JAVA MAIL storehouse that uses to resolve communications content, uses LUCENE storehouse to set up index, provides search service, and use IKAnalyzer segmenter to carry out participle, and uses the work that NETTY bag process network connects and read-write is relevant.
Existing mailbox index establishing method mainly comprises the following steps: when the new mail of user arrives, or time user revises mail attribute, the service node at user place can be obtained by scheduler, and send a message to the task queue of this service node, and the process that indexes of service node reads the task queue of oneself, according to the content obtaining mail in message to corresponding interface, thus participle can be carried out to set up index to mail.
But inventor finds in research process, after mailbox full-text search is reached the standard grade, prior art can cause storage server disk input and output (IO) load very high, and the queue of setting up index also can be caused very high, even reach up to a million, the efficiency setting up index will be made lower; Further, user is when search mail, and the performance issue due to system also can cause Query Result inaccurate.
Summary of the invention
Technical matters to be solved by this invention is, a kind of mailbox index establishing method and system, mailbox searching method and system are provided, to solve the lower problem of the efficiency of setting up index in prior art, and further solve the inaccurate problem of Search Results of user search mail.
For solving the problems of the technologies described above, embodiments provide a kind of mailbox index establishing method, the method comprises:
Whether real-time detection active user selects mailbox full-text search function on the interface using mailbox;
If so, then obtain the mailbox message of described active user, described mailbox message comprises the stored position information of mailbox, email accounts name information and mailbox contents;
Described mailbox message is sent to the present node server at described active user place, is set up the mailbox index of described active user by described present node server according to described mailbox message.
Preferably, to set up the mailbox index of described active user according to described mailbox message at described present node server before, also comprise:
Described present node server judges whether described active user is validated user, if so, then performs described present node server sets up the mailbox index of described active user step according to described mailbox message.
Preferably, described method also comprises:
The user profile of the user of all selection mailbox full-text search functions is saved in the user list in caching server;
Then corresponding, described present node server judges whether described active user is that validated user is specially:
Described present node server judges whether the user profile of described active user is kept in the user list in described caching server.
Preferably, after described present node server to set up the mailbox index of described active user according to described mailbox message, described method also comprises:
Detect described active user whether to upgrade the mail in mailbox system;
If so, then mail lastest imformation is sent to described present node server, according to described mail lastest imformation, the mailbox index set up is upgraded by described present node server.
Preferably, described method also comprises:
The mailbox message of described active user is saved in mailbox system database;
Then corresponding, described acquisition selects the mailbox message of the user of mailbox full-text search function to be specially:
From mailbox system database, the mailbox message of described active user is read by the proxy interface of described mailbox system database.
A kind of mailbox searching method, adopts above-mentioned mailbox index establishing method to set up mailbox index; This searching method comprises:
Obtain the search keyword of inquiring user input and the node server to be checked at described inquiring user place; Described inquiring user is the registered user having opened mailbox full-text search function;
Described node server to be checked is searched the mailbox index with described search Keywords matching;
Mail corresponding to the mailbox index found is showed described inquiring user.
A kind of mailbox index establishing system, comprising:
Whether mailbox FEP, select mailbox full-text search function for detecting active user in real time on the interface using mailbox;
Server rebuild in index, for selecting mailbox full-text search function when active user, obtains the mailbox message of described active user, and described mailbox message comprises the stored position information of mailbox, email accounts name information and mailbox contents;
The present node server at described active user place, described present node server comprises index and sets up module, and described index sets up module for setting up the mailbox index of described active user according to described mailbox message.
Preferably, described present node server also comprises:
Judge module, for judging whether described active user is validated user;
Trigger module, for when the result of described judge module is for being, triggers described index and setting up module.
Preferably, described index establishing system also comprises:
Caching server, the user list in described caching server is for preserving the user profile of the user of all selection mailbox full-text search functions;
Then described judge module specifically for: judge whether the user profile of described active user is kept in the user list in described caching server.
Preferably, described index establishing system also comprises:
Proxy server, described proxy server comprises detection module and sending module, and whether described detection module upgrades the mail in mailbox system for the user detected in the user list of described caching server;
Described sending module is used for, when the result of described detection module is for being, mail lastest imformation is sent to the node server upgrading user place, so that the node server at described renewal user place upgrades the mailbox index set up according to described mail lastest imformation.
Preferably, described index establishing system also comprises:
Mailbox system database, for preserving the mailbox message of the user of all selection mailbox full-text search functions;
Then corresponding, described index to rebuild server specifically for the mailbox message being read described active user by the proxy interface of described mailbox system database from mailbox system database.
A kind of mailbox search system, comprising: aforesaid mailbox index establishing system; Wherein, described mailbox FEP also comprises:
Acquisition module, for obtaining search keyword and the node server to be checked at described inquiring user place of inquiring user input; Described inquiring user is the registered user having opened mailbox full-text search function;
Search module, for searching the mailbox index with described search Keywords matching on described node server to be checked;
Display module, for showing described inquiring user by the mail corresponding to the mailbox found index.
As can be seen from above-mentioned technical scheme, the index establishing method of mailbox disclosed in the embodiment of the present invention, by adding the setting option whether opened mailbox full-text search function on mailbox FEP, only can carry out index foundation to the user opening mailbox full-text search function, this obviously will reduce unnecessary index and set up, thus effectively reduce the queue of setting up index, and then improve the efficiency setting up index.Further, when carrying out E-mail inquiries based on the above-mentioned index setting up the method establishment of index, the accuracy of Search Results can also be improved because of the Integral lifting of system performance.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, the accompanying drawing that the following describes is only some embodiments recorded in the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of mailbox index establishing method embodiment 1 of the present invention;
Fig. 2 is the process flow diagram of mailbox index establishing method embodiment 2 of the present invention;
Fig. 3 is the process flow diagram of mailbox index establishing method embodiment 3 of the present invention;
Fig. 4 is the process flow diagram of mailbox searching method embodiment of the present invention;
Fig. 5 is the structural representation of mailbox index establishing system embodiment 1 of the present invention;
Fig. 6 is the structural representation of mailbox index establishing system embodiment 2 of the present invention;
Fig. 7 is the structural representation of mailbox index establishing system embodiment 3 of the present invention;
Fig. 8 is the structural representation of mailbox search system embodiment of the present invention.
Embodiment
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
See Fig. 1, show the process flow diagram of a kind of mailbox index establishing method embodiment 1 of the present invention, the present embodiment can comprise the following steps:
Step 101: detect active user in real time and whether select mailbox full-text search function on the interface using mailbox, if so, then enter step 102.
The embodiment of the present invention is when implementing, need to increase at mailbox FEP the switch opening and closing mailbox full-text search function, this switch can adopt various ways to realize, the such as mode such as button or drop-down menu, like this, if user uses the upper selection in the interface (such as webpage mailbox or 0utlook etc.) of mailbox to open mailbox full-text search function at it, just illustrate that this user is follow-up when inquiry mail, need the E-mail inquiries result that full-text search is provided to it, if and user does not have selection to open mailbox full-text search function on the interface of its use mailbox, then can only in inbox during subsequent user inquiry mail, retrieve in the theme of the mail such as outbox and draft, the content of message body can not be retrieved.
This step can be performed by mailbox FEP in the specific implementation, whether mailbox FEP detects active user in real time and whether on the interface using mailbox, selects mailbox full-text search function, be namely to select user to click corresponding button or choose corresponding menu option on the interface that it uses mailbox.
Step 102: the mailbox message obtaining described active user, described mailbox message comprises the stored position information of mailbox, email accounts name information and mailbox contents.
After detecting that active user selects mailbox full-text search function on the interface using mailbox, then obtain the mailbox message of this active user, mailbox message comprises the stored position information of mailbox, the body matter of email accounts name information and mailbox, namely the stored position information of mailbox is which position of certain mailbox in the database of mailbox system stores, account name information is then the username information of user when registering mailbox, such as zhangsan@sina.com.Further, mailbox message can also comprise the temporal information of mailbox, the time of reception of such as, mail in inbox, or the transmitting time etc. of the mail in outbox, mailbox message can also comprise the accessory information of the sender information of the mail in inbox, mailbox heading message, mail, or the holding time information, sender information etc. of the mail in draft, or e-mail messages can also comprise the addressee information email header information etc. in outbox, and the mailbox message in this step can be all information relevant with a certain envelope mail.
This step in the specific implementation, can be rebuild server by special index and implement.
Step 103: the present node server described mailbox message being sent to described active user place, is set up the mailbox index of described active user according to described mailbox message by described present node server.
Mailbox message is sent on the present node server at this active user place by index reconstruction server more in this step, is set up the mailbox index of this active user by present node server according to mailbox message.Concrete, present node server is when setting up index, the content in mailbox message is needed to carry out participle, such as IKAnalyzer instrument carries out participle, IKAnalyzer instrument is the Chinese word segmentation kit of the lightweight based on java language development that is increased income, after content the most at last in mailbox message all carries out participle, for a user, all mails in its mailbox are carried out the keyword set that participle obtains to preserve, and this keyword set is carried out associating the mailbox index that can obtain this active user with this active user, to inquire about in keyword set when this active user follow-up inquires about mail in its mailbox index.
The mailbox index set up in this step can be preserved in the mode of the corresponding one or more mail of a keyword, such as { keyword: amusement, mail: mail 1, mail 2...... mail n}, wherein n is natural number, this index just total n mail of mark comprises keyword " amusement ", so when subsequent user input " amusement " inquires about mail time, this mailbox index will be retrieved, and the mail retrieved namely: mail 1, mail 2...... mail n.
In an embodiment, node server is when setting up index, no longer the foundation all users being carried out to mailbox index, and only to selecting the user of mailbox full-text search function just can carry out index foundation in step 101, like this, the process of the mailbox index being based upon the user not selecting mailbox full-text search function in mailbox full-text search function is just decreased, compared with prior art, just can save the time of setting up unnecessary index, thus also can improve the efficiency setting up index.
See Fig. 2, show the process flow diagram of a kind of mailbox index establishing method embodiment 2 of the present invention, the present embodiment can comprise the following steps:
Step 201: detect active user in real time and whether select mailbox full-text search function on the interface using mailbox, if so, then enter step 102.
In embodiments of the present invention, if user does not select mailbox full-text search function on the interface using mailbox, then the flow process of mailbox index establishing method disclosed in the embodiment of the present invention can not be triggered.
Step 202: the mailbox message obtaining described active user, described mailbox message comprises the stored position information of mailbox, email accounts name information and mailbox contents.
Step 203: the present node server described mailbox message being sent to described active user place.
In the present embodiment, step 201 ~ 203 are identical with embodiment 1, do not repeat them here.
Step 204: described present node server judges whether described active user is validated user, if so, then enters step 205.
The present embodiment difference from Example 1 is, after the present node server described mailbox message being sent to described active user place, present node judges whether active user is validated user, namely be judge whether this active user is the user having selected mailbox full-text search function, and when active user is validated user, perform step 205 again, so just further ensuring that the user one setting up mailbox index establishes a capital is the user having selected mailbox full-text search function, can ensure the efficiency that index is set up further.
Be understandable that, in this step, if user is not validated user, then stop current mailbox index Establishing process.
Step 205: the mailbox index being set up described active user by described present node server according to described mailbox message.
After step 205, the present embodiment can also comprise:
Step 206: detect described active user and whether the mail in mailbox system is upgraded, if so, then enter step 207.
The present embodiment difference from Example 1 is also, also need to detect it to the new user opening mailbox full-text search function in the present embodiment follow-uply whether to upgrade the mail in mailbox system, such as user newly have received mail, or user newly have sent mail, or user newly saves in mail to draft and user have modified mail in draft, or user deletes mail (now mail can in the file of " deleting mail "), Deng the operation of user's more new mail, can be undertaken detecting this renewal rewards theory by mailbox FEP, once detect that user upgrades the mail in mailbox system, follow-up, need the mailbox index that synchronous renewal is corresponding with the mail of renewal.
Be understandable that, in this step, if active user does not upgrade the mail in mailbox system, then stop current mailbox index Establishing process.
Step 207: mail lastest imformation is sent to the node server upgrading user place, is upgraded the mailbox index set up according to described mail lastest imformation by the node server at described renewal user place.
The mail lastest imformation that step 206 detects by mailbox FEP is again sent to the node server to the user place that mail upgrades, the mailbox index set up is upgraded according to this mail lastest imformation by the node server at this renewal user place, concrete, after exactly the emerging mailbox contents after renewal being carried out participle, new keyword is added again in the keyword set of former mail index, or the keyword set synchronously changed when keyword changes in mail index, or the keyword in the keyword set when the keyword of mailbox is deleted also in synchronization removal mail index.
In the present embodiment, because first can judge before node server sets up mailbox index whether corresponding user is validated user, so further can ensure on the basis of embodiment 1 that the user setting up mailbox index is the user selecting mailbox full-text search function; And, the present embodiment is after setting up index to the new user opened, if detect that the user of this selection mailbox full-text search function upgrades any mail in its mailbox system again, the mailbox index of still synchronous this mail of renewal, therefore not only ensure that the index of the new user of unlatching is set up, in turn ensure that the index opening user is set up and can be saved time and raise the efficiency.
See Fig. 3, show the process flow diagram of a kind of mailbox index establishing method embodiment 3 of the present invention, the present embodiment can comprise the following steps:
Step 301: detect active user in real time and whether select mailbox full-text search function on the interface using mailbox, if so, then enter step 302.
Be understandable that, in this step, if do not detect that user selects mailbox full-text search function, then can not start the flow process setting up mailbox index.
Step 302: the mailbox message of described active user is saved in mailbox system database.
The difference of the present embodiment and embodiment 2 is, also the mailbox message of the active user selecting mailbox full-text search function is saved in mailbox system database in this step, mailbox system database can be used for storing specially the mailbox message of all users, the mailbox message of the user having selected the user of mailbox full-text search function and non-selected mailbox full-text search function can be comprised, need if follow-up like this mailbox message inquiring about arbitrary user, can read in this mailbox system database.
Step 303: the mailbox message being read described active user by the proxy interface of described mailbox system database from mailbox system database, described mailbox message comprises the stored position information of mailbox, email accounts name information and mailbox contents.
Namely this step is from the mailbox message wherein reading described active user by the proxy interface of mailbox system database, described mailbox message comprises the stored position information of mailbox, email accounts name information and mailbox contents, can read mailbox message more easily by proxy interface from mailbox system database.
Step 304: the user profile of the user of all selection mailbox full-text search functions is saved in the user list in caching server.
The difference of the present embodiment and embodiment 2 is also, the present embodiment also needs the user profile of the user selecting mailbox full-text search function to be saved in the user list in caching server, so just can ensure that the user of all selection mailbox full-text search functions is in this user list.
The node server information at user place can also be preserved in this cache database, such as, corresponding relation between preservation user account name and node server identify, then inquire the position of the node server at some user places in the follow-up corresponding relation preserved from cache database, mailbox FEP after detecting that user opens mailbox full-text search function, being saved to the location information synchronizing of the user profile of this user and the node server at place in this caching server that can be synchronous.
Be understandable that, the order of this step can be not limited to herein, only need before step 306.
Step 305: the present node server described mailbox message being sent to described active user place.
Step 306: described present node server judges whether the user profile of described active user is kept in the user list in described caching server, if so, then enters step 307.
After user is saved in user list, present node server only need judge whether the user profile of active user is kept in the user list in described caching server, if, then illustrating that this user is for validated user, is namely the user that user is defined as selecting mailbox full-text search function.Be understandable that, in this step, if judged result is no, then can stop the Establishing process of current mailbox index.
Step 307: the mailbox index being set up described active user by described present node server according to described mailbox message.
In the present embodiment, by preserving the mailbox message of all users in mailbox system database, just can by proxy interface very easily from wherein reading mailbox message, and the user profile of the user of all selection mailbox full-text search functions is also saved in the user list in caching server by the present embodiment, so just judge whether user is validated user by judging whether user is kept in user list, also can ensure that reducing unnecessary index sets up, and can also improve the efficiency that index is set up simultaneously.
See Fig. 4, show the process flow diagram of a kind of mailbox searching method embodiment of the present invention, the present embodiment needs first to adopt the embodiment 1 of aforementioned mailbox index establishing method, embodiment 2 and embodiment 3 to set up the mail index of user, then after mail index is set up, the present embodiment can comprise the following steps:
Step 401: obtain the search keyword of inquiring user input and the node server to be checked at described inquiring user place; Described inquiring user is the registered user having opened mailbox full-text search function.
When user needs search mailbox, meeting inputted search keyword on the mailbox interface of mailbox FEP, mailbox FEP will get the search keyword of this user input, and mailbox FEP can get the positional information of this user place node server from caching server, it is the registered user having opened mailbox full-text search function that the inquiring user in the present embodiment needs.
Step 402: search the mailbox index with described search Keywords matching on described node server to be checked.
Mailbox FEP can search the mailbox index of the search Keywords matching inputted with user on node server to be checked, namely be completely can with the mailbox index searching for Keywords matching, such as, if the search keyword of user is " amusement ", need the mailbox index comprising " amusement " just can be matched in keyword set then in mailbox index, although and if comprise " joy " and " pleasure " in the keyword set of mailbox index respectively, but there are other words to exist between these two words, then do not think and can mate.
Be understandable that, the mailbox index in this step can adopt the embodiment 1 of aforementioned mailbox index establishing method or the mode of embodiment 2 or embodiment 3 to realize.
Step 403: the mail corresponding to the mailbox index found is showed described inquiring user.
Namely the mailbox index found in this step is the mail that certain or some keyword in keyword set is corresponding, and these mails can be showed this inquiring user by mailbox FEP.Concrete, displaying order can be shown according to time sequencing, and can certainly show according to addressee or sender, exhibition method can be arranged arbitrarily according to actual conditions.
In the present embodiment, for be selected the user of mailbox full-text search function carry out mailbox retrieval time situation, because this user saves the time when setting up mail index, so obviously this user when search mail, also further can save the efficiency of search mail, also improve the accuracy of user search mail.And for non-selected mailbox full-text search function user inquire about mail time, mailbox FEP directly can obtain e-mail messages by proxy interface from the database of mailbox system, and e-mail messages is presented to user, because this inquiry can only with letter head contents such as addressee, sender, themes for querying condition, same as the prior art, then the present invention is not described in detail.
By the description of above embodiment of the method, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: ROM (read-only memory) (ROM), random access memory (RAM), magnetic disc or CD etc. various can be program code stored medium.
Corresponding to embodiment of the method above, the embodiment of the present invention also provides a kind of mailbox index establishing system.See Fig. 5, show a kind of structural representation of mailbox index establishing system embodiment 1, can comprise:
Whether mailbox FEP 501, select mailbox full-text search function for detecting active user in real time on the interface using mailbox.
Still need during the present embodiment on mailbox FEP 501, increase the switch opening and closing mailbox full-text search function, this switch can adopt various ways to realize, the such as mode such as button or drop-down menu, like this, if user uses the upper selection in the interface (such as webpage mailbox or outlook etc.) of mailbox to open mailbox full-text search function at it, just illustrate that this user is follow-up when inquiry mail, need the E-mail inquiries result that full-text search is provided to it, if and user does not have selection to open mailbox full-text search function on the interface of its use mailbox, then can only in inbox during subsequent user inquiry mail, retrieve in the theme of the mail such as outbox and draft, the content of message body can not be retrieved.
Whether mailbox FEP 501 detects active user in real time and whether on the interface using mailbox, selects mailbox full-text search function, be namely to select user to click corresponding button or choose corresponding menu option on the interface that it uses mailbox.
Server 502 rebuild in index, for selecting mailbox full-text search function when active user, obtains the mailbox message of described active user, and described mailbox message comprises the stored position information of mailbox, email accounts name information and mailbox contents.
Index is rebuild server and is sent to by mailbox message on the present node server at this active user place again, is set up the mailbox index of this active user by present node server according to mailbox message.
The present node server 503 at described active user place, described present node server comprises index and sets up module 5031, and described index sets up module 5031 for setting up the mailbox index of described active user according to described mailbox message.
Present node server is when setting up index, the content in mailbox message is needed to carry out participle, such as IKAnalyzer instrument carries out participle, IKAnalyzer instrument is the Chinese word segmentation kit of the lightweight based on java language development that is increased income, after content the most at last in mailbox message all carries out participle, for a user, all mails in its mailbox are carried out the keyword set that participle obtains to preserve, and this keyword set is carried out associating the mailbox index that can obtain this active user with this active user, to inquire about in keyword set when this active user follow-up inquires about mail in its mailbox index.
In an embodiment, node server is when setting up index, no longer the foundation all users being carried out to mailbox index, and only to selecting the user of mailbox full-text search function just can carry out index foundation in step 101, like this, the process of the mailbox index being based upon the user not selecting mailbox full-text search function in mailbox full-text search function is just decreased, compared with prior art, just can save the time of setting up unnecessary index, thus also can improve the efficiency setting up index.
See Fig. 6, show a kind of structural representation of mailbox index establishing system embodiment 2, can comprise:
Whether mailbox FEP 501, select mailbox full-text search function for detecting active user in real time on the interface using mailbox.
Server 502 rebuild in index, for selecting mailbox full-text search function when active user, obtains the mailbox message of described active user, and described mailbox message comprises the stored position information of mailbox, email accounts name information and mailbox contents.
Present node server 503 comprises: judge module 5032, for judging whether described active user is validated user;
Trigger module 5033, for when the result of described judge module 5032 is for being, triggers index and setting up module 5031 for setting up the mailbox index of described active user according to described mailbox message.
Proxy server 601, described proxy server can comprise: detection module 6011 and sending module 6012, and whether described detection module 6011 upgrades the mail in mailbox system for detecting described active user;
Described sending module 6012 is for when the result of described detection module is for being, mail lastest imformation is sent to described present node server, so that described present node server upgrades the mailbox index set up according to described mail lastest imformation.
In the present embodiment, because first can judge whether corresponding user is validated user by judge module 5032 before node server sets up mailbox index, so further can ensure on the basis of embodiment 1 that the user setting up mailbox index is the user selecting mailbox full-text search function; And, the present embodiment is after setting up index to the new user opened, if detect that the user of this selection mailbox full-text search function upgrades any mail in its mailbox system again, the mailbox index of still synchronous this mail of renewal, therefore not only ensure that the index of the new user of unlatching is set up, in turn ensure that the index opening user is set up and can be saved time and raise the efficiency.
See Fig. 7, show the structural representation of a kind of mailbox index establishing system embodiment 3 of the present invention, can comprise:
Whether mailbox FEP 501, select mailbox full-text search function for detecting active user in real time on the interface using mailbox.
Mailbox system database 701, for preserving the mailbox message of the user of all selection mailbox full-text search functions;
Mailbox system database 701 can be used for storing specially the mailbox message of all users, the mailbox message of the user having selected the user of mailbox full-text search function and non-selected mailbox full-text search function can be comprised, need if follow-up like this mailbox message inquiring about arbitrary user, can read in this mailbox system database.
Server 502 rebuild in index, read the mailbox message of described active user by the proxy interface of described mailbox system database from mailbox system database, and described mailbox message comprises the stored position information of mailbox, email accounts name information and mailbox contents;
Caching server 702, the user list in described caching server is for preserving the user profile of the user of all selection mailbox full-text search functions;
The present embodiment also needs the user profile of the user selecting mailbox full-text search function to be saved in the user list in caching server, so just can ensure that the user of all selection mailbox full-text search functions is in this user list.
The node server information at user place can also be preserved in this caching server 702, such as, corresponding relation between preservation user account name and node server identify, then inquire the position of the node server at some user places in the follow-up corresponding relation preserved from caching server, mailbox FEP after detecting that user opens mailbox full-text search function, being saved to the location information synchronizing of the user profile of this user and the node server at place in this caching server that can be synchronous.
Present node server 503 can comprise: judge module 5032, judges whether the user profile of described active user is kept in the user list in described caching server;
Trigger module 5033, for when the result of described judge module is for being, triggers described index and setting up module 5031 for setting up the mailbox index of described active user according to described mailbox message.
In the present embodiment, by preserving the mailbox message of all users in mailbox system database, just can by proxy interface very easily from wherein reading mailbox message, and the user profile of the user of all selection mailbox full-text search functions is also saved in the user list in caching server by the present embodiment, so just judge whether user is validated user by judging whether user is kept in user list, also can ensure that reducing unnecessary index sets up, and can also improve the efficiency that index is set up simultaneously.
The present invention also provides a kind of mailbox search system, and shown in figure 8, be the structural representation of mailbox search system embodiment, this mailbox search system comprises aforesaid mailbox index establishing system; Wherein, described mailbox FEP 501 can also comprise:
Acquisition module 801, for obtaining search keyword and the node server to be checked at described inquiring user place of inquiring user input; Described inquiring user is the registered user having opened mailbox full-text search function;
Search module 802, for searching the mailbox index with described search Keywords matching on described node server to be checked;
Display module 803, for showing described inquiring user by the mail corresponding to the mailbox found index.
In the present embodiment, for be selected the user of mailbox full-text search function carry out mailbox retrieval time situation, because this user saves the time when setting up mail index, so obviously this user inquiry mail in, also can further save inquiry mail efficiency.
Be understandable that, the present invention can be used in numerous general or special purpose computing system environment or configuration.Such as: personal computer, server computer, handheld device or portable set, laptop device, multicomputer system, system, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, the distributed computing environment comprising above any system or equipment etc. based on microprocessor.
The present invention can describe in the general context of computer executable instructions, such as program module.Usually, program module comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the present invention in a distributed computing environment, in these distributed computing environment, be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium comprising memory device.
It should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
For system embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.System embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
The above is only the specific embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (8)

1. a mailbox index establishing method, is characterized in that, is saved in the user list in caching server by the user profile of the user of all selection mailbox full-text search functions; Comprise:
Mailbox FEP detects active user in real time and whether on the interface using mailbox, selects mailbox full-text search function;
If so, then index is rebuild server and is obtained the mailbox message of described active user, and described mailbox message comprises the stored position information of mailbox, email accounts name information and mailbox contents;
Described mailbox message is sent to the present node server at described active user place, described present node server judges whether the user profile of described active user is kept in the user list in described caching server, if so, then set up the mailbox index of described active user according to described mailbox message by described present node server.
2. method according to claim 1, is characterized in that, after described present node server to set up the mailbox index of described active user according to described mailbox message, described method also comprises:
Detect described active user whether to upgrade the mail in mailbox system;
If so, then mail lastest imformation is sent to described present node server, according to described mail lastest imformation, the mailbox index set up is upgraded by described present node server.
3. method according to claim 1, is characterized in that, described method also comprises:
The mailbox message of described active user is saved in mailbox system database;
Then corresponding, described acquisition selects the mailbox message of the user of mailbox full-text search function to be specially:
From mailbox system database, the mailbox message of described active user is read by the proxy interface of described mailbox system database.
4. a mailbox searching method, is characterized in that, adopts the method for claim 1 to set up mailbox index; This searching method comprises:
Obtain the search keyword of inquiring user input and the node server to be checked at described inquiring user place; Described inquiring user is the registered user having opened mailbox full-text search function;
Described node server to be checked is searched the mailbox index with described search Keywords matching;
Mail corresponding to the mailbox index found is showed described inquiring user.
5. a mailbox index establishing system, is characterized in that, comprising:
Caching server, the user list in described caching server is for preserving the user profile of the user of all selection mailbox full-text search functions;
Whether mailbox FEP, select mailbox full-text search function for detecting active user in real time on the interface using mailbox;
Server rebuild in index, for selecting mailbox full-text search function when active user, obtains the mailbox message of described active user, and described mailbox message comprises the stored position information of mailbox, email accounts name information and mailbox contents;
The present node server at described active user place, described present node server comprises index and sets up module, and described index sets up module for setting up the mailbox index of described active user according to described mailbox message; Described present node server also comprises: judge module, for judging whether the user profile of described active user is kept in the user list in described caching server; Trigger module, for when the result of described judge module is for being, triggers described index and setting up module.
6. system according to claim 5, is characterized in that, described mailbox index establishing system also comprises:
Proxy server, described proxy server comprises detection module and sending module, and whether described detection module upgrades the mail in mailbox system for the user detected in the user list of described caching server;
Described sending module is used for, when the result of described detection module is for being, mail lastest imformation is sent to the node server upgrading user place, so that the node server at described renewal user place upgrades the mailbox index set up according to described mail lastest imformation.
7. system according to claim 5, is characterized in that, described mailbox index establishing system also comprises:
Mailbox system database, for preserving the mailbox message of the user of all selection mailbox full-text search functions;
Then corresponding, described index to rebuild server specifically for the mailbox message being read described active user by the proxy interface of described mailbox system database from mailbox system database.
8. a mailbox search system, is characterized in that, comprising: mailbox index establishing system as claimed in claim 5; Wherein, described mailbox FEP also comprises:
Acquisition module, for obtaining search keyword and the node server to be checked at described inquiring user place of inquiring user input; Described inquiring user is the registered user having opened mailbox full-text search function;
Search module, for searching the mailbox index with described search Keywords matching on described node server to be checked;
Display module, for showing described inquiring user by the mail corresponding to the mailbox found index.
CN201210185946.0A 2012-06-06 2012-06-06 Mailbox index building method and system and mailbox search method and system Active CN102799611B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210185946.0A CN102799611B (en) 2012-06-06 2012-06-06 Mailbox index building method and system and mailbox search method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210185946.0A CN102799611B (en) 2012-06-06 2012-06-06 Mailbox index building method and system and mailbox search method and system

Publications (2)

Publication Number Publication Date
CN102799611A CN102799611A (en) 2012-11-28
CN102799611B true CN102799611B (en) 2015-04-08

Family

ID=47198721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210185946.0A Active CN102799611B (en) 2012-06-06 2012-06-06 Mailbox index building method and system and mailbox search method and system

Country Status (1)

Country Link
CN (1) CN102799611B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647694B (en) * 2013-09-26 2017-01-25 新浪网技术(中国)有限公司 E-mail cleaning method and device
CN106775711B (en) * 2016-12-14 2020-10-23 浙江翼信科技有限公司 Information processing method, device and computer-readable storage medium for contact persons

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072200A (en) * 2007-05-11 2007-11-14 腾讯科技(深圳)有限公司 Method and device for obtaining electronic mail reply and relay state
CN101521634A (en) * 2009-04-01 2009-09-02 北京亿企通信息技术有限公司 Method for realizing fulltext retrieval in E-mail system
CN102023991A (en) * 2009-09-21 2011-04-20 中兴通讯股份有限公司 Method and device for updating indexes on terminal and sorting search results on the basis of updated indexes
CN102404341A (en) * 2011-12-22 2012-04-04 中标软件有限公司 Method and device for monitoring E-mail user behaviors

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8364663B2 (en) * 2008-09-05 2013-01-29 Microsoft Corporation Tokenized javascript indexing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072200A (en) * 2007-05-11 2007-11-14 腾讯科技(深圳)有限公司 Method and device for obtaining electronic mail reply and relay state
CN101521634A (en) * 2009-04-01 2009-09-02 北京亿企通信息技术有限公司 Method for realizing fulltext retrieval in E-mail system
CN102023991A (en) * 2009-09-21 2011-04-20 中兴通讯股份有限公司 Method and device for updating indexes on terminal and sorting search results on the basis of updated indexes
CN102404341A (en) * 2011-12-22 2012-04-04 中标软件有限公司 Method and device for monitoring E-mail user behaviors

Also Published As

Publication number Publication date
CN102799611A (en) 2012-11-28

Similar Documents

Publication Publication Date Title
CN109074354B (en) Method and terminal equipment for displaying candidate items
EP2856342B1 (en) Recommending candidate terms based on geographical location
US10928996B2 (en) Systems, devices and methods for electronic determination and communication of location information
US11436266B2 (en) Method and apparatus for processing information of a terminal
CN109889426B (en) Information processing method, device and system based on instant messaging
KR101267006B1 (en) A method of linking online document and instnt message and a mobile terminal linking online document and instnt message in a chatting window of instnt messaging service
CN103377652A (en) Method, device and equipment for carrying out voice recognition
CN103533152A (en) Short message processing method and system of mobile terminal
US8762385B2 (en) Methods and systems for implementing email recipient templates
CN103425777A (en) Intelligent short message classification and searching method based on improved Bayesian classification
CN107168599B (en) Instant messaging method and device
CN108427761B (en) News event processing method, terminal, server and storage medium
CN104575494A (en) Speech processing method and terminal
US9843556B2 (en) Address book information service system, and method and device for address book information service therein
CN103493047A (en) Dictionary database update device, input system, input method, and terminal
CN103037338A (en) Signature inserting method of contact information and communication terminal
KR101606319B1 (en) Method of push messages management using database
CN102799611B (en) Mailbox index building method and system and mailbox search method and system
WO2018120882A1 (en) Method for acquiring event information on mobile terminal and mobile terminal
CN108595141A (en) Pronunciation inputting method and device, computer installation and computer readable storage medium
KR101858544B1 (en) Information processing method and apparatus
US20070150541A1 (en) Inbox management for threaded message views
KR102538098B1 (en) Method and apparatus for processing information of terminal
CN102567121B (en) Realize the method and apparatus of converged communication
KR101655771B1 (en) Method and apparatus for customizing user interface using widget

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230424

Address after: Room 501-502, 5/F, Sina Headquarters Scientific Research Building, Block N-1 and N-2, Zhongguancun Software Park, Dongbei Wangxi Road, Haidian District, Beijing, 100193

Patentee after: Sina Technology (China) Co.,Ltd.

Address before: 100080, International Building, No. 58 West Fourth Ring Road, Haidian District, Beijing, 20 floor

Patentee before: Sina.com Technology (China) Co.,Ltd.

TR01 Transfer of patent right