# Patent

## Title
Techniques for web site integration

## Abstract

Disclosed is a method and device for finding documents, such as Web pages, for presentation to a user, automatically or in response to a user expression of interest, which documents are part of a Web site being accessed by the user, and which documents relate to a document, such as a Web page, being accessed in the Web site. The method takes advantage of information retrieval techniques. The method generates the search query to use to find documents by reference to the text of the document in the Web site being accessed by the user. The method further uses a weighting function to weigh the terms used in the search query.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
This application is a continuation and claims the benefit of priority under 35 U.S.C. Section 120 of U.S. application Ser. No. 12/497,887, filed Jul. 6, 2009 now U.S. Pat. No. 8,756,212, which is a continuation of U.S. application Ser. No. 11/138,028, filed May 26, 2005, now U.S. Pat. No. 8,015,173, issued Sep. 6, 2011, which is a continuation of U.S. application Ser. No. 09/566,511, filed May 8, 2000, now U.S. Pat. No. 6,912,525, issued Jun. 28, 2005. The disclosure of each prior application is considered part of and is incorporated by reference in the disclosure of this application.


TECHNICAL FIELD
This invention relates to techniques for retrieving material on the World Wide Web, and more particularly to methods of presenting portions of Web sites which may be of interest, to a user of another portion of the Web site.
BACKGROUND OF THE INVENTION
The Internet, of which the World Wide Web is a part, consists of a series of interlinked computer networks and servers around the world. Users of one server or network which is connected to the Internet may send information to, or access information on, any other network or server connected to the Internet by the use of various computer programs which allow such access, such as Web browsers. The information is sent to or received from a network or server in the form of packets of data.
The World Wide Web portion of the Internet consists of a subset of interconnected Internet sites which are characterized by containing information in a format suitable for graphical display on a computer screen. Each site may consist of one or more separate pages. Pages in turn frequently contain links to other pages within the site, or to pages in other Web sites, facilitating the user's rapid movement from one page or site to another.
The Web is so large that users frequently call upon specialized programs such as Web browsers or search engines to help them locate information of interest on the Web. These specialized programs may analyze information about Web sites in a variety of ways, select a set of Web addresses that are expected to meet the user's criteria, and present this list, often in rank order, to the user. Or the specialized program may directly connect the user to the address selected as meeting the user's criteria.
Increasingly, sites on the Web are becoming larger, as companies increasingly use the Web to facilitate large scale electronic commerce and for other purposes.
Some sites which make themselves available to users, and to which users are directed by Web browsers or search engines, may be very large, and may have available several types of information. For example, an electronic commerce or shopping site may have material such as consumer guides, electronic yellow pages, and the like. It may be useful, when a user is accessing one portion of such a site, or when the user requests information of one type, also to be able to provide related information of another type.
Some prior methods of identifying and retrieving related information maintained in the Web site have not proven fully satisfactory. For example, it may be possible to manually associate items of data in a Web site with key words, such that when a user accesses or requests information of one type, such as consumer guide material, information of another type with the same key word or words is also returned or otherwise made available to the user. However, methods requiring the manual assignment of key words may be difficult to implement and update, particularly if the underlying information is frequently changing, as may be the case in a dynamic field such as electronic commerce. It therefore may be useful to have available a method of automatically identifying related information of another type when a user accesses one portion of a Web site, or when a user inquiry is received that seeks information of one type.
A limitation in current methodology that may limit the ability so to provide related information is the difficulty in maintaining in a conveniently and quickly usable form information about the content of a site on the Web. An efficient specialized program for generating lists of useful material in response to user inquiries may utilize information about a Web site that is stored in data bases accessible to the specialized program.
Inverted term lists are frequently utilized to store information about Web pages or sites in a database. An inverted term list may be prepared for each term present in the collection of material being analyzed. (Hereinafter, for simplicity, “document” may be used to refer to the items, such as pages or other portions of Web sites, in the Web site being analyzed. A “term” may be any word, number, acronym, abbreviation or other collection of letters, numbers and symbols which may be found in a fixed order in a document.) Alternatively, lists may be prepared for all terms except certain common words, referred to as stop words, such as “the” or “and.” Alternatively, lists may be prepared only for a specialized subset of terms of special interest, such as technical terms in a particular field, or names.
An inverted term list for a term may contain information about the overall occurrence of that term in the Web site being analyzed. The information which may be maintained in an inverted term list for a given term may include information such as the total number of documents in the Web site in which that term occurs, the total number of occurrences of that term in the documents, and the maximum number of occurrences of that term in any single document, among other things. (Alternatively, some or all of this information may be stored in a lookup table which also contains the address of the inverted term list for the term in question.)
An inverted term list also will include information about the occurrence of that term in particular documents. For each document in which that term occurs, the inverted term list may include information about the location of the document in the Web site, or a reference to a lookup table where such information is stored. The inverted term list may also include the number of occurrences of that term in that document. In addition, the inverted term list may include other information about the occurrences of that term in that document, such as the locations in that document of its occurrences.
An inverted term list may be stored in the form of a linked list or as an array. In a linked list, there may be a header containing the general information that is not specific to a particular document, such as but not limited to the number of occurrences of the term in the Web site, if that information is not maintained in the lookup table. In the linked list there may also be one link for each document in which the term appears. In this arrangement, each link in an inverted term list will contain the location of a document in which that term appears, together with such information about the occurrence of that term in that document as is being maintained, and the address of the next link in the inverted term list. (To save storage space, rather than containing the URL of a document, the inverted term list may contain the address in a lookup table at which the URL is stored. To further save storage space, the inverted term list may store that lookup table address relative to the lookup table address of the prior document in the inverted term list, rather than as an absolute address.)
Inverted term lists are helpful for many techniques for searching large collections of documents for documents of interest. For example, in retrieving portions of a Web site that may be of interest to a user who has accessed another portion of the site, it may be necessary to locate documents from the Web site which contain a particular word. However, if the Web site is large, it is not desirable to conduct a full new search of the Web site for documents containing the specified word. Inverted term lists resolve that problem. To locate documents containing a particular word of interest, it is simply necessary to consult the inverted term list for that word. It is also possible to list the documents in the inverted term list such that those that use the desired word more often are placed at the top of the list; this may help find the most useful document more quickly.
More complicated requests also may be handled with inverted term lists. For example, if it is required to locate documents in which two particular words occur, it is simply necessary to consult the inverted term lists for both words, and to choose any documents which are found on both lists. Again, documents that may be more useful may be placed higher on the list of useful documents, according to considerations such as but not limited to how many occurrences they have of the desired words.
Current techniques for Web searching and retrieval, including techniques for searching and retrieval of information in a large Web site, that do not maintain information about documents in the collection in an accessible data base, other than by means of inverted term lists, may pose problems. In particular, they do not organize and maintain information by the underlying document, rather than by the terms of interest. This leads to a number of problems in retrieving portions of Web sites that may be of interest to a user who has accessed another portion of the Web site, which will now be discussed.
For example, in the course of choosing documents anticipated to be useful to a user, it may be useful to calculate the score a given document will achieve under a particular search query. Under conventional methods, where no information is stored by document in a data base, it is necessary, in order to calculate a document score, to consult an inverted term list for each term in the search query, and to search within each such inverted term list to determine if that term occurs in the document in question. It could be more efficient if in calculating the document score one could avoid consulting inverted term lists for terms which do not occur in the document.
There is a further problem that occurs as a result of the fact that some conventional methods do not store information in a manner organized by document. It is recognized that searches for useful documents can take a relatively long time to process. This is because as the search criteria become complicated, more and more inverted term lists need to be referenced. Moreover, as the underlying Web site becomes bigger, each inverted term list becomes longer, including as it does all references to the term in question in the Web site. An inverted term list is likely to be particularly long if the term in question is relatively common.
Prior efforts to address this problem include refusing to permit the use of common words as part of a search inquiry. As noted above, words such as “the” or “and” may be omitted. Other common words, however, can be of use in narrowing down the search to more useful documents. For example, it might be of interest to find all documents referring to the occurrence of “osteoporosis” in “women.” While searching on “osteoporosis” alone will produce these documents, it may also produce many extraneous documents. It would thus be useful to use the word “women” to refine the search. But this word is very common, and hence is likely to occur in many documents. There is thus a need for a method of making complex searches which include many terms more efficient.
The method that is often referred to as “query by example” is one of a number of prior methods of using the contents of a single document to find similar documents. This may be done, for example, by relevance feedback by having a user begin with a search query, and then by presenting the user with documents selected by means of the query, and allowing the user to identify one (or more) of the resulting documents as relevant. The method then chooses terms from the documents identified as relevant (based upon their statistics) and expands and reruns the query. This method, however, has not been applied to automatically link together portions of a Web site, without the need for explicit hyperlinking or manually indexing the pages.



