# Patent

## Title
Ranking search results using language types

## Abstract

Search results of a search query on a network are ranked according to an additional ranking function for the prior probability of relevance of a document based on document property. The ranking function can be adjusted based on a comparison of the language that a document is written in and the language that is associated with a search query. Both query-independent values and query-dependent values can be used to rank the document.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
The present disclosure is a continuation-in-part of and claims the benefit under 15 USC §120 of the filing of patent application having Ser. No. 11/073,381, entitled, “System and Method for Ranking Search Results Using File Types,” filed Mar. 3, 2005. The present disclosure is related to patent applications having Ser. No. 10/955,462, entitled, “System and Method for Incorporating Anchor Text into Ranking Search Results”, filed Sep. 30, 2004; Ser. No. 10/955,983, entitled, “System and Method for Ranking Search Results Using Click Distance”, filed Sep. 30, 2004; Ser. No. 10/804,326, entitled “Field Weighting in Text Document Searching”, filed on Mar. 18, 2004. The related applications are assigned to the assignee of the present patent application and are hereby incorporated by reference.


BACKGROUND OF THE INVENTION
In a text document search, a user typically enters a query into a search engine. The search engine evaluates the query against a database of indexed documents and returns a ranked list of documents that best satisfy the query. A score, representing a measure of how well the document satisfies the query, is algorithmically generated by the search engine. Commonly-used scoring algorithms rely on splitting the query up into search terms and using statistical information about the occurrence of individual terms in the body of text documents to be searched. The documents are listed in rank order according to their corresponding scores so the user can see the best matching search results at the top of the search results list.
Another evaluation that certain search engines may employ to improve the quality of the results is to modify the rank of the results by a selected ranking function. One exemplary prior art ranking function determines that when one page links to another page, it is effectively casting a vote for the other page. The more votes that are cast for a page, the more important the page. The ranking function can also take into account who cast the vote. The more important the page, the more important their vote. These votes are accumulated and used as a component of the ratings of the pages on the network.
A ranking function is used to improve the quality of the ranking. Ranking functions can rely on combination of content in the document (such as terms contained in the body or metadata of the document), or data contained in other documents about this document (such as anchor text), measures of importance obtained by analyzing the URL graph and other query independent measures of relevance.
Typically, when evaluating the performance of a ranking function a set of users are asked to make relevance judgments on the top N (e.g., 10) documents returned by the search engine with a given ranking function for a given set of evaluation queries. The document corpus and the set of queries are kept fixed, so that performance of different ranking functions may be compared side-by-side eliminating all other variables from the equation. This is typically done in a prototyping (research) environment. A set of relevance judgments may also be obtained from a live system by asking users to volunteer relevance judgments for the search results on an arbitrary set of queries. Relying on relevance judgments to measure the performance allows a ranking function to be optimized by iteratively varying ranking parameters and measuring performance.
SUMMARY OF THE INVENTION
Embodiments of the present invention are related to a system and method for ranking search results according to language. The ranking function comprises a feature to penalize documents that do not match the language of the query, independently of other ranking features.
The language of the document is identified by performing statistical analysis of the character distribution and comparing it to trained language character distribution. The language of the document is detected (instead of relying on the metadata of the document such as language tags in html) because language detection is a relatively straightforward procedure with high precision, and the metadata is often ambiguous or wrong, or missing. Language detection is typically performed during the indexing process.
At query time the language of the query is obtained, for example, from the browser request headers or a client application. The query language is compared with the candidate document language. The language is considered matching if the document and query language match at least by primary language (for example, a German-Swiss query will typically be considered to match a German-German document), or if the document's primary language is English. Thus, documents written in a language that the user can't read are penalized, with the exception of English documents because of the assumption that most people that use the Internet can read English or understand different flavors of English.
The ranking function is modified with a language type feature that is used to adjust the ranking of documents based on the language types of files and the query language, thus improving the overall precision of the search engine. The weight of relevancy associated with each language type comparison is derived from the set of relevance judgments obtained from previous queries and feedback. In addition, by optimizing the weight, the weight may be treated as a ranking function parameter, and the behavior of the performance measure on different values of the weight may be observed.
Once the language type comparison is performed for a page, the file type is incorporated into the score for the page. The page's score incorporating the language type comparison determines the page's rank among the other pages within the search results.
Additionally, other document properties may affect the relevance of a document independent of the query. These document properties include the file type and the size of the file. Values may be associated with these document properties and incorporated into a scoring function to affect the rank of a document.
In one aspect, the network is first “crawled” to generate a table of properties associated with the links and pages of the network. “Crawling” refers to automatically collecting several documents (or any analogous discrete unit of information) into a database referred to as an index. Crawling traverses multiple documents on the network by following document reference links within certain documents, and then processing each document as found. The documents are processed by identifying key words or general text in the documents to create an index.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 illustrates an exemplary computing device that may be used in one exemplary embodiment of the present invention.
FIG. 2 illustrates a system for ranking search results according to file types in accordance with the present invention.
FIG. 3 illustrates a functional block diagram of an exemplary system for gathering properties of documents during searching in accordance with the present invention.
FIG. 4 illustrates a logical flow diagram of an exemplary process for using the file type in ranking search results in accordance with the present invention.



