Scope testing of documents in a search engine using document to folder mapping
First Claim
1. In a hierarchically-organized system of documents and folders, a method of responding to a query with at least one document that matches a specified scope from among one or more documents which have been retrieved based on specified criteria, the method comprising the steps of:
- selecting a retrieved document as a current document;
obtaining an identifier of the current document;
obtaining an identifier of a parent folder of the current document;
accessing a data structure to determine scope information of the current document, the data structure including a flag indexed by the identifier of the parent folder wherein the flag has a value indicative of the whether the current document is in scope; and
returning information for the current document in response to the query when the value of the flag equals a predetermined value.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and mechanism for responding to a query in a hierarchically organized system of documents and folders. In response to the query, a set of documents is retrieved based on specified criteria. Only documents in that set which match a specified scope are returned in a result set. Scope testing is performed on each of the documents in the set by obtaining a document identifier of each document, and then using that document identifier to obtain a document identifier of the parent folder thereof. The document identifier of the parent folder is used as a key to a data structure, which stores flags indicative of whether parent folders are in the specified scope. If the flag for a given parent folder indicates that the parent folder is in scope, the document having that parent is returned in the result set. If the flag indicates that the current document is not in scope, that document is not returned. If there was not an entry in the data structure for that key, prefix matching is performed on the parent folder to determine whether it is in scope. The parent folder scope information is then added to the data structure as a flag indexed by the document identifier of the parent folder.
456 Citations
31 Claims
-
1. In a hierarchically-organized system of documents and folders, a method of responding to a query with at least one document that matches a specified scope from among one or more documents which have been retrieved based on specified criteria, the method comprising the steps of:
-
selecting a retrieved document as a current document; obtaining an identifier of the current document; obtaining an identifier of a parent folder of the current document; accessing a data structure to determine scope information of the current document, the data structure including a flag indexed by the identifier of the parent folder wherein the flag has a value indicative of the whether the current document is in scope; and returning information for the current document in response to the query when the value of the flag equals a predetermined value. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. In a hierarchically-organized system of documents and folders, a mechanism for responding to a query with at least one document that matches a specified scope from among one or more documents which have been retrieved based on specified criteria, comprising:
-
means for selecting a retrieved document as a current document; means for obtaining an identifier of the current document; means for obtaining an identifier of a parent folder of the current document; means for accessing a data structure to determine scope information of the current document, the data structure including a flag indexed by the identifier of the parent folder wherein the flag has a value indicative of whether the current document is in scope; and means for returning information for the current document in response to the query when the value of the flag indicates the document is in scope. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20)
-
-
21. In a query engine, a mechanism for responding to a query, comprising:
-
a criteria matching component for retrieving one or more documents in response to a user specified restriction; and a scope testing component for selecting each of the retrieved documents in response to a user specified scope, the scope testing component including means for obtaining an identifier of a selected one of the documents, means for accessing a table indexed by the identifier of the current document to obtain an identifier of a parent folder above the current document, means for accessing a data structure indexed by the identifier of the parent folder, the data structure including a flag indicative of the scope of documents stored below the parent folder, and means for returning information for the current document in response to the query when the flag equals a predetermined value.
-
-
22. In a query engine having a criteria matching component for retrieving documents in response to a user specified restriction, a method of determining the scope of at least one of the plurality of documents in response to a scope specification, the method comprising the steps of:
-
selecting a retrieved document as a current document, obtaining an identifier of the current document, obtaining an identifier of a parent folder of the current document, accessing a data structure using the identifier of the parent folder as an index, the data structure including flags indexed by the identifiers of parent folders; receiving a response from the data structure, the response comprising a flag having a value indicative of the whether the current document is in scope, or an indication that the parent folder was not indexed in the data structure; and when the flag is received, determining if the value indicates that the document is in scope, and if in scope, returning information for the current document in response to the query; and when the indication that the parent folder was not indexed is received, comparing the parent folder against the scope specification to determine the scope of the current document, storing in the data structure a flag indexed by the parent folder, the flag having a value indicative of the whether the current document is in scope, and if in scope, returning information for the current document in response to the query. - View Dependent Claims (23)
-
-
24. In a hierarchically-organized system of documents and folders, a method of responding to a query with at least one document that matches a specified scope from among one or more documents which have been retrieved based on specified criteria, the method comprising the steps of:
-
selecting a retrieved document as a current document; obtaining an identifier of the current document; obtaining an identifier of a parent folder of the current document; accessing a data structure, the data structure including a flag indexed by the identifier of the parent folder wherein the flag has a value indicative of the whether the current document is in scope; returning information for the current document in response to the query when the value of the flag equals a predetermined value; selecting another retrieved document as a second current document; obtaining an identifier of the second current document; obtaining an identifier of a second parent folder of the second current document; accessing the data structure with the identifier of the second parent folder as an index thereto; receiving a value from the data structure indicating that the identifier of the second parent folder does not correspond to an entry in the data structure; comparing the second parent folder with the specified scope; and adding an entry to the data structure indexed by the identifier of the second parent folder, the entry including a value indicative of whether the second parent folder corresponds to the specified scope. - View Dependent Claims (25, 26)
-
-
27. In a hierarchically-organized system of documents and folders, a method of responding to a query with at least one document that matches a specified scope from among one or more documents which have been retrieved based on specified criteria, wherein the query specifies at least one folder, the method comprising the steps of:
-
selecting a retrieved document as a current document; obtaining an identifier of the current document; obtaining an identifier of a parent folder of the current document; accessing a data structure, the data structure including a flag indexed by the identifier of the parent folder wherein the flag has a value indicative of the whether the current document is in scope; returning information for the current document in response to the query when the value of the flag equals a predetermined value; and priming the data structure with a flag indexed by an identifier of the at least one folder specified in the query, the flag having a value indicating that the at least one folder is in scope.
-
-
28. In a hierarchically-organized system of documents and folders, a method of responding to a query with at least one document that matches a specified scope from among one or more documents which have been retrieved based on specified criteria, the method comprising the steps of:
-
selecting a retrieved document as a current document; obtaining an identifier of the current document; obtaining an identifier of a parent folder of the current document; accessing a data structure, the data structure including a flag indexed by the identifier of the parent folder wherein the flag has a value indicative of the whether the current document is in scope; returning information for the current document in response to the query when the value of the flag equals a predetermined value indicating that the document is in scope; obtaining an identifier of a folder hierarchically below the parent folder; and entering at least one additional flag into the data structure indexed by the identifier of the folder below the parent folder, the flag having a value indicating that the folder below the parent folder is in scope.
-
-
29. In a hierarchically-organized system of documents and folders, a mechanism for responding to a query with at least one document that matches a specified scope from among one or more documents which have been retrieved based on specified criteria, comprising:
-
means for selecting a retrieved document as a current document; means for obtaining an identifier of the current document; means for obtaining an identifier of a parent folder of the current document; means for accessing a data structure, the data structure including a flag indexed by the identifier of the parent folder wherein the flag has a value indicative of whether the current document is in scope; and means for returning information for the current document in response to the query when the value of the flag indicates the document is in scope; means for selecting another retrieved document as a second current document, means for obtaining an identifier of the second current document; means for obtaining an identifier of a second parent folder of the second current document; means for accessing a data structure with the identifier of the second parent folder as an index thereto; means for receiving a value from the data structure indicating that the identifier of the second parent folder does not correspond to an entry in the data structure; means for comparing the second parent folder with the specified scope; and means for adding an entry to the data structure indexed by the identifier of the second parent folder, the entry including a value indicative of whether the second parent folder corresponds to the specified scope. - View Dependent Claims (30)
-
-
31. In a hierarchically-organized system of documents and folders, a mechanism for responding to a query with at least one document that matches a specified scope from among one or more documents which have been retrieved based on specified criteria, comprising, means for selecting a retrieved document as a current document, means for obtaining an identifier of the current document, means for obtaining an identifier of a parent folder of the current document, and means for accessing a data structure, the data structure including a flag indexed by the identifier of the parent folder wherein the flag has a value indicative of whether the current document is in scope;
-
means for returning information for the current document in response to the query when the value of the flag indicates the document is in scope; and when the value of the flag indicates the document is not in scope, means for obtaining an identifier of a folder hierarchically below the parent folder, and means for entering at least one additional flag into the data structure indexed by the identifier of the folder below the parent folder, the flag having a value indicating that the folder below the parent folder is not in scope.
-
Specification