BRIEF DESCRIPTION OF DRAWINGS
The features of the invention will now become apparent by reference to the following description taken in connection with the accompanying drawings in which:
FIG. 1 is a schematic diagram of a computer system that may be operated according to the present invention.
FIG. 2 illustrates a conventional (prior art) relationship between documents and inverted term lists.
FIG. 3 illustrates conventional (prior art) lookup tables which may be used in conjunction with inverted term lists.
FIG. 4 illustrates a relationship between documents and compressed document surrogates according to the present invention.
FIG. 5 is a flow chart which illustrates a process by which a document score may be calculated, using compressed document surrogates according to the present invention.
FIG. 6 is a flow chart which illustrates a process by which a search query may be carried out, using compressed document surrogates according to the present invention.



SUMMARY OF THE INVENTION
According to the present invention, choosing for presentation to a user who has accessed a document in a Web site, other documents contained in the Web site which may be of interest to the user, includes (a) creating a search query comprising the terms in the document accessed; (b) applying the search query to a collection of documents contained in the Web site, and (c) presenting to the user other documents in the collection which achieve the highest scores on the search query. The search query may be created and applied, and the results presented to the user, automatically when a user accesses the document in the Web site, or in response to a request from the user. The documents may be Web pages. The documents chosen may be selected from the collection of documents according to the scores achieved when evaluating documents in the collection according to a formula giving scores to documents depending upon an occurrence in the documents of terms which occur in the document accessed by the user. A predetermined number of documents may be selected. The predetermined number of documents may be 100. All documents with scores exceeding a predetermined cutoff value may be selected. A score SD of a document D in the collection may be determined by crediting the document D, for each term T in the document accessed by the user which occurs in the document D, with an amount proportional to Robertson's term frequency TFTD and to IDFT. The determination of the documents in the collection which receive the highest scores may be carried out using compressed document surrogates. The score given to a document, as a result of containing a term which occurs in the document accessed by the user, may depend upon how often the term occurs in the document accessed by the user, compared to how often the term occurs in the documents in the Web site. A score SD of a document D in the collection may be determined by crediting the document D, for each term T in the document accessed by the user which occurs in the document D, with an amount proportional to WT, to Robertson's term frequency TFTD and to IDFT. The determination of the documents in the collection which receive the highest scores may be carried out using compressed document surrogates. The search query may further comprise index terms manually assigned to the document accessed. The documents chosen may be selected from the collection of documents according to the scores achieved when evaluating documents in the collection according to a formula giving scores to documents depending upon an occurrence in the documents of terms which occur in the document accessed by the user, and of index terms manually assigned to the document. The score given to a document, as a result of containing a term which occurs in the document accessed by the user, or an index term assigned to the document accessed, may depend upon how often the term occurs in the document accessed by the user, compared to how often the term occurs in the documents in the Web site. The score given to a document, as a result of containing a term which occurs in the document accessed by the user, may depend upon how often the term occurs in the document accessed by the user, compared to how often the term occurs in the documents in the Web site, and the score given to a document, as a result of containing an index term assigned to the document accessed, may depend upon a weight assigned to the index term.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT(S)
Referring to FIG. 1, a computer system 1 includes a workstation 2 having local storage 3. The workstation may also be connected to a local area network 4 and may access to the Internet 5. The Internet 5 may include or be coupled to remote storage 6. The workstation 2 may be any one of a variety of commercially available computers capable of providing the functionality described in more detail below. The local storage 3 may include ROM, RAM, a hard disk, a CD, or any other media capable of containing data and/or programs for the workstation 2 or other data. The local area network 4, which is coupled to and exchanges data with the workstation, may also contain data and/or program information for use by the workstation 2. The Internet 5 may be accessed in a conventional manner by the workstation 2. Alternatively, the workstation 2 may access the Internet 5 through the local area network 4, as shown by the dotted line of FIG. 1. The remote storage 6 may also contain data and/or program information for the workstation 2 or may contain other information, as will become apparent from the description below.
In the system described herein, a user may access a Web site on the Internet 5 from the workstation 2, either directly or through the local area network 4. The user may access the Web site by using a Web browser or search engine of a type that will be familiar to one of ordinary skill in the art.
According to the system, when the user accesses the Web site, he may be given a list of other portions of the Web site which may be of interest to him, based upon the portion of the Web site he is accessing.
The portion of the Web site being accessed may be a Web page, or any other subdivision of the site.
According to the system, information retrieval techniques are utilized to locate other portions of the Web site that may be of interest to one interested in the portion of the Web site accessed.
In one embodiment of the system, when a portion of the Web site is accessed, a search query is formed which comprises the terms in the portion of the Web site being accessed. This query is then used to analyze the other portions of the Web site. In this embodiment, the portions of the Web site analyzed may be Web pages or other convenient subdivisions. (The term “document” will be used to refer to the portions, such as pages or other subdivisions, into which the Web site is divided.)
In the system, each document in the Web site is given a score based upon the occurrence in the document of terms from the document being accessed by the user.
In one embodiment of the system, the scores assigned to a document in the Web site are determined by using a formula which utilizes Robertson's term frequency score, where T0 is the number of terms in the document D being accessed by the user:




  
    
      S
      D
    
    =
    
      
        ∑
        
          T
          =
          1
        
        
          T
          0
        
      
      ⁢
      
        
          TF
          TD
        
        *
        
          IDF
          T
        
      
    
  
  ,