DETAILED DESCRIPTION
The present disclosure comprises embodiments that are described more fully hereinafter with reference to the accompanying drawings, which form a part hereof, and which show, by way of illustration, specific exemplary embodiments. Among other things, the various embodiments described herein may be embodied as methods, devices, or a combination thereof. Likewise, the various embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. The following detailed description is, therefore, not to be taken in a limiting sense.
Illustrative Operating Environment
With reference to FIG. 1, one exemplary system for implementing the invention includes a computing device, such as computing device 100. Computing device 100 may be configured as a client, a server, mobile device, or any other computing device. In a very basic configuration, computing device 100 typically includes at least one processing unit 102 and system memory 104. Depending on the exact configuration and type of computing device, system memory 104 may be volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.) or some combination of the two. System memory 104 typically includes an operating system 105, one or more applications 106, and may include program data 107. In one embodiment, application 106 includes a search ranking application. This basic configuration is illustrated in FIG. 1 by those components within dashed line 108.
Computing device 100 may have additional features or functionality. For example, computing device 100 may also include additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape. Such additional storage is illustrated in FIG. 1 by removable storage 109 and non-removable storage 110. Computer storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. System memory 104, removable storage 109 and non-removable storage 110 are all examples of computer storage media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by computing device 100. Any such computer storage media may be part of device 100. Computing device 100 may also have input device(s) 112 such as keyboard, mouse, pen, voice input device, touch input device, etc. Output device(s) 114 such as a display, speakers, printer, etc. may also be included.
Computing device 100 also contains communication connections 116 that allow the device to communicate with other computing devices 118, such as over a network. Communication connection 116 is one example of communication media. Communication media may typically be embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. The term computer readable media as used herein includes both storage media and communication media.
Illustrative Embodiments for Ranking Using Language Type Comparisons
Embodiments are related to a ranking function for a search engine. The quality of a search engine is typically determined by the relevance of the documents according to the ranks assigned by the ranking function. The ranking function may be based on multiple features. Some of these features may depend on the query, while others are considered query-independent. Language type comparisons are a query-dependent measure of relevance referred to as language comparison type prior. The language type of the file and the query language are compared to generate a language-based prior to rank the search results. A language prior refers to a prior probability of belief that a document should be relevant given its language One method for establishing type-base priors is through the use of relevance judgments to weigh the language types according to their relevance.
FIG. 2 illustrates a system for ranking search results according to file types in accordance with the present invention. The search engine 200 receives a query containing multiple query terms. Each query term may include multiple component terms, such as when the query term is a phrase (e.g., the phrase “document management system” may be considered a single query term). In addition, a query may include one or more operators, such as Boolean operators, constraints, etc., which are commonly supported by known search engines.
A plurality of documents on a distributed network, represented by documents 210, 212, 214, and 216, are available for searching. In practice, a search engine may search any number of documents and typically search collections containing large numbers (e.g., millions) of documents. The volume of documents may be reduced from the Internet setting to the intranet setting, but the reduction is usually from billions to millions so that the relative number of documents is still quite large. An indexing module (not shown) generates individual document attributes (e.g., file type) and associated statistics (e.g., term frequencies) (218, 220, 222, and 224) for each document. The document attributes and statistics are stored in an index 226.
Search engine 200 consults index 226 to determine a search score 228 for each document based on the query and the corresponding document attributes and statistics. One of the document attributes included is the language type of the document. The file type is a query-independent attribute that is combined with other query-independent attributes and statistics and query-dependent attributes and statistics to form a document's final score. Typically, document scores 228 are then ranked in descending order to give the user a list of documents that are considered by the search algorithm to be most relevant to the query.
In the illustrated system, the search engine 200 represents a language type rated search engine, which considers the language type of a document in determining the document's search score. Language type rating of a document leverages the relevance judgments associated with each of the language types and the query language. A language-based prior is a query-dependent relevance measure because it rates the document's importance based on a comparison of the document language with the query language. (Another example of a query-dependent ranking function would be counting the number of times a search term appears in a document.)
FIG. 3 illustrates a functional block diagram of an exemplary system for gathering properties of documents during searching in accordance with the present invention. System 300 includes index 310, pipeline 320, document interface 330, client interface 340, gathering plugin 350, indexing plugin 360, and property store 270.
Index 310 includes records that correspond to index keys and other document properties. The records of index 310 are used in providing results to client queries. In one embodiment, index 310 corresponds to multiple databases that collectively provide the storage for the index records.
Pipeline 320 is an illustrative representation of the gathering mechanism for obtaining the documents or records of the documents for indexing. Pipeline 320 allows for filtering of data by various plugins (e.g., gathering plugin 350) before the records corresponding to the data are entered into index 310.
Document interface 330 provides the protocols, network access points, and database access points for retrieving documents across multiple databases and network locations. For example, document interface 330 may provide access to the Internet while also providing access to a database of a local server and access to a database on the current computing device. Other embodiments may access other document locations using a variety of protocols without departing from the spirit or scope of the invention.
Client Interface 340 provides access by a client to define and initiate a search. The search may be defined according to keywords and/or other keys.
Gathering plugin 350 is one of several gatherer pipeline plugins. Gathering plugin 350 identifies properties that are included in a document, such as the text from the title or body, and the file type associated with the document. The properties are gathered by gathering plugin 350 as the documents provided through document interface 330 are crawled. In one embodiment, the functionality of gathering plugin 350 identifies all the fields of a document and their associated properties including the language type of the document.
Indexing plugin 360 is another plugin connected to pipeline 320. Indexing plugin 360 provides the mechanism for generating, partitioning, and updating index 310. In one embodiment, indexing plugin 360 provides the word lists that temporarily cache the keywords and other keys generated from crawled documents before flushing these results to index 310. The records of index 310 are populated from the crawl results included in these word lists.
Property store 370 includes the anchor properties that have been gathered by gathering plugin 350. For a particular document, property store 370 includes a record of the file type that is associated with the document. For example, a record in property store 370 may include a document ID that identifies the document and the file type in separate fields. In other embodiments, other fields may be included in property store 370 that are related to a particular document.
Despite the illustration in system 300 of one-way and two-way communications between functional blocks, any of these communication types may be changed to another type without departing from the spirit or scope of the invention (e.g., all communications may have an acknowledgment message requiring two-way rather than one-way communication).
FIG. 4 illustrates a logical flow diagram of an exemplary process for using language type comparison in ranking search results in accordance with the present invention. Process 400 starts at block 402 where a query has been requested and the query-independent values corresponding to the file types have been calculated. In one embodiment, the language type for each document is recorded within a pseudo-key and stored within an index.
The language information about each document is typically stored as an inverted index called query independent rank storage (“QIR”). QIR storage is used for storing associated values that can be used at query time for searching each document. A value is normally stored only once. The QIR storage can be logically viewed as an array of values indexed by document identifiers. In some embodiments, the QIR storage can be a compressed array, because many documents can have the same values stored in the QIR storage, and the default values need not be stored.
For example, the entire score for the values for Click Distance, URL depth, File Types, static features, and the like, can be pre-computed at index time and a single value is stored in the QIR storage associated with each document. Language priors need not stored in this way, because language matching is not strictly query independent. Instead, the original detected language of the document can be stored in a separate QIR storage. In addition, a default language (such as English, or unknown) is not normally stored, so a majority of the documents need not be represented in the language storage. In another embodiment, a value can be repeated in the index for every occurrence of a document (which can create redundancy in storage).
At the end of a crawl, the static ranking features are typically computed and stored in the QIR storage. The detected language is also retrieved from the pseudo keys and stored in its own storage (language storage) to allow quick access to the detected language of the document by document ID at query time.
For example, when the language on an HTML page is determined to be Dutch, the language of the HTML page that is stored in the index can be Dutch or, for example, German, because it can be assumed that German readers can read Dutch. Thus, in an embodiment, classes of languages can be utilized such that a document is not penalized when the document has a language that is in the class as the query language. The query language can be determined via character integration that the query sends such as which languages the browser has been configured to use. With the query received and the language type values calculated, processing continues at block 404.
At block 404, the language type value for each of the documents is merged with the other document statistics (see FIG. 2) in the index. Merging the file type values with the other document statistics computes the correct scores for each of the documents. Once the merge is complete, processing moves to block 406.
At block 406, a scoring function is populated with the set of document statistics, including the component corresponding to the prior probability of relevance based on the file type. The scoring function calculates a score for a particular document. The language type component provides a query-independent factor to the scoring function. The other portion of the scoring function corresponds to other query-independent factors and the query-dependent or content-related portion of the scoring function. In one embodiment, the scoring function is a sum of query-dependent (QD) and query-independent (QID) scoring functions:

Score=QD(doc, query)+QID(doc)  (1)

The QD function can be any document scoring function. In one embodiment, the QD scoring function corresponds to the field weighted scoring function described in patent application Ser. No. 10/804,326, entitled “Field Weighting in Text Document Searching”, filed on Mar. 18, 2004 and hereby incorporated by reference. As provided by the Ser. No. 10/804,326 patent application, the following is a representation of the field weighted scoring function:




  
    
      
        
          QD
          ⁡
          
            (
            
              doc
              ,
              query
            
            )
          
        
        =
        
          ∑
          
            
              
                wtf
                ⁡
                
                  (
                  
                    
                      k
                      1
                    
                    +
                    1
                  
                  )
                
              
              
                
                  
                    k
                    1
                  
                  ⁡
                  
                    (
                    
                      
                        (
                        
                          1
                          -
                          b
                        
                        )
                      
                      +
                      
                        b
                        ⁢
                        
                          wdl
                          avwdl
                        
                      
                    
                    )
                  
                
                +
                wtf
              
            
            ×
            
              log
              ⁡
              
                (
                
                  N
                  n
                
                )
              
            
          
        
      
    
    
      
        (
        2
        )
      
    
  




Wherein the terms are defined as follows: wtf is the weighted term frequency or sum of term frequencies of a given term multiplied by weights across all properties; wdl is the weighted document length; avwdl is the average weighted document length; N is the number of documents on the network (i.e., the number of documents crawled); n is the number of documents containing the given query term; and k1 and b are constants. These terms and the equation above are described in detail in the Ser. No. 10/804,326 patent application.
The QID function can be any transformation of document properties or statistics such as the file type component, click-distance, and other document statistics (such as URL depth). In one embodiment this function for click distance and URL depth is as follows:




  
    
      
        
          QID
          ⁡
          
            (
            doc
            )
          
        
        =
        
          ∑
          
            
              w
              cd
            
            ⁢
            
              1
              
                
                  k
                  cd
                
                +
                
                  
                    
                      
                        b
                        cd
                      
                      ⁢
                      CD
                    
                    +
                    
                      
                        b
                        ud
                      
                      ⁢
                      UD
                    
                  
                  
                    
                      b
                      cd
                    
                    +
                    
                      b
                      ud
                    
                  
                
              
            
          
        
      
    
    
      
        (
        3
        )
      
    
  




