A kind of search method and system
Technical field
The present invention relates to information retrieval technique, relate in particular to a kind of search method and system.
Background technology
Retrieval has been done many valuable information fusions as a kind of important means of obtaining information, for the user provides abundant information resources, progressively is subjected to more and more people's favor, has become indispensable important tool of information age.
Every field is being used retrieval widely, uses for its field and brings abundant commercial value, and for example people, document searching are searched in the friend-making of Web Community; Shopping search in the online shopping mall; Webpage search; The search of books paper; News search etc.And in these fields, user right also is its primary demand, the control of authority in for example individual privacy setting in the community, group's resource sharing, the mhkc, the interior article resource sharing of circle of online shopping mall etc.But there is conflict in these two primary demands of the comprehensive and user right of search, and for example personal information is reluctant searchedly to come out or only be ready to be searched for out by friend or some people; The mhkc keeper does not wish the people search of model by other of this mhkc; Some senior group only wishes in the group shared resource etc.So, how for the user provides open retrieval platform, can protect privacy and the interests of user and small collectives again, become a difficult problem.
In the existing correlation technique, safety search engine system based on access control mainly comprises: database server, single-sign-on module, user profile describing module, crawl device module, query and search module and index database, and this system is described user profile according to the resource security rank; The crawl device module is obtained the authority of the managed resource of creeping and is gathered the resource content that is subjected to security control; Return corresponding addressable the Resources list according to user's key word of the inquiry and user's safe class, realize the purpose of security control.
As can be seen, though the prior art scheme has been carried out more weak control of authority in some specific fields (as the resource security field) to resource, but this adaptation of methods face is narrower, and it is dumb, the flexible and changeable personalized retrieval demand based on user right can't be satisfied, the demand for control to user right can not be satisfied in Web Community's construction.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of search method and system, be used for to solve that prior art exists weak to access authorization for resource control, retrieve inflexible problem.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of search method comprises:
Permissions list is set, and described permissions list comprises with the next item down or multinomial: authority information, user profile, group's information, document information;
After obtaining the key word of user's input, retrieve according to described key word and described permissions list.
Described key word comprises with the next item down or multinomial: authority information, user profile, group's information, document information.
When the key word of user's input is user profile, describedly be retrieved as according to key word and permissions list: be key word with user profile, retrieval is with the next item down or multinomial in described permissions list: the group's information under the authority information of this user own, this user, belong to this user's document information;
When the key word of user's input is group's information, describedly be retrieved as according to key word and permissions list: be key word with group's information, retrieval is with the next item down or multinomial in described permissions list: the monarchial power limit information of this group, this group subordinate's user profile, this group subordinate's user's document information;
When the key word of user's input is authority information, describedly be retrieved as according to key word and permissions list: be key word with the authority information, retrieval is with the next item down or multinomial in described permissions list: the group's information under the user profile under this authority, this authority, the document information under this authority;
When the key word of user's input is authority information, describedly be retrieved as according to key word and permissions list: be key word with the document information, retrieval is with the next item down or multinomial in described permissions list: the user profile of the authority information of the document, the document ownership, group's information that the user was belonged to of the document ownership.
A kind of searching system comprises: permissions list arranges module, key word acquisition module and retrieval module; Wherein,
Described permissions list arranges module, is used for permissions list is set, and described permissions list comprises with the next item down or multinomial: authority information, user profile, group's information, document information;
Described key word acquisition module is used for obtaining the key word of user's input;
Described retrieval module is used for the key word that obtains according to the key word acquisition module, and the permissions list that permissions list arranges the module setting is retrieved.
Described key word acquisition module, concrete be used for obtaining user's input with the next item down or multinomial information: authority information, user profile, group's information, document information.
When the key word that the key word acquisition module obtains is user profile, described retrieval module specifically is used for: be key word with user profile, retrieval in the permissions list that module arranges be set with the next item down or multinomial at permissions list: the group's information under the authority information of this user own, this user, belong to this user's document information;
When the key word that the key word acquisition module obtains is group's information, described retrieval module specifically is used for: be key word with group's information, retrieval be set in the permissions list that module arranges with the next item down or multinomial at permissions list: the monarchial power limit information of this group, this group subordinate's user profile, this group subordinate's user's document information;
When the key word that the key word acquisition module obtains is authority information, described retrieval module specifically is used for: be key word with the authority information, retrieval be set in the permissions list that module arranges with the next item down or multinomial at permissions list: the group's information under the user profile under this authority, this authority, the document information under this authority;
When the key word that the key word acquisition module obtains is authority information, described retrieval module specifically is used for: be key word with the document information, retrieval be set in the permissions list that module arranges with the next item down or multinomial at permissions list: the user profile of the authority information of the document, the document ownership, group's information that the user was belonged to of the document ownership.
Search method of the present invention and system arrange permissions list, and described permissions list comprises with the next item down or multinomial: authority information, user profile, group's information, document information; After obtaining the key word of user's input, retrieve according to described key word and described permissions list.The present invention introduces the user right coupling by user right is set during retrieval, can strengthen the control of authority to resource, realizes the demand that user right and retrieval organically combine, and improves the dirigibility of retrieval.
Description of drawings
Fig. 1 is the schematic flow sheet of search method of the present invention;
Fig. 2 is that the embodiment of the invention is based on the detailed search schematic flow sheet of user right.
Embodiment
User right described in the present invention comprises personal authority and monarchial power limit, and personal authority refers to that mainly the user arranges the authority that can self space, document, resource etc. accessed in community; The monarchial power limit mainly refers to BBS in the community, the access rights that column, group etc. arrange resource in the group.
Fig. 1 is the schematic flow sheet of search method of the present invention, and the present invention has realized the retrieval based on user right on general search method basis, and as shown in Figure 1, this method comprises:
Step 101: permissions list is set, and described permissions list comprises at least with the next item down or multinomial: authority information, user profile, group's information, document information.
Need to prove that permissions list can be stored in front end, also can be stored in the backstage.
Step 102: after obtaining the key word of user's input, retrieve according to described key word and described permissions list.
Here, the key word of user's input can comprise with the next item down or multinomial: authority information, user profile, group's information, document information.
For example, front end is brought user ID into, and perhaps by the permissions list on user ID inquiry backstage, described permissions list can comprise: the user ID tabulation that can visit, group ID tabulation and permission ID tabulation etc.
Retrieval based on authority mainly contains three kinds of methods:
1) filter based on document/user/group's authority itself:
Detect user, document, group's authority setting own, filter out the result of the demand of not meeting.
2) filter based on permissions list:
According to permissions list, judge that user under the search file, group, authority are whether in permissions list, to filter out the not result in tabulation.
3) retrieve based on permissions list:
The unit (user ID and/or group ID and/or permission ID and/or document id) that obtains in the permissions list is key word, retrieves, and result for retrieval is namely within the permissions list range of control.
In the practical application, can the flexible combination said method, table 1 has been described the contact of input, method, output:
Table 1
For example, when the key word of user's input is user profile, describedly be retrieved as according to key word and permissions list: be key word with user profile, retrieval is with the next item down or multinomial in described permissions list: the group's information under the authority information of this user own, this user, belong to this user's document information;
When the key word of user's input is group's information, describedly be retrieved as according to key word and permissions list: be key word with group's information, retrieval is with the next item down or multinomial in described permissions list: the monarchial power limit information of this group, this group subordinate's user profile, this group subordinate's user's document information;
When the key word of user's input is authority information, describedly be retrieved as according to key word and permissions list: be key word with the authority information, retrieval is with the next item down or multinomial in described permissions list: the group's information under the user profile under this authority, this authority, the document information under this authority;
When the key word of user's input is authority information, describedly be retrieved as according to key word and permissions list: be key word with the document information, retrieval is with the next item down or multinomial in described permissions list: the user profile of the authority information of the document, the document ownership, group's information that the user was belonged to of the document ownership.
The embodiment of the invention can be as shown in Figure 2 based on the detailed search flow process of user right.
The present invention also correspondingly discloses a kind of searching system, and this system comprises: permissions list arranges module, key word acquisition module and retrieval module; Wherein,
Described permissions list arranges module, is used for permissions list is set, and described permissions list comprises with the next item down or multinomial: authority information, user profile, group's information, document information;
Described key word acquisition module is used for obtaining the key word of user's input;
Described retrieval module is used for the key word that obtains according to the key word acquisition module, and the permissions list that permissions list arranges the module setting is retrieved.
Described key word acquisition module, concrete be used for obtaining user's input with the next item down or multinomial information: authority information, user profile, group's information, document information.
When the key word that the key word acquisition module obtains is user profile, described retrieval module specifically is used for: be key word with user profile, retrieval in the permissions list that module arranges be set with the next item down or multinomial at permissions list: the group's information under the authority information of this user own, this user, belong to this user's document information;
When the key word that the key word acquisition module obtains is group's information, described retrieval module specifically is used for: be key word with group's information, retrieval be set in the permissions list that module arranges with the next item down or multinomial at permissions list: the monarchial power limit information of this group, this group subordinate's user profile, this group subordinate's user's document information;
When the key word that the key word acquisition module obtains is authority information, described retrieval module specifically is used for: be key word with the authority information, retrieval be set in the permissions list that module arranges with the next item down or multinomial at permissions list: the group's information under the user profile under this authority, this authority, the document information under this authority;
When the key word that the key word acquisition module obtains is authority information, described retrieval module specifically is used for: be key word with the document information, retrieval be set in the permissions list that module arranges with the next item down or multinomial at permissions list: the user profile of the authority information of the document, the document ownership, group's information that the user was belonged to of the document ownership.
As can be seen, the present invention has realized the user right control in the searching system, has organically combined the demand of retrieval and user right.By in retrieving, introducing the method that user right filters, realized the flexible control to result for retrieval.This method had both been protected user's individual privacy, had satisfied user's authority individual demand again, had also made things convenient for the management of community to user right simultaneously.Communityization, privacy of user, general Search Requirement are merged into one well.Can effectively strengthen the user to the sense of security of result for retrieval and the usage rate of the user of community, have bigger commercial value.
The above is preferred embodiment of the present invention only, is not for limiting protection scope of the present invention.