where:

SD is the total score for a document D,
TFTD=Robertson's term frequency for Term T in Document D

    
    
        =NTD/(NTD+K1+K2*(LD/L0)),

where:

    
    


NTD is the number of times the term T occurs in document D,
LD is the length of document D,
L0 is the average length of a document in the Web site, and
K1 and K2 are constants. (In one embodiment, K1 may be assigned a value of 0.5, and K2 1.5, but these values may be varied without departing from the spirit and scope of the invention.) and IDFT=log((N+K3)/NT)/log(N+K4)
where:
N is the number of documents Web site,
NT is the number of documents containing the term T in the Web site,
K3 and K4 are constants. (In one embodiment, K3 may be assigned a value of 0.5, and K4 1.0, but these values may be varied without departing from the spirit and scope of the invention.)
Documents are then ranked in order of their scores SD, and those which achieve the highest score are presented, in order of their scores, to the user. In operation, approximately one hundred documents are presented to the user, but the exact number is not critical, and may be varied without departing from the scope or spirit of the invention.
In another embodiment of the system, the analysis is not carried out, and the list is not returned to the user, unless the user requests a list of related portions of the Web site, as by “clicking” with a mouse on a designated portion of the Web step, or utilizing a similar signaling device. Such devices will be familiar to one of ordinary skill in the art.
In one embodiment of the system, the documents are Web pages.
In another embodiment of the system, the terms in the search query are weighted before the set of documents in the Web site are analyzed. In this embodiment, each term in the search query is assigned a score based upon the frequency of its occurrence in the document being accessed by the user, compared to the frequency of its occurrence on average in documents in the Web site as a whole. In the preferred embodiment, the formula used in weighting terms is:
WT=log(PT(R))/PT(R)), where
WT=the weight assigned to a term T,
PT(R)=the probability the term T occurs in the document being accessed by the user,

    
    
        =NTR/(ΣR NtR), where
    
    


NTR=the number of occurrences of the term T in the document being accessed by the user,
ΣR NtR=the total number of occurrences of terms in the document being accessed by the user,
PT(R)=the probability that the term T occurs in the Web site,

    
    
        =NT/(Σ NtR), where
    
    


NT=the number of occurrences of the term T in the Web site
Σ NtR=the total number of occurrences of terms in the Web site
This particular formula is by no means the only formula that may be used; others will be apparent to one of ordinary skill in the art. For example, without departing from the spirit and scope of the invention, other formulas which attempt to weight terms in documents of interest, such as are used in relevance feedback techniques or query by example techniques, may be used.
In the preferred embodiment, the search query consisting of the terms in the document being accessed by the user then is carried out, with the terms in the query weighted according to the following formula, which is Robertson's term frequency score, where T0 is the number of terms in the document being accessed by the user:




  
    
      S
      D
    
    =
    
      
        ∑
        
          T
          =
          1
        
        
          T
          0
        
      
      ⁢
      
        
          W
          T
        
        *
        
          TF
          TD
        
        *
        
          IDF
          T
        
      
    
  
  ,




where:

SD is the total score for a document D,
WT has the value set forth above,
TFTD=Robertson's term frequency for Term T in Document D

    
    
        =NTD/(NTD+K1+K2*(LD/L0)),

where:

    
    


NTD is the number of times the term T occurs” in document D,
LD is the length of document D,
L0 is the average length of a document in the Web site, and
K1 and K2 are constants. (In one embodiment, K1 may be assigned a value of 0.5, and K2 1.5, but these values may be varied without departing from the spirit and scope of the invention.) and IDFT=log((N+K3)/NT)/log(N+K4)
where:
N is the number of documents in the Web site,
NT is the number of documents containing the term T in the web site,
K3 and K4 are constants. (In one embodiment, K3 may be assigned a value of 0.5, and K4 1.0, but these values may be varied without departing from the spirit and scope of the invention.)
Documents are then ranked in order of their scores SD and those which achieve the highest score are presented, in order of their scores, to the user. In operation, approximately one hundred terms are presented to the user, but the exact number is not critical, and may be varied without departing from the scope or spirit of the invention.
In another embodiment of the system, index terms may be manually assigned to documents, and those terms may be added to the search query which contains the terms found in the document. In one embodiment, the resulting search query terms would not be weighted, while in a further embodiment, the search query terms found in the document and the manually-assigned index terms could be weighted with weights WT according to the formula set forth above. In a further embodiment, the search query terms found in the document could be weighted with weights WT according to the formula set forth above, while the manually-assigned terms could have weights associated with them at the time of their assignment by another means, such as manually.
The remaining aspects of the system all respond to problems which arise out of the fact that many common schema for the maintenance of information about documents in a Web site rely upon the use of inverted term lists to maintain information about the use of various terms in the documents, but do not maintain information about the documents themselves, other than through the inverted term lists.
In order to understand these aspects of the system, it is appropriate first to describe the structure of a conventional inverted term list, and its relationship to the underlying collection of documents about which it contains information. FIG. 2 illustrates one possible conventional relationship between underlying documents in a document collection, such as a set of Web pages in a Web site, and associated inverted term lists which may be used to facilitate the retrieval of desired documents from the collection.
In constructing inverted term lists, it may be necessary to decide what terms should be included. It may be determined to store information with respect to all terms which occur in documents in a collection, or it may be determined to exclude common words such as “the” and “and,” or it may be decided to store information only about certain specified terms, such as those which may occur in a particular field such as a scientific or technical discipline. (A term may be a word, a number, an acronym, an abbreviation, a sequential collection of the above, or any other collection of numerals, letters and/or symbols in a fixed order which may be found in the documents in the collection to be searched.) In general, terms that are considered to be useful for purposes of retrieving documents may be selected. (Hereinafter, the terms about which it has been determined to store information are referred to as the “terms of interest.”)
An inverted term list may be created for each term of interest that is found to occur in any of the documents in the collection. In the example illustrated in FIG. 2, inverted term lists 835, 840, 845 identify, by means of providing a unique document identifier number, every document from the collection in which corresponding terms 836, 841, 846 occur, and state how many times each of the terms 836, 841, 846 occurs in the document. Thus, in FIG. 2 the inverted term list 835 corresponding to the term 836 states how often the term 836 occurs in each of the documents 805, 815, 825 in the collection. In this example, the inverted term list 835 for the term 836 contains an entry for the unique document identifier number of the first document, “1”, and states that the term 836 occurs twice in Document 1 805, then an entry for the unique document identifier number, “2”, of the second document, and a statement that the term 836 occurs once in Document 2 815, then an entry for the unique document identifier number, “3”, of the third document, and a statement that the term 836 occurs twice in Document 3 825, and so on. It will be appreciated by one of ordinary skill in the art that inverted term lists may also contain other information as well, as will be discussed below.
Inverted term lists may be stored as linked lists, or they may be fixed arrays.
Lookup tables may be created in connection with inverted term lists. One lookup table which may be created may provide the locations in the document collection of the documents whose contents have been indexed in the inverted term lists; if the documents are Web pages, the URLs of the pages may be provided. An example of such a lookup table is shown in the upper portion of FIG. 3. The document URLs may be stored in the lookup table in the order of the unique document identifier numbers of the documents. Then, if the inverted term lists contain the document identifier numbers of the documents which contain the term in question, and the lookup table is maintained as a fixed array, the location in the lookup table array of an actual document URL may be determined directly from the document identifier number.
If such a lookup table is not created, inverted term lists may contain the locations in the document collection, such as the URLs, of the documents which contain the term in question.
Another lookup table which may be created may provide information about the terms for use when searches for relevant documents are done using the inverted term lists. An example of such a lookup table is shown in the lower portion of FIG. 3. For each term, this lookup table may contain the English (or other natural language) term itself, the address of the inverted term list for the term, and other information which may be of use in using the inverted term lists to rank documents for relevance, such as, but not limited to, the number of documents in the Web site in which the term occurs, the number of times the term occurs in documents in the Web site, and the maximum term frequency score for the term in any one document in the Web site.
The term frequency scores for the term may be calculated based on any one of a number of formulae which will be familiar to one of ordinary skill in the art, such as but not limited to Robertson's term frequency formula:

TFTD=NTD/(NTD+K1+K2*(LD/L0)),

where:

NTD, is the number of times the term T occurs in document D,
LD is the length of document D,
L0 is the average length of a document in the Web site, and
K1 and K2 are constants. (In one embodiment, K1 may be assigned a value of 0.5, and K2 1.5, but these values may be varied without departing from the spirit and scope of the invention.)
The terms may be stored in this lookup table in any order, such as alphabetical order. For ease of reference they may be stored in the numerical order of unique term identification numbers assigned to each term. If this is done, and the lookup table is maintained as a fixed array, the location of information about a term in the lookup table may be determined directly from the term identification number of the term.
The inverted term lists also may contain the number of documents in the Web site in which the term occurs, the number of times the term occurs in documents in the Web site, and/or the maximum term frequency score for the term in any one document in the Web site, if this information is not maintained in the lookup table which contains the address of the inverted term list for the term. The inverted term list for a term also may contain, not simply the number of times the term occurs in a particular document, but the location in the document at which the term occurs.
A single inverted term list may be maintained for each term of interest. Alternatively, in order to permit more expeditious search query analysis, two inverted term lists may be maintained for each term of interest. The first, or “top” inverted term list, may contain information about an arbitrary number of documents, such as 1000, which have the highest term frequency scores for the term. The second, or “remainder” inverted term list, may contain information about the occurrence of the term in the remaining documents. (If separate top and remainder inverted term lists are maintained, then a lookup table which contains the maximum term frequency scores for terms may contain separate maximum term frequency scores for documents on the term's top inverted term list and for documents on the term's remainder inverted term list.)
In the inverted term lists, information about documents may be stored in order of the term frequency score for the documents, so that the documents with the highest term frequency scores are placed at the top of the inverted term list.
Referring now to FIG. 4, a further aspect of the system comprises a device known as a compressed document surrogate for storing information about a document that is part of the Web site.
It may be determined to store information with respect to all terms which occur in documents in the Web site, or it may be determined to exclude common words such as “the” and “and,” or it may be decided to store information only about certain specified terms, such as those which may occur in a particular field such as a scientific or technical discipline. (A term may be a word, a number, an acronym, an abbreviation, a sequential collection of the above, or any other collection of numerals, letters and/or symbols in a fixed order which may be found in the documents in the collection to be searched.)
Insofar as the compressed document surrogates are to be used in conjunction with inverted term lists, the same set of terms which the inverted term lists cover may be used in the compressed document surrogates. (Hereinafter, the set of terms about which it has been determined to store information are referred to as the “terms of interest.”)
A compressed document surrogate for a particular document comprises a table of desired information about all of the terms of interest which occur in the document, in a suitable order. This desired information may include the number of times the term occurs in the document, and/or the term frequency score for the occurrence of that term in that document, according to Robertson's term frequency formula or any other formula, and/or the location in the document (in absolute terms or relative to the prior occurrence) of each occurrence. (Other relevant information may be added at the discretion of the user without departing from the spirit or scope of the invention.) Alternatively, a compressed document surrogate may simply indicate that a term occurs in the document, with no further information about specific occurrences or about the number of occurrences. A compressed document surrogate may provide the address of the inverted term list for each term of interest which occurs in the document, and/or the address of the location in the inverted term list of the entry for that document. Alternatively, a compressed document surrogate may provide the address of a location in a lookup table of a term of interest which occurs in the document, or information, such as a term identification number, from which the address of a location in a lookup table of the term may be determined.
In the preferred embodiment of a compressed document surrogate illustrated in FIG. 4, it is determined to store information about all terms which occur in documents, other than specified common words. In this embodiment, it is further decided that a compressed document surrogate for a document shall identify each term of interest found in the document, and specify how many times the term occurs in the document, but shall provide no further information about the occurrence of terms in the document.
In this embodiment, the term information in the document surrogates is stored in order of term identification number. Each term is assigned a unique integer identification number. (Term identification numbers are assigned to terms in the order in which the terms are first encountered in the course of constructing the table and associated inverted term lists, so that the first term found in the first document indexed is assigned the term identification number “1”, and so on. Since terms are assigned unique term identification numbers, when a term already assigned a term identification number is encountered again, either in the same or in a subsequent document, no new term identification number is assigned to it.) Rather than storing the term identification numbers themselves, the differences from the previous term identification numbers are stored. For example, the following indicates that Term 1 appears 5 times, Term 10 appears 1 time, and so forth:
(1,5) (10,1) (30,2) (50,3) (100,4).
In the preferred embodiment, where the differences or offsets from the previous term identification numbers are stored, what is actually stored is:
(1,5) (9,1) (20,2) (20,3) (50,4).
By storing the differences instead of the term identification numbers, the numbers to be stored will be considerably smaller. This allows the surrogate to be compressed by using a variable length encoding of the integer values. The differences are encoded using Golomb coding. (Golomb, S. W. 1966. Run-length encodings. IEEE Transactions on Information Theory, vol. 12 no. 3 pp 339-401)
The term counts are encoded in unary, i.e. the number 1 is encoded as 0, 2 is encoded as 10, 3 as 110 etc. Someone of ordinary skill in the art will recognize that other variable length encodings may also be used to encode these values.
By compressing the differences and counts, the document surrogates can be stored in only 10% of the space required by the original text. Similarly, if one were to store the within document position in the surrogate, the difference from the previous position would be stored rather than the absolute position. (Thus, a term occurring in positions 1, 3, 5, and 10 in a document will have this information stored as 1, 2, 2, 5.) As before, the smaller average sizes allow the information to be encoded in fewer bits, thereby saving space.
Thus, in FIG. 4, a surrogate 810 lists a term identification number, “1”, of a first term, Term 1, used in a document 805, and the number of occurrences (two) of Term 1 in the document 805. The surrogate 810 then lists the difference between the term identification number, “1” of the first term, and the term identification number “2” of a second term, Term 2, which occurs in the document 805, namely “1”, and the number of occurrences (two) for Term 2 in the document 805, reflecting that that term is present in the document 805. The surrogate 810 then lists the difference between the term identification number, “2” of the second term, and the term identification number “3” of a third term, Term 3, which occurs in the document 805, namely “1”, and the number of occurrences (one) for Term 3 in the document 805, reflecting that that term is present in the document 805. Note that the surrogate 810 only contains a single entry for Terms 1 and 2, even though the terms occur more than once in the underlying document 805. Similarly, a surrogate 820 for a second document 815 lists the term identification number, “1”, of Term 1, and the number of occurrences (one) of Term 1 in the document 815, because Term 1 is present in the Document 815, but the surrogate 820 does not list Term 2, because Term 2 is not present. The surrogate 820 then lists the difference between the term identification number, “3”, of Term 3, and the term identification number of Term 1, “1”, namely “2”, and the number of occurrences of Term 3, because Term 3 is present, and so on.
Terms may be stored in a surrogate in any suitable order, such as but not limited to alphabetical order. In the preferred embodiment described here, the terms are stored in order of term identification number. In the preferred embodiment, in order to conserve space, further information about terms is stored in a lookup table of the type illustrated in the lower portion of FIG. 3. The location in the lookup table of information concerning the term of interest may be determined from the term identification number, in that the term lookup table is a fixed array and terms are stored in the table in order of the term identification number. For each term, the term lookup table identifies the actual term and contains further information about the term, such as the location of an inverted term list for the term, the number of documents in the collection in which the term occurs, and the maximum term frequency scores for the term in any one document in the term's “top” inverted term list, and in any one document in the term's “remainder” inverted term list.
A further aspect of the system which takes advantage of compressed document surrogates to facilitate carrying out search queries to locate documents in the Web site which may be of interest to a user accessing one document in the Web site may now be illustrated.
It may be necessary, in ranking the documents in the Web site to locate other documents that may be of interest to a user accessing one document in the Web site, to do so by assigning each document in the Web site a score according to whether or not terms in the document accessed by the user occur in the document. The score for a document is determined by searching the inverted term lists for all of the terms which occur in the document being accessed by the user. Because it is not known prior to beginning such a search which of these terms is in the document, it is necessary to search the inverted term lists for all of the terms in the document being accessed by the user to determine the score for a document. Finding whether a given document occurs in an inverted term list may be a relatively time-consuming process, if there are many terms in the document being accessed.
One aspect of the present system, however, may permit a document score to be determined more quickly by the use of the document's compressed document surrogate. Referring to FIG. 5, a process 500 begins at a step 525 by examining a compressed document surrogate for a document to be scored. A term in the document accessed by the user which occurs in the document being scored is identified by using the compressed document surrogate. Then, a step 530 calculates the score resulting from the occurrence of the term in the document being scored by consulting, if necessary, a lookup table and/or inverted term list for the term. Then, a step 540 determines whether any other terms in the document accessed by the user, which are found in the compressed document surrogate, have not yet been analyzed. If all terms in the document accessed by the user that are found in the compressed document surrogate have been analyzed, the process 500 is completed. Otherwise, the process 500 continues by returning to the step 525 to choose the next term in the document accessed by the user which occurs in the document and has not yet been analyzed, and then doing the appropriate calculation and adjustment of score.
In the preferred embodiment, at the step 530 it is not necessary to consult the inverted term list for the term, since the number of occurrences of the term in the document being scored is known from the compressed document surrogate, and the remaining information necessary to calculate the document's score may be determined from the term lookup table by use of the term identification number in the compressed document surrogate, without the need to refer to the inverted term list itself.
A further aspect of the system which takes advantage of compressed document surrogates may now be described.
One formula that may be used to locate other documents in a Web site which may be of interest to a user accessing one document in the Web site is:




  
    
      S
      D
    
    =
    
      
        ∑
        
          T
          =
          1
        
        
          T
          0
        
      
      ⁢
      
        
          W
          T
        
        *
        
          TF
          TD
        
        *
        
          IDF
          T
        
      
    
  
  ,