Wherein the terms for the function are defined as follows: Wcd is the weight of the query-independent component; bcd is the weight of the click distance; bud is the weight of the URL depth; CD is the Click Distance; UD is the URL Depth; and kcd is the click distance saturation constant. The weighted terms (wcd, bcd, and bud) assist in defining the importance of each of their related terms and ultimately the shape of the scoring functions. The URL depth (UD) is an addition to the query-independent component to smooth the effect of the click distance on the scoring function. In some cases, a document that is not very important (i.e., has a large URL depth) may have a short click distance. The two functions of (2) and (3) and the file type component (W(t)) can be added together to yield a scoring function (Score), such that the new scoring function becomes:




  
    
      
        Score
        =
        
          
            ∑
            
              
                
                  wtf
                  ⁡
                  
                    (
                    
                      
                        k
                        1
                      
                      +
                      1
                    
                    )
                  
                
                
                  
                    
                      k
                      1
                    
                    ⁡
                    
                      (
                      
                        
                          (
                          
                            1
                            -
                            b
                          
                          )
                        
                        +
                        
                          b
                          ⁢
                          
                            wdl
                            avwdl
                          
                        
                      
                      )
                    
                  
                  +
                  wtf
                
              
              ×
              
                log
                ⁡
                
                  (
                  
                    N
                    n
                  
                  )
                
              
            
          
          +
          
            
              w
              cd
            
            ⁢
            
              1
              
                
                  k
                  cd
                
                +
                
                  
                    
                      
                        b
                        cd
                      
                      ⁢
                      CD
                    
                    +
                    
                      
                        b
                        ud
                      
                      ⁢
                      UD
                    
                  
                  
                    
                      b
                      cd
                    
                    +
                    
                      b
                      ud
                    
                  
                
              
            
          
          +
          
            W
            ⁡
            
              (
              t
              )
            
          
        
      
    
    
      
        (
        4
        )
      
    
  