where:

SD is the total score for a document D,
WT has the value set forth above,
TFTD=Robertson's term frequency for Term T=NTD/(NTD+K1+K2*(LD/L0)),
where:
NTD is the number of times the term T occurs in document D,
LD is the length of document D,
L0 is the average length of a document in the Web site, and
K1 and K2 are constants. (In one embodiment, K1 may be assigned a value of 0.5, and K2 1.5, but these values may be varied without departing from the spirit and scope of the invention.) and IDFT=log((N+K3)/NT)/log(N+K4)
where:
N is the number of documents in the Web site,
NT is the number of documents containing the term T in the Web site,
K3 and K4 are constants. (In one embodiment, K3 may be assigned a value of 0.5, and K4 1.0, but these values may be varied without departing from the spirit and scope of the invention.).
The formula set forth above is by no means the only formula that may be used; others will be apparent to one of ordinary skill in the art. The formula among others takes advantage of the fact that a “rare” term is a more powerful predictor of document utility than a common term, by giving greater weight in ranking documents to those that occur relatively less often in the Web site. For example, if it is desired to find documents referring to osteoporosis in women, the term “osteoporosis” alone, if it occurs in the Web site in fewer documents than the term “women,” may be of more utility as a filter than the term “women.” However, it may also be true that, among documents which refer to osteoporosis, those that also mention women are more likely to be useful than those that do not. Hence, the formula does not exclude the common term from the search process entirely.
According to the system described herein, it is possible to reduce the time taken to analyze a search query consisting of the set of terms in the document being accessed by the user, and return a ranked list of N documents which may be of interest to the user, by using compressed document surrogates.
Referring to FIG. 6, a preferred embodiment for doing so is illustrated. A process 600 begins with a step 605 wherein it is determined to begin using top inverted term lists for the terms in the query. (The query consists of the terms in the document being accessed.)
According to FIG. 6, the process 600 then iterates until a sufficient number of candidate documents for inclusion in the final ranking of N documents is generated.
The iterative portion of the process 600 begins at a step 610 by choosing, from among those terms which are specified as being desired in the query, the most significant term whose top inverted term list has not yet been analyzed. Documents may be ranked in order of significance using any one of a number of measures which will be known to those of ordinary skill in the art. In the preferred embodiment discussed here, the ranking is done by using WT*IDFT, where WT and IDFT have the values set forth above.
At a step 615, a top inverted term list for that most significant not-yet-analyzed desired term is examined. In the embodiment illustrated herein, the top list contains one thousand documents, but the number of documents may vary according to a variety of functional factors familiar to one of ordinary skill in the art, such as the total number of documents of potential interest.
The process 600 then continues at a step 625 by calculating, for each document D on the top inverted term list for the term T, the score STD resulting from its containing the term, where:

STD=WT*TFTD*IDFT 

where:

WT has the value set forth above,
TFTD=Robertson's term frequency for Term T=NTD/(NTD+K1+K2*(LD/L0)),
where:
NTD is the number of times the term T occurs in document D,
LD is the length of document D,
L0 is the average length of a document in the Web site, and
K1 and K2 are constants. (In one embodiment, K1 may be assigned a value of 0.5, and K2 1.5, but these values may be varied without departing from the spirit and scope of the invention.) and IDFT=log((N+K3)/NT)/log(N+K4)
where:
N is the number of documents in the Web site,
NT is the number of documents containing the term T in the Web site,
K3 and K4 are constants. (In one embodiment, K3 may be assigned a value of 0.5, and K4 1.0, but these values may be varied without departing from the spirit and scope of the invention.)
If a document D for which a score STD has been calculated has not previously been found on an inverted term list in the process 600, the document is added to a list L of candidate documents. If the document has been found on an inverted term list previously in the process 600, the document's prior score is adjusted by adding STD the prior score.
After this is done, the process 600 continues at a step 630 by calculating the maximum number of points that could be scored by a document not yet found to contain any analyzed term. (That is, a document that contains all of the desired terms not yet analyzed.) That maximum potential score SMax is the sum, over all the desired terms whose hit lists have not yet been analyzed:




  
    S
    Max
  
  =
  
    
      ∑
      
        T
        =
        1
      
      
        T
        0
      
    
    ⁢
    
      
        W
        T
      
      *
      
        TF
        Max
      
      *
      
        IDF
        T
      
    
  




where:

TFMax=Robertson's maximum term frequency for Term T

    
    
        =MAX(NTD/(NTD+K1+K2*(LD/L0))),

where:

    
    


NTD is the number of times the term T occurs in document D,
LD is the length of document D,
L0 is the average length of a document in the Web site, and
K1 and K2 are constants. (In one embodiment, K1 may be assigned a value of 0.5, and K2 1.5, but these values may be varied without departing from the spirit and scope of the invention.) and IDFT=log((N+K3)/NT)/log(N+K4)
where:
N is the number of documents in the Web site,
NT is the number of documents containing the term T in the Web site,
K3 and K4 are constants. (In one embodiment, K3 may be assigned a value of 0.5, and K4 1.0, but these values may be varied without departing from the spirit and scope of the invention.)
At a next step 635, it is determined whether there are already N documents on the list L whose scores exceed SMax, the maximum number of points that could be accrued by a document not found on any of the top inverted term lists yet analyzed. If there are N or more such documents, it is unnecessary to look for any further documents by searching the top inverted term lists of the (relatively more common) terms not yet analyzed, and a next step 640 in the process 600 calculates a final score for all of the already-located documents on the list L, so that their rankings may be adjusted to account for the documents containing the more common terms, and a final list of the top N documents may be prepared.
At the step 640, in calculating the final scores for the candidate documents on the list L the process 600 may take advantage of that aspect of the system previously discussed which permits the score of a document to be determined by use of its compressed document surrogate. The process then concludes at a step 645 by ranking the documents on the list L according to the scores of the documents, and returning as its result the N documents which have the highest scores, ranked in order of the scores.
If it is determined at the step 635 that there are not N documents already found whose scores exceed the scores that could be achieved by not-yet-located documents, then the process continues at a step 650 to determine if there are any terms in the document being accessed by the user whose top inverted term lists have not yet been analyzed.
If the process 600 determines at the step 650 that not all terms have had their top inverted term lists analyzed, then the process 600 continues by returning to the step 611 to begin analyzing the most significant desirable term not yet analyzed.
If all terms in the document being accessed by the user have had their top inverted term lists analyzed, then the process 600 proceeds to a step 655. When the process 600 reaches the step 655 after processing top inverted term lists, it is concluded that remainder inverted term lists have not yet been analyzed, and the process 600 proceeds to a step 660. (The path the process 600 will follow when the step 655 is reached after the remainder inverted term lists have been analyzed will be discussed below.)
In the process 600 at the step 660 it is concluded that remainder inverted term lists will now be processed, and control passes to the step 610.
At the step 610, the iterative process of considering the most significant term whose inverted term list has not yet been analyzed begins again, this time considering the remainder inverted term lists. The process 600 cycles through the remainder inverted term lists at steps 615, 625 adding documents to the list L, and increasing the scores of the documents already on the list L, as documents are found on the remainder inverted term lists. As before, after each inverted term list is processed at the step 630 a new SMax is determined. In doing this for the remainder term lists, the maximum term frequency scores again may be determined in the preferred embodiment from the lookup table, but they are not the same maximum term frequency scores as were used for the top inverted term lists. Instead, the lookup table maintains a list of maximum term frequency scores for terms, for documents found in the remainder lists for the terms.
At the step 635 it is determined whether further inverted term lists need to be processed, or whether a sufficient number of documents have been found with sufficiently high scores that no further lists need be searched.
Ultimately, if it is concluded that a sufficient number of documents with sufficiently high scores as described above have been located, then from the step 635 control passes to the step 640, and as described above final scores are calculated, and a final list of N documents with the highest scores is returned, ranked in order of score.
However, if the process 600 proceeds to complete the iterations through all of the remainder inverted term lists without generating a sufficient number of documents with sufficiently high scores, then after the step 635 control passes through the step 650, where it is determined that there are no terms left whose remainder inverted term lists have not yet been processed, to the step 655, where it is determined that because the remainder term lists have been processed, control is to pass to the step 640 to begin the final processing. If the step 640 is reached after the remainder inverted term lists have all been processed, the final scores of the documents on the list L are calculated, and control passes to the step 645 to rank the documents that have been located in order, except that the process returns fewer than N documents.
While the invention has been disclosed in connection with the preferred embodiments shown and described in detail, various modifications and improvements thereon will become readily apparent to those skilled in the art. Accordingly, the spirit and scope of the present invention is to be limited only by the following claims.

## Claims