The score can be adjusted (i.e., documents can be penalized) for having a language that is different than the query language. The language prior weight provides an estimate of the log-odds ratio of probability of relevance given language match over probability of non-relevance given language match:




  
    W
    ⁡
    
      (
      
        
          l
          d
        
        ,
        
          I
          q
        
      
      )
    
  
  =
  
    log
    ⁢
    
      
        P
        ⁡
        
          (
          
            
              r
              ⁢
              
                ❘
              
              ⁢
              
                l
                d
              
            
            ,
            
              l
              q
            
          
          )
        
      
      
        P
        ⁡
        
          (
          
            
              
                r
                _
              
              ⁢
              
                ❘
              
              ⁢
              
                l
                d
              
            
            ,
            
              l
              q
            
          
          )
        
      
    
  




where r is relevance of the document to any query, ld is the document language, and lq is the query language and W(ld, lq) is the weight of the prior probability of relevance based on a language match. In an embodiment, a language can be determined as a Boolean language match (where “1” indicates a match, and “0” indicates no match). The weight can be then be multiplied by the determined Boolean value. The weight itself can be a single global weight, or it can be a matrix for all possible pairs of languages.

The language prior weight can be added to (4) to provide:




  
    
      
        
          ∑
          
            
              
                wtf
                ⁡
                
                  (
                  
                    
                      k
                      1
                    
                    +
                    1
                  
                  )
                
              
              
                
                  
                    k
                    1
                  
                  ⁡
                  
                    (
                    
                      
                        (
                        
                          1
                          -
                          b
                        
                        )
                      
                      +
                      
                        b
                        ⁢
                        
                          wdl
                          avwdl
                        
                      
                    
                    )
                  
                
                +
                wtf
              
            
            ×
            
              log
              ⁡
              
                (
                
                  N
                  n
                
                )
              
            
          
        
        +
        
          
            w
            cd
          
          ⁢
          
            1
            
              
                k
                cd
              
              +
              
                
                  
                    
                      b
                      cd
                    
                    ⁢
                    CD
                  
                  +
                  
                    
                      b
                      ud
                    
                    ⁢
                    UD
                  
                
                
                  
                    b
                    cd
                  
                  +
                  
                    b
                    ud
                  
                
              
            
          
        
        +
        
          W
          ⁡
          
            (
            t
            )
          
        
        +
        
          W
          ⁡
          
            (
            
              
                l
                d
              
              ,
              
                l
                q
              
            
            )
          
        
      
    
    
      
        (
        5
        )
      
    
  




In an embodiment, the weight of the language prior can be considered as part of the static rank of the document, similar to file type priors, but in fact depends on the query, because the feature itself is a function of both query and document language. This creates an implementation detail, where instead of pre-computing the actual static score and storing it in the index as a value for each document, the original detected language of the document is stored, and the feature determined at query time in response to a comparison of the query language and the document language match. Once scoring function (5) is populated with the document statistics for a particular document, processing proceeds to block 408.

At block 408, the scoring function is executed and the relevance score for the document is calculated. Once the relevance score is calculated, it is stored in memory and associated with that particular document. Processing then moves to decision block 410.
At decision block 410, a determination is made whether relevance scores for all the documents corresponding to the search query have been calculated according to scoring function (5). The scores may be calculated serially as shown or in parallel. If all the scores have not been calculated, processing returns to block 406 where the scoring function is populated with the next set of document statistics. However, if all the scores have been calculated, processing continues to block 412.
At block 412, the search results of the query are ranked according to their associated scores. The scores now take into account the language type of each of the documents. Accordingly, the ranking of the documents has been refined so that documents of a particular language type that is in the same language class as the query language (for example) are ranked higher than other documents having language types that are different from the query language. Once the search results are ranked, processing proceeds to block 414, where process 400 ends.
After process 400 is complete, the ranked documents may be returned to the user by the various operations associated with the transmission and display of results by a search engine. The documents corresponding to the higher precision results may then be selected and viewed at the user's discretion.
The above specification, examples and data provide a complete description of the manufacture and use of the composition of the invention. Since many embodiments of the invention can be made without departing from the spirit and scope of the invention, the invention resides in the claims hereinafter appended.

## Claims

1. A computer-implemented method for ranking search results, comprising:
determining a first property associated with each document in a collection of documents; wherein the first property is a language type associated with the document that identifies a language of the document; wherein the language of the document is determined by performing a statistical analysis of a character distribution in the document and comparing it to a trained language character distribution; storing an identified language for each of the documents when it is determined that the identified language is not a default language in a language storage that is a query independent rank (QIR) storage that is separate from a QIR storage that stores other values used at query time;
determining a query language of a search query;
estimating a ranking value corresponding to properties for each document, wherein the ranking value corresponds to a measure of the relevance of each document based on the search query;
ranking each document that is responsive to the search query to obtain the search results, wherein each document is ranked based on the estimated ranking value and a comparison of the query language with the first property value;
ranking the documents according to a scoring function (score) that is determined according to at least: a computed click distance (CD), a weight of a query-independent component (wcd), a weight of the click distance (bcd), a weight of a URL depth (bud), the URL depth (UD) and a click distance saturation constant (Kcd); and
using the ranking of the documents to display the search results.

2. The computer-implemented method of claim 1, wherein the comparison lowers the ranking of the document when the query language is different from the document language.

3. The computer-implemented method of claim 1, wherein the comparison lowers the ranking of the document when the query language class is different from the document language class.

4. The computer-implemented method of claim 1, wherein the comparison lowers the ranking of the document when the query language is different from the document language except when the document language is English.

5. The computer-implemented method of claim 1, wherein the comparison lowers the ranking of the document when the query language is different from the document language except, when the document language is English, the comparison lowers the ranking of the document to a lesser extent than if the document language is a different language other than English.

6. The computer-implemented method of claim 1, wherein determining the language of the document is performed during an indexing process of the documents for searching.

7. The computer-implemented method of claim 1, wherein the query language is determined from a language setting that is derived from a browser used to initiate the search query.

8. The computer-implemented method of claim 1, wherein ranking each document further comprises using a component corresponding to the first property in a scoring function for determining a relevance score for each of the documents.

9. The computer-implemented method of claim 1, wherein the first property for a document is stored within a pseudo-key that associates the first property with the document in the index.

10. The computer-implemented method of claim 1, wherein the scoring function (score) is further determined according to the weight of the prior probability of relevance based on a language match (W(ld, lq)).

11. The computer-implemented method of claim 10, wherein the scoring function (score) is further determined according to file type priors.

12. The computer-implemented method of claim 11, wherein the scoring function (score) is further determined according to: a weighted term frequency (wtf), a weighted document length (wdl), an average weighted document length (avwdl), a number of documents on the network (N); a number of documents containing a query term (n), and other constants (k1, b).

13. The computer-implemented method of claim 12, wherein the scoring function (score) is given by the following formula; wherein each value within the scoring function is a definite value, wherein W(t) is a file type component; and wherein the weight of the prior probability of relevance based on a language match (W(ld, lq)):




  
    ∑
    
      
        
          wtf
          ⁡
          
            (
            
              
                k
                1
              
              +
              1
            
            )
          
        
        
          
            
              k
              1
            
            ⁡
            
              (
              
                
                  (
                  
                    1
                    -
                    b
                  
                  )
                
                +
                
                  b
                  ⁢
                  
                    wdl
                    avwdl
                  
                
              
              )
            
          
          +
          wtf
        
      
      ×
      log
      ⁢
      
        (
        
          N
          n
        
        )
      
    
  
  +
  
    
      w
      cd
    
    ⁢
    
      1
      
        
          k
          cd
        
        +
        
          
            
              
                b
                cd
              
              ⁢
              CD
            
            +
            
              
                b
                ud
              
              ⁢
              UD
            
          
          
            
              b
              cd
            
            +
            
              b
              ud
            
          
        
      
    
  
  +
  
    W
    ⁡
    
      (
      t
      )
    
  
  +
  
    W
    ⁡
    
      (
      
        
          l
          d
        
        ,
        
          l
          q
        
      
      )