1. A system, comprising:
a computer system coupled to one or more storage devices storing instructions that, when executed by the computer system, cause the computer system to perform operations comprising:
identifying an initial document accessed by a user, wherein the initial document is in a Web site, and wherein the initial document includes a plurality of terms;
selecting documents contained in the Web site that are related to the initial document, comprising:
identifying a respective compressed document surrogate for each of a plurality of other documents in the Web site, wherein each of the compressed document surrogates includes data identifying a plurality of terms that occur in the other document and, for each of the plurality of terms, a respective frequency of occurrence of the term in the other document;
assigning a respective score to each of the plurality of other documents in the web site based at least in part on frequencies of occurrence identified in the compressed document surrogate for the other document for terms from the plurality terms included in the initial document; and
selecting one or more other documents as related documents based on the scores; and

presenting data identifying the related documents to the user.

2. The system of claim 1, wherein the data identifying the related documents is presented to the user automatically when the user accesses the initial document in the Web site.

3. The system of claim 1, wherein the data identifying the related documents is presented to the user in response to a request from the user.

4. The system of claim 1, wherein the Web site comprises one or more Web pages and wherein the other documents are Web pages or subdivisions of the Web site.

5. The system of claim 1, wherein a predetermined number of other documents is selected.

6. The system of claim 5, wherein the predetermined number of other documents is 100.

7. The system of claim 1, wherein all other documents with scores exceeding a predetermined cutoff value are selected.

8. The system of claim 1, wherein a score SD of an other document D in the Web site is determined by crediting the document D, for each term T in the document accessed by the user which is identified in the compressed document surrogate for the document D, with an amount proportional to Robertson's term frequency TFTD and to IDFT where


TFTD=NTD/(NTD+K1+K2*(LD/L0)), and

NTD is the number of times the term T occurs in document D,
LD is the length of document D,
L0 is the average length of a document in the Web site,
K1 and K2 are constants, and


IDFT=log((N+K3)/NT)/log(N+K4), and


N is the number of documents in the Web site,
NT is the number of documents containing the term T in the Web site, and
K3 and K4 are constants.

9. The system of claim 8, wherein K1 is 0.5, K2 is 1.5, K3 is 0.5, and K4 is 1.0.

10. The system of claim 1, wherein the score assigned to an other document depends upon how often a term that is identified in the compressed document surrogate for the other document occurs in the initial document accessed by the user; compared to how often the term occurs in the documents in the Web site.

11. The system of claim 10, wherein a score SD of an other document D in the Web site is determined by crediting the document D, for each term T in the initial document accessed by the user which is identified in the compressed document surrogate for the document D, with an amount proportional to WT, to Robertson's term frequency TFTD and to IDFT where


WT=log(PT(R)/PT(R)), where

PT(R)=a probability that the term T occurs in the initial document accessed by the user,
=NTR/(ΣR NtR), where

NTR=a number of occurrences of the term T in the initial document accessed by the user,
ΣR NtR=a total number of occurrences of terms in the initial document accessed by the user,
PT(R)=a probability that the term T occurs in the Web site,
=NTR/(ΣR NtR), where

NTR=a number of occurrences of the term T in the Web site,
ΣR NtR=a total number of occurrences of terms in the Web site,


TFTD=NTD/(NTD+K1+K2*(LD/L0)), and


NTD is the number of times the term T occurs in document D,
LD is the length of document D,
L0 is the average length of a document in the Web site,
K1 and K2 are constants, and


IDFT=log((N+K3)/NT)/log(N+K4), and


N is the number of documents in the Web site,
NT is the number of documents containing the term T in the Web site, and
K3 and K4 are constants.

12. The system of claim 11, wherein K1 is 0.5, K2 is 1.5, K3 is 0.5, and K4 is 1.0.

13. The system of claim 11, wherein assigning a respective score to each of the plurality of other documents in the web site comprises assigning a respective score to each of the plurality of other documents in the web site based at least in part on an occurrence in the other document of index terms manually assigned to the initial document accessed by the user.

14. The system of claim 13, wherein the score assigned to the other document, as a result of containing an index term assigned to the initial document depends upon how often the term occurs in the initial document accessed by the user compared to how often the term occurs in the documents in the Web site.

15. The system of claim 13, wherein the score assigned to the other document depends upon a weight assigned to the index terms.

16. A system, comprising:
a computer system coupled to one or more storage devices storing instructions that, when executed by the computer system, cause the computer system to perform operations comprising:
identifying an initial document accessed by a user, wherein the initial document is in a Web site, and wherein the initial document includes a plurality of terms
presenting data identifying other documents contained in the Web site that are related to the initial document to the user; and

a search engine configured to select the other documents that are related to the initial document, comprising:
identifying a respective compressed document surrogate for each of a plurality of other documents in the Web site, wherein each of the compressed document surrogates includes data identifying a plurality of terms that occur in the other document and, for each of the plurality of terms, a respective frequency of occurrence of the term in the other document;
assigning a respective score to each of the plurality of other documents in the web site based at least in part on frequencies of occurrence identified in the compressed document surrogate for the other document for terms from the plurality terms included in the initial document; and
selecting one or more other documents as related documents based on the scores.

17. The system of claim 16, wherein the data identifying the related documents is presented to the user automatically when the user accesses the initial document in the Web site.

18. The system of claim 16, wherein the data identifying the related documents is presented to the user in response to a request from the user.

19. The system of claim 16, wherein the Web site comprises one or more Web pages and wherein the other documents are Web pages or subdivisions of the Web site.

20. The system of claim 16, wherein a predetermined number of other documents is selected.

21. The system of claim 20, wherein the predetermined number of other documents is 100.

22. The system of claim 16, wherein all other documents with scores exceeding a predetermined cutoff value are selected.

23. The system of claim 16, wherein a score SD of an other document D in the collection may be determined by crediting the document D, for each term T in the document accessed by the user which is identified in the compressed document surrogate for the document D, with an amount proportional to Robertson's term frequency TFTD and to IDFT where


TFTD=NTD/(NTD+K1+K2*(LD/L0)), and

NTD is the number of times the term T occurs in document D,
LD is the length of document D,
L0 is the average length of a document in the Web site,
K1 and K2 are constants, and


IDFT=log((N+K3)/NT)/log(N+K4), and


N is the number of documents in the Web site,
NT is the number of documents containing the term T in the Web site, and
K3 and K4 are constants.

24. The system of claim 23, wherein K1 is 0.5, K2 is 1.5, K3 is 0.5, and K4 is 1.0.

25. The system of claim 16, wherein the score assigned to an other document depends upon how often a term that is identified in the compressed document surrogate for the other document occurs in the initial document accessed by the user compared to how often the term occurs in the documents in the Web site.

26. The system of claim 25, wherein a score SD of an other document D in the Web site is determined by crediting the document D, for each term T in the document accessed by the user which is identified in the compressed document surrogate for the document D, with an amount proportional to WT, to Robertson's term frequency TFTD and to IDFT where


WT=log(PT(R)/PT(R)), where

PT(R)=a probability that the term T occurs in the initial document accessed by the user,
=NTR/(ΣR NtR), where

NTR=a number of occurrences of the term T in the initial document accessed by the user,
ΣR NtR=a total number of occurrences of terms in the document accessed by the user,
PT(R)=a probability that the term T occurs in the Web site,
=NTR/(ΣR NtR), where

NTR=a number of occurrences of the term T in the Web site,
ΣR NtR=a total number of occurrences of terms in the Web site,


TFTD=NTD/(NTD+K1+K2*(LD/L0)), and


NTD is the number of times the term T occurs in document D,
LD is the length of document D,
L0 is the average length of a document in the Web site,
K1 and K2 are constants, and


IDFT=log((N+K3)/NT)/log(N+K4), and


N is the number of documents in the Web site,
NT is the number of documents containing the term T in the Web site, and
K3 and K4 are constants.

27. The system of claim 26, wherein K1 is 0.5, K2 is 1.5, K3 is 0.5, and K4 is 1.0.

28. The system of claim 16, wherein assigning a respective score to each of the plurality of other documents in the web site comprises assigning a respective score to each of the plurality of other documents in the web site based at least in part on an occurrence in the other document of index terms manually assigned to the initial document accessed by the user.

29. The system of claim 28, wherein the score assigned to the other document, as a result of containing an index term assigned to the initial document depends upon how often the term occurs in the initial document accessed by the user, compared to how often the term occurs in the documents in the Web site.

30. The system of claim 28, wherein the score assigned to the other document depends upon a weight assigned to the index terms.

31. A system, comprising:
a computer system coupled to a storage device, wherein a computer program stored on the storage device is operable, when executed by the computer system, to cause the computer system to perform operations comprising:
receiving an input from a user identifying an initial document in a collection of documents;
identifying other documents in the collection of documents that are related to the initial document, comprising:
assigning scores to a plurality of compressed document surrogates corresponding to the collection of documents, the scores depending on an occurrence in the compressed document surrogates of at least one term in the initial document, wherein a score SD of a compressed document surrogate D in the plurality of compressed document surrogates is determined by crediting the compressed document surrogate D, for each term T in the initial document which occurs in the compressed document surrogate D, with an amount proportional to Robertson's term frequency TFTD and IDFT where


TFTD=NTD/(NTD+K1+K2*(LD/L0)), and


NTD is the number of times the term T occurs in compressed document surrogate D,
LD is the length of compressed document surrogate D,
L0 is the average length of a document in the collection of documents,
K1 and K2 are constants, and


IDFT=log((N+K3)/NT)/log(N+K4), and


N is the number of documents in the collection of documents,
NT is the number of documents containing the term T in the collection of documents, and
K3 and K4 are constants;

selecting a set of documents from the collection of documents, the set of documents comprising documents corresponding to those of the plurality of compressed document surrogates assigned the highest scores; and
presenting information identifying the set of documents to the user.

32. The system of claim 31, wherein assigning the scores, selecting the set of documents, and presenting the information identifying the set of documents to the user are performed automatically when a user accesses the initial document, without user intervention.

33. The system of claim 31, wherein assigning the scores, selecting the set of documents, and presenting the information identifying the set of documents to the user are performed in response to a request from the user to obtain the set of documents.

34. The system of claim 31, wherein the Web site comprises one or more Web pages and wherein the documents are Web pages or subdivisions of the Web site.

35. The system of claim 31, wherein the set of documents comprises documents corresponding to those of the plurality of compressed document surrogates assigned scores above a threshold.

36. The system of claim 31, wherein the set of documents comprises documents corresponding to those of the plurality of compressed document surrogates assigned the highest N scores, where N is a predetermined value of one or more.

37. The system of claim 31, wherein the score assigned to a particular one of the plurality of compressed document surrogates depends upon how often the at least one term occurs in the initial document compared to how often the at least one term occurs in the plurality of compressed document surrogates.

38. The system of claim 31, wherein the initial document includes at least one index term manually assigned to the initial document, the at least one term includes the at least one index term, and the score assigned to a particular one of the plurality of compressed document surrogates depends upon an occurrence of the at least one index term.

39. The system of claim 38, wherein the score assigned to the particular one of the plurality of compressed document surrogates depends upon how often the at least one term occurs in the initial document compared to how often the at least one term occurs in the plurality of compressed document surrogates, and depends upon a weight assigned to the at least one index term.

40. A system, comprising:
a computer system coupled to a storage device, wherein a computer program stored on the storage device is operable, when executed by the computer system, to cause the computer system to perform operations comprising:
receiving a request for an initial document in a plurality of documents from a user;
identifying documents in the plurality of documents that are related to the initial document comprising:
assigning scores to a plurality of documents, including:
determining, for each other document in the plurality of documents, if the document has an associated compressed document surrogate; and
when the document has an associated compressed document surrogate, assigning a score to the document based on occurrences of at least one term included in the initial document in the associated compressed document surrogate, wherein a score of SD assigned to a document D in the plurality of documents is determined by crediting the document D, for each term T in the initial document which occurs in the compressed document surrogate associated with the document D, with an amount proportional to Robertson's term frequency TFTD and to IDFT where


TFTD=NTD/(NTD+K1+K2*(LD/L0)), and


NTD is the number of times the term T occurs in compressed document surrogate D,
LD is the length of compressed document surrogate D,
L0 is the average length of a document in the collection of documents,
K1 and K2 are constants, and


IDFT=log((N+K3)/NT)/log(N+K4), and


N is the number of documents in the collection of documents,
NT is the number of documents containing the term T in the collection of and
K3 and K4 are constants;

selecting a set of documents from the plurality of documents based on the assigned scores; and
presenting information identifying the set of documents to the user.

41. The system of claim 40, wherein assigning the scores, selecting the set of documents, and presenting the information identifying the set of documents to the user are performed automatically in response to receiving the request for the initial document, without user intervention.

42. The system of claim 40, wherein assigning the scores, selecting the set of documents, and presenting the information identifying the set of documents to the user are performed in response to an additional request from the user to obtain the set of documents.

43. The system of claim 40, wherein the Web site comprises one or more Web pages and wherein the documents are Web pages or subdivisions of the Web site.

44. The system of claim 40, wherein selecting the set of documents comprises selecting those of the plurality of documents assigned scores higher than a predetermined threshold.

45. The system of claim 40, wherein selecting the set of documents comprises selecting those of the plurality of documents assigned the highest N scores, where N is a predetermined value of one or more.

46. The system of claim 40, wherein assigning the scores further includes when the document does not have an associated compressed document surrogate, assigning a score to the document based on occurrences of the at least one term in the document.

47. The system of claim 40, wherein the initial document includes at least one index term manually assigned to the initial document, the at least one term includes the at least one index term, and the score assigned to a particular one of the plurality of documents depends upon an occurrence of the at least one index term.

48. The system of claim 47, wherein the score assigned to the particular one of the plurality of documents depends upon how often the at least one term occurs in the initial document compared to how often the at least one term occurs in the plurality of documents, and depends upon a weight assigned to the at least one index term.