14. A system for ranking search results, comprising:
a processor;
a search engine included on a computing device, the search engine configured to execute computer-executable instructions, the computer-executable instructions comprising:
determining a first property associated with each document in a collection of documents; wherein the first property is a language type that identifies a language of the document, wherein the language type for each of the documents is only stored in a separate QIR (Query Independent Rank) storage when the language type is not a default language from another QIR storage used for storing values that can be used at query time for searching each document;
determining a query language of a search query;
estimating a ranking value corresponding to properties for each document, wherein the ranking value corresponds to a measure of the relevance of each document based on the search query; and
ranking each document that is responsive to the search query to obtain the search results, wherein each document is ranked based on the estimated ranking value and a comparison of the query language with the first property value;
ranking the documents according to a scoring function (score) that is determined according to at least: a computed click distance (CD), a weight of a query-independent component (wcd), a weight of the click distance (bcd), a weight of a URL depth (bud), the URL depth (UD), a click distance saturation constant (Kcd), a weighted term frequency (wtf), a weighted document length (wdl), an average weighted document length (avwdl), a number of documents on the network (N); a number of documents containing a query term (n); and
using the ranking of the documents to display the search results.

15. The system of claim 14, wherein the scoring function (score) is further determined according to at least: the first property for a language match (W(ld, lq)).

16. The system of claim 15, wherein the scoring function (score) is further determined according to: other constants (k1, b), a file type component W(t), the weight of the prior probability of relevance based on a language match (W(ld, lq)), and the scoring function (score) is given by:




  
    ∑
    
      
        
          wtf
          ⁡
          
            (
            
              
                k
                1
              
              +
              1
            
            )
          
        
        
          
            
              k
              1
            
            ⁡
            
              (
              
                
                  (
                  
                    1
                    -
                    b
                  
                  )
                
                +
                
                  b
                  ⁢
                  
                    wdl
                    avwdl
                  
                
              
              )
            
          
          +
          wtf
        
      
      ×
      log
      ⁢
      
        (
        
          N
          n
        
        )
      
    
  
  +
  
    
      w
      cd
    
    ⁢
    
      1
      
        
          k
          cd
        
        +
        
          
            
              
                b
                cd
              
              ⁢
              CD
            
            +
            
              
                b
                ud
              
              ⁢
              UD
            
          
          
            
              b
              cd
            
            +
            
              b
              ud
            
          
        
      
    
  
  +
  
    W
    ⁡
    
      (
      t
      )
    
  
  +
  
    W
    ⁡
    
      (
      
        
          l
          d
        
        ,
        
          l
          q
        
      
      )

17. A computer-readable storage medium that includes computer-executable instructions for ranking search results, the computer-executable instructions comprising:
determining a first property associated with each document in a collection of documents; wherein the first property is a language type associated with the document; wherein the collection of documents comprises documents of a default language and documents not of a default language; wherein the language type identifies a language of the document and is only stored in a language QIR (Query Independent Rank) storage when the language type is not the default language; wherein a separate QIR storage from the language QIR storage is used for storing values that can be used at query time for searching each document;
determining a query language of a search query;
estimating a ranking value corresponding to properties for each document, wherein the ranking value corresponds to a measure of the relevance of each document based on the search query;
ranking each document that is responsive to the search query to obtain the search results, wherein each document is ranked based on the estimated ranking value and a comparison of the query language with the first property value; and
using the ranking of the documents to display the search results.

18. The computer-readable medium of claim 17, wherein the comparison lowers the ranking of the document when the query language is different from the document language.

19. The computer-readable medium of claim 17, wherein the comparison lowers the ranking of the document when the query language class is different from the document language class when the document language is English.

20. The computer-readable medium of claim 17, further comprising adjusting a query-independent value for each document, as additional search queries are performed and a relevance measure of the search results based on the file types is made.