The present invention relates in general to information location and, in particular, to a system and method for providing preferred language and/or country ordering of search results.
Although the Internet traces back to the late 1960s, the widespread availability and acceptance of personal computing and internetworking have resulted in the explosive growth and unprecedented advances in information sharing technologies. In particular, the Worldwide Web (“Web”) has revolutionized accessibility to untold volumes of information in stored electronic form to a worldwide audience, including written, spoken (audio) and visual (imagery and video) information, both in archived and real-time formats. In short, the Web has provided desktop access to every connected user to a virtually unlimited library of information in almost every language worldwide.
Information exchange on the Web operates under a client-server model. Individual clients execute Web content retrieval and presentation applications, typically in the form of Web browsers. The Web browsers send request messages for Web content to centralized Web servers, which function as data storage and retrieval repositories. The Web servers parse the request messages and return the requested Web content in response messages.
Search engines have evolved in tempo with the increased usage of the Web to enable users to find and retrieve relevant Web content in an efficient and timely manner. As the amount and types of Web content has increased, the sophistication and accuracy of search engines has likewise improved. Generally, search engines strive to provide the highest quality results in response to a search query. However, determining quality is difficult, as the relevance of retrieved Web content is inherently subjective and dependent upon the interests, knowledge and attitudes of the user.
Existing methods used by search engines are based on matching search query terms to terms indexed from Web pages. More advanced methods determine the importance of retrieved Web content using, for example, a hyperlink structure-based analysis, such as described in S. Brin and L. Page, “The Anatomy of a Large-Scale Hypertextual Search Engine,” (1998) and in U.S. Pat. No. 6,285,999, issued Sep. 4, 2001 to Page, the disclosures of which are incorporated by reference.
A typical search query scenario begins with either a natural language question or individual keywords submitted to a search engine. The search engine executes a search against a data repository describing information characteristics of potentially retrievable Web content and identifies the candidate search results. Searches can often return thousands or even millions of results, so most search engines typically rank or score only a subset of the most promising results. Targeted search results can also be introduced, such as advertising or topical information content. The top search results are then presented to the user, usually in the form of Web content titles, hyperlinks, and other descriptive information, such as snippets of text taken from the search results.
Search engines are generally available to users located worldwide. Thus, part of providing high-quality search results is being able to provide those search results in languages acceptable to the requesting user, and/or from countries preferred by the requesting user.
Acceptable languages include languages specified by the user, as well as other acceptable languages. For instance, a French-preferring user might also accept search results in English. Acceptable languages can also include related languages and dialects. For example, Portuguese search results might be acceptable to a user who generally prefers Spanish. Finally, acceptable languages can include dead languages, such as classical Greek or Olde English, or psuedo-languages, such as Klingon. Dead and psuedo-languages are typically not supported by search engines, but may nevertheless reflect the academic, historic, or personal interests of the requesting user.
Preferred countries include the country of the user, as well as other acceptable countries. For instance, a Canadian user might also accept search results from the United States.
According to one implementation, a method may include receiving a search query; performing a search based on the search query to identify search results in a number of search result languages; identifying a particular language for the search results based on characteristics of the search query, characteristics of a user interface via which the search query is received, and characteristics of the search results; ordering the search results to create an ordered list of search results; determining whether the search results in the ordered list of search results are in the particular language; adjusting the ordering of one of the search results among other ones of the search results to create an adjusted list of search results when the one of the search results is in the particular language; and presenting the adjusted list of search results.
According to another implementation, a method may include receiving a search query; performing a search based on the search query to identify search results from a number of search result countries; identifying a particular country for the search results based on interface characteristics and Internet protocol (IP) characteristics, where the interface characteristics include information from the search query and information from a user interface via which the search query is received, and where the IP characteristics include information associated with a location from which the search query was sent; ordering the search results to create an ordered list of search results; determining whether the search results in the ordered list of search results are from the particular country; adjusting the order of one of the search results among other ones of the search results to create an adjusted list of search results when the one of the search results is from the particular country; and presenting the adjusted list of search results.
In general, each client 12 can be any form of computing platform connectable to a network, such as the internetwork 13, and capable of interacting with application programs. Exemplary examples of individual clients include, without limitation, personal computers, digital assistances, “smart” cellular telephones and pagers, lightweight clients, workstations, “dumb” terminals interfaced to an application server, and various arrangements and configurations thereof, as would be recognized by one skilled in the art. The internetwork 13 includes various topologies, configurations, and arrangements of network interconnectivity components arranged to interoperatively couple with enterprise, wide area and local area networks and include, without limitation, conventionally wired, wireless, satellite, optical, and equivalent network technologies, as would be recognized by one skilled in the art.
For Web content exchange and, in particular, to transact searches, each client 12 executes a Web browser 18 (“browser”) through which search queries are sent to a Web server 20 executing on the server 11. Each search query describes or identifies information, generally in the form of Web content, which is potentially retrievable via the Web server 20. The search query provides characteristics, typically expressed as terms, such as keywords and the like, and attributes, such as language or country, character encoding and so forth, which enables a search engine 21, also executing on the server 11, to identify and send back search results. The terms and attributes are a form of metadata, which constitute data describing data. Other styles, forms or definitions of search queries, search query characteristics, and metadata are feasible, as would be recognized by one skilled in the art.
The search results are sent back to the browser 18 for presentation, usually in the form of Web content titles, hyperlinks, and other descriptive information, such as snippets of text taken from the search results. The server 11 maintains an attached storage device 15 in which Web content 22 is maintained. The Web content 22 could also be maintained remotely on other Web servers (not shown) interconnected either directly or indirectly via the internetwork 13 and which are preferably accessible by each client 12.
The search engine 21 preferably identifies the Web content 22 best matching the search query terms to provide high quality search results, such as described in S. Brin and L. Page, “The Anatomy of a Large-Scale Hypertextual Search Engine” (1998) and in U.S. Pat. No. 6,285,999, issued Sep. 4, 2001 to Page, the disclosures of which are incorporated by reference. In identifying matching Web content 22, the search engine 21 operates on information characteristics describing potentially retrievable Web content, as further described below with reference to
The individual computer systems, including server 11 and clients 12, include general purpose, programmed digital computing devices consisting of a central processing unit (processors 13 and 16, respectively), random access memory (memories 14 and 17, respectively), non-volatile secondary storage 15, such as a hard drive or CD ROM drive, network or wireless interfaces, and peripheral devices, including user interfacing means, such as a keyboard and display. Program code, including software programs, and data is loaded into the RAM for execution and processing by the CPU and results are generated for display, output, transmittal, or storage.
The search engine 21 consists of five components: parser 31, indexer 32, scorer 33, language promoter 34, and presenter 35. Briefly, the search engine 21 receives a search query 36 communicated via a browser 18 from a user 19, executes a search, generates search results 38, orders the search results 38 in consideration of language preferences, and sends the ordered search results 37. The search query 36 is preferably provided as a HTTP-compliant request message and the ordered search results 37 are preferably provided as HTTP-compliant response messages, as further described below respectively with reference to
In more detail, the parser 31 receives the search query 36. Each search query 36 describes potentially retrievable information, such as Web content 22. The parser 31 then parses the search query 36 into individual tokens. The tokens include header values constituting metadata 48, and an entity body containing the actual search query. The metadata 48 is copied to the language promoter 34.
The indexer 32 executes the search by evaluating the search query 36 against information characteristics maintained in a searchable data repository 49. The information characteristics are either the actual Web content 22 or metadata, such as hyperlinks, describing terms and attributes used to identify Web content. Other structures and organizations of a searchable data repository 49 are feasible, as would be recognized by one skilled in the art. Upon completing the search, the indexer 32 generates a set of search results 38 by applying the characteristics specified in the search query 36 to the stored information. Other structures and organizations of a searchable data repository 49 are feasible, as would be recognized by one skilled in the art.
Potentially, the indexer 32 can identify thousands or even millions of search results 38, so only a subset of the search results 38, typically between 100 to 10,000, are retained as the most promising search results 38. Targeted search results (not shown) can also be introduced, such as advertising or topical information content. The most promising search results 38 are then qualitatively ranked or scored by degree of match to the search query terms. The search results 38 can be numerically scored to reflect a relative quality or goodness of match. The scorer 33 assigns a numerical score 41 to each search result 38 for indicating a quality of match.
The language promoter 34 performs two primary functions. First, the language promoter 34 determines one or more preferred languages 39 and, optionally, one or more less preferred languages 40 for each search query 36, as further described below with reference to
In the described embodiment, the scorer 33 assigns those search results 38 having a higher degree of match a commensurately higher rank relative to other search results 38. For instance, if Spanish was a preferred language 39, those search results 38 in Spanish would have a higher degree of match than search results 38 in, say, English. However, those search results 38 in a less preferred language, such as Portuguese, could also have a higher degree of match than search results 38 in English, but lower degree of match than search results 38 in Spanish. Alternatively, a counter ranking approach could be used whereby the scorer 33 assigns those search results 38 having a higher degree of match a commensurately lower rank relative to other search results 38. Other styles, assignments or definitions of search result ranking are feasible, as would be recognized by one skilled in the art.
In another embodiment, the search results 38 are numerically scored to reflect a relative quality or goodness of match. The scorer 33 assigns a numerical score 41 to each search result 38 for indicating a relative quality of match, with higher numerical scores 41 to reflect better quality than lower numerical scores 41. For instance, if Spanish was a preferred language 39, those search results 38 in Spanish would have a higher numerical score 41 than search results 38 in, say, English. However, those search results 38 in a less preferred language, such as Portuguese, could also have a higher numerical score 41 than search results 38 in English, but lower numerical score 41 than search results 38 in Spanish. Alternatively, a counter scoring approach could be used whereby the scorer 33 assigns lower numerical scores 41 to reflect better quality than higher numerical scores 41. Other styles, assignments or definitions of search result scoring are feasible, as would be recognized by one skilled in the art.
To determine the preferred languages 39 and less preferred languages 40, the language promoter 34 evaluates search query characteristics (SQ Chars) 43, user interface characteristics (UI Chars) 44, and search result characteristics (SR Chars) 45. The search query characteristics 43 may be determined from the metadata 48. The user interface characteristics 44 may be determined from the metadata 48, and any available language preferences 42, which may be maintained by the server II (server-side) independently of each search query 36. The search result characteristics 45 may be determined from the search results 38.
The language promoter 34 orders the search results 38. In one embodiment, non-numerically ordered search results 38 are ordered by a shifting factor 46, as further describe below with reference to
In another embodiment, preferable when an adjustment formula is available for a range of numerical scores 41, numerically scored search results 38 are ordered by a weighting factor 47, as further describe below with reference to
For search results 38 in one of the less preferred languages 40, a weighting factor WLPL is provided by the equation (2):
These weighting factors are most suitable when numerical scores 41 range between 0.0 and 1.0 and are approximately uniformly distributed. In the described embodiment, the search results 38 having a given score si are promoted more when associated with one of the preferred languages 39 than when associated with one of the less preferred languages 40. However, the search results 38 associated with one of the less preferred languages 40 could instead be promoted more than the search results 38 associated with one of the preferred languages 39, as would be recognized by one skilled in the art. Alternatively, weighting factors 47 could be used to decrease the numerical score 41 of each search result 38 depending upon whether the search result 38 is in one of the preferred languages 39 or the less preferred languages 40. Other ranges of numerical scores and forms of weighting factors could be employed as well, as would be recognized by one skilled in the art.
In a further embodiment, the shifting factor 46 and the weighting factor 47 can be adjusted to accommodate less or more reliable dynamic preferred language determination. For instance, a short search query 36 or sparse search results 37 might lower the accuracy of the dynamic preferred language determination due to less context with which to work. The shifting factor 46 and the weighting factor 47 would be relaxed to less aggressively order the search results 37 Alternatively, a long search query 36 or lengthy search results 37 might increase the accuracy and the shifting factor 46 and the weighting factor 47 would be increased to more aggressively order the search results 37.
Finally, the presenter 35 presents the ordered search results 37 to the user 19 via the browser 18. Typically, only a part of the ordered search results 37 need be presented since the full set of ordered search results 37 can exceed available presentation space on the browser 18. Presentation is the communication of the ordered search results 37 by means of a search result response message.
The headers 62 consist of zero or more MIME-compliant name and value pairings, which provide the metadata 48 describing the characteristics of the interface of the browser 18 and the entity body 63, that is, the search query itself. Four MIME-compliant headers provide metadata 48 instrumental in determining those languages acceptable to a requesting user, as follows:
(1) Accept_Charset (64): Indicates the character sets that are acceptable or preferred by the requesting browser 18, for instance, ISO-Latin-1, an eight-bit extension to ASCII that supports Western European languages. ISO-Latin-1 is also known as ISO-8859-1.
(2) Accept_Language (65): Indicates the languages that are acceptable or preferred by the user 19, in order of preference and optionally including a quality factor q, for instance, strong preference for French (fr) and lesser preference for English (en).
(3) Content_Type (66): Describes the media type of the entity body 63, for instance, plain text (text/plain) and can indicate the character sets used to encode the entity body 63, for instance, ISO-Latin-1, as a parameter.
(4) Content_Language (67): Indicates the natural language in which the entity body 63 is expressed, for instance, French (fr).
Other forms of request message formats using equivalent or related protocols and providing similar information as the forgoing headers 62, as well as other headers and parameters, are feasible, as would be recognized by one skilled in the art.
The headers 72 consist of zero or more MIME-compliant name and value pairings, which provide the metadata describing the characteristics of the entity body 73, that is, each search result. Two MIME-compliant headers provide metadata instrumental in determining those languages acceptable to a requesting user, as follows:
(1) Content_Type (74): Describes the media type of the entity body 73, for instance, plain text (text/plain) and indicates the character sets used to encode the entity body 73, for instance, ISO-Latin-1, as a parameter.
(2) Content_Language (75): Indicates the natural language in which the entity body 73 is expressed, for instance, English (en).
Other forms of response message formats using equivalent or related protocols and providing similar information as the forgoing headers 72, as well as other headers and parameters, are feasible, as would be recognized by one skilled in the art.
A search query 36 is accepted from a user 19 and parsed into metadata 48 (block 81). A search is executed on a searchable data repository 49 by evaluating the search query 36 against information characteristics maintained in the searchable data repository 49 and search results 38 are generated (block 82). Since thousands or even millions of search results 38 can potentially be generated, only a subset of the search results 38, typically between 100 to 10,000, are retained as the most promising search results 38. Targeted search results (not shown) can also be introduced, such as advertising or topical information content. Prior to providing the search results 38 to the browser 18, the search results 38 can be temporarily staged as “raw” Web pages, structured data, or unstructured data, from which metadata describing the characteristics of each search result 38 can be extracted, as is known in the art. The search results 38 are qualitatively ordered by degree of match to the search query 36 (block 83) to provide a ranking or scoring, including a numerical score 41, reflecting search result quality, as described above with reference to
Up to this point, the search results 38 have been identified and ranked or scored. The preferred languages 39, as well as the less preferred languages 40, of the requesting user 19 are then determined (block 84), as further described below with reference to
In a further embodiment, the preferred languages 39 and less preferred languages 40 are stored for future use while executing search queries 36 from the same requesting user 19. As well, the ability to present the ordered search results 37 using preferred language ordering could be controlled by enabling or disabling presentation in the preferred languages 39 and, if available, the less preferred languages 40, using a “toggle” provided via the user interface. In a still further embodiment, the ordered search results 37 are grouped together in each of the preferred languages 39 and, if available, the less preferred languages 40, prior to presentation to the requesting user 19. Alternatively, the ordered search results 37 in the preferred languages 39 and, if available, the less preferred languages 40 can be arranged for presentation next to those search results in non-preferred languages, such as by using adjacent columns or cells in a table. The routine then terminates.
First, the search query characteristics 43 are evaluated (block 91) based on the metadata 48 parsed from the search query 36, as further described below with reference to
Next, if no specific languages can be determined from the search query characteristics 43 (block 92), the user interface characteristics 44 are evaluated (block 94), as further described below with reference to
Next, if English is provided as the accepted language of the user interface (block 95), the search results characteristics 45 are evaluated (block 97). In the described embodiment, the search results 38 are provided in one of two formats. First, the search results 38 can be grouped as a collection of “raw” Web pages from which language characteristics can be determined. Second, the search results 38 can be organized into metadata describing the various characteristics, including language characteristics, and content of the Web pages corresponding to the search results 38. The predominant language of each search result 38 can be dynamically determined through content analysis, such as described in U.S. Pat. No. 6,167,369, issued Dec. 26, 2000 to Schulze, the disclosure of which is incorporated by reference. If a majority of the search results 38 are in English (block 98), English is selected as a preferred language 39 (block 99). Otherwise, no preferred languages 39 or less preferred languages 40 are assumed (block 100) and the routine returns.
For each instance in which one or more preferred language 39 has been selected (blocks 93, 96 and 99), related languages, if any, can optionally be selected as additional preferred languages 39 (block 101). Related language include those languages and dialects sharing a common basis whereby users proficient in one such language are able to comprehend, perhaps with only slight difficulty, related languages. For instance, a user proficient in Spanish can often comprehend information provided in Portuguese. Following any additions to the preferred languages 39, the routine returns.
First, any available metadata 48 corresponding to the headers 62 of the search query request message 60 are retrieved (block 111). The languages of the content provided in the entity body 63 are determined (block 112) by evaluating the parameters of the Content_Language header 67. If specified (block 113), the specified languages are returned (block 114). Otherwise, the character sets of the content provided in the entity body 63 are determined (block 115) by evaluating the Content_Type header 66. If specified as language-specific character sets (block 116), the specified languages are returned (block 117). For example, the ISO-2022-JP is a Japanese-specific character set. Otherwise, no language preferences are returned (block 118).
The user interface is generated by the search engine 21 and express language preferences can often be specified as user options. Thus, any available language preferences are first retrieved (block 122). Server-side language preferences are maintained either directly in a cookie stored at the client, or by the search engine 21 and accessed using cookies or log-in procedures to uniquely identify each requesting user 19. If available, the appropriate language identifying cookie is retrieved, or the appropriate user log-in procedure is performed. The stored language preference are retrieved and used to determine any server-side language preferences (block 122). If specified (block 123), the specified languages are returned (block 124).
Browsers 18 can limit the languages in which search results 38 are accepted as client-side language preferences. Thus, any available metadata 48 corresponding to the headers 62 of a search query request message 60 are retrieved (block 125) and the languages accepted by the user interface of the browser 18 are determined (block 126) by evaluating the Accept_Language header 65. In addition to specifying accepted languages, the Accept_Language header 65 can include a quality factor q that indicates a degree of language preference on a scale of 0.0 through 1.0. If specified (block 127), the specified languages are returned (block 120) with those languages having a quality factor q less than 1.0 being specified as less preferred languages 40.
If no accepted languages for the user interface of the browser 18 are specified (block 127), the character sets accepted by the user interface of the browser 18 are determined (block 128) by evaluating the Accept_Charset header 64. If specified as language-specific character sets (block 130), the specified languages are returned (block 131).
Otherwise, no language preferences can be determined by either server-side or client-side language preferences. However, a language preference might still be determinable based on information available in the URL 68 and the client location. The location of the IP domain identified in the URL 68 is determined (block 132). For example, a URL 68 specified as “www.acme.at” has an IP domain of “.at,” which indicates an Austrian IP domain. However, certain IP domains, such as “.com,” are so widely-used that no useful language preference inferences can be drawn. If the URL 68 provides a useful IP domain (block 133), the languages of the country to which the IP domain is assigned is determined (block 134) and returned (135). If not useful (block 133), the location of the client 12 from which the search query 36 was sent is determined (block 136) by evaluating a Client_IP parameter, which can be parsed from the header of the Transmission Control Protocol (TCP) packet within which the search query 36 was sent. The Client_IP parameter provides an IP address, which is a 32-bit numeric address written as four numbers separated by periods. An IP domain can be determined by a Domain Name Service lookup of the last number in the IP address. Again, if useful in inferring a language preference (block 137), the languages of the IP domain are determined (block 138) and returned (block 139). In the described embodiment, the predominant language for the domain specified in the IP address of the client 12 is selected. Otherwise, if no IP address is provided (block 137), English is returned (block 140).
First, the approach utilized by the search engine 21 to rank or order the search results 38 is determined (block 146). If the numerical scores 41 assigned to the search results 38 are suitable for numerical adjustment (block 147), a numerical scoring approach is utilized, whereby the search results 38 are ordered using a weighting factor 47 (block 149), as further described below with reference to
In one embodiment, the routine operates on a subset less than or equal to the total number of search results 38, although other forms of subset selection criteria could be used, as would be recognized by one skilled in the art. A variable n is set to the number of search results to be displayed to the user 19, while an upper limit UL for preferred language 39 and an upper limit for less preferred languages LPUL are both set to the lesser of the number of search results 38, n, and twice n (block 151). The search results 38 are then ordered in an iterative processing loop (blocks 153-166) as follows. First, an index j is set to the upper limit UL (block 152) and processing is performed while the index j is positive (block 153). The search results are maintained in an array Result[ ]. If Result [j] is not in a preferred language Pref_Lang and Result [j] is not in a less preferred language Less_Pref_Lang (block 154), Result [j] is demoted by the shifting factor 46, as follows. A variable target_pos is set to the lesser of twice j and upper limit UL (block 155) and a temporary variable, temp, is set to Result [j] (block 156). The remaining search results 38 are promoted by shifting Results [j+1] through Results [target_pos] up by one (block 157) and Result [target_pos] is set to temp (block 158). The upper limit UL is set to target_pos minus one (block 159) and the less preferred upper limit LPUL is set to the lesser of the less preferred upper limit LPUL and upper limit UL (block 160).
If Result [j] is in a less preferred language Less_Pref Lang (block 161), Result [j] is demoted by the shifting factor 46, as follows. The variable target_pos is set to the lesser of the floor of 1.5 times j and the less preferred upper limit LPUL (block 162) and a temporary variable, temp, is set to Result [j] (block 163). The remaining search results 38 are shifted by promoted Results [j+1] through Results [target_pos] up by one (block 164) and Result [target_pos] is set to temp (block 165). The less preferred upper limit (LPUL) is set to target_pos minus one (block 166).
Finally, the index j is set to j minus one (block 167) and processing continues with the next loop iteration (block 168), after which the routine returns.
In the described embodiment, the numerical scores 41 increase with the quality of match. For example, a higher numerical score 41 reflects a better quality than lower numerical scores 41. Alternatively, a system may be employed whereby the numerical scores 41 could decrease with quality of match, as would be recognized by one skilled in the art. In the described embodiment, two weighting factors 47 are used to increase the numerical score 41 of each search result 38 depending upon whether the search result 38 is in one of the preferred languages 39 or the less preferred languages 40. For search results 38 in one of the preferred languages 39, a weighting factor WLP is provided by the equation (3):
For search results 38 in one of the less preferred languages 40, a weighting factor WLPL is provided by the equation (4):
These weighting factors are most suitable when numerical scores 41 range between 0.0 and 1.0 and are approximately uniformly distributed. In the described embodiment, the search results 38 having a given score si are promoted more when associated with one of the preferred languages 39 than when associated with one of the less preferred languages 40. However, the search results 38 associated with one of the less preferred languages 40 could instead be promoted more than the search results 38 associated with one of the preferred languages 39, as would be recognized by one skilled in the art. Alternatively, weighting factors 47 could be used to decrease the numerical score 41 of each search result 38 depending upon whether the search result 38 is in one of the preferred languages 39 or the less preferred languages 40. Other ranges of numerical scores and forms of weighting factors could be employed as well, as would be recognized by one skilled in the art.
The routine operates on a subset less than or equal to the total number of search results 38 and recalculates the numerical scores 41 through an iterative processing loop (blocks 172-177) as follows. A variable n is set to the number of search results to be multiplied by a margin, for instance 2 or 3 (block 171). The search results 38 are maintained in an array Results[ ]. The numerical score 41 for each search result 38 is recalculated in the iterative processing loop (blocks 172-177) indexed by a variable i. During each iteration (block 172), if Result [i] is in a preferred language Pref_Lang (block 173), Score [i] is set to half the quantity Score[i] plus one (block 167), that is, Equation (3). Otherwise, if Result [i] is in a less preferred language Less_Pref_Lang (block 175), Score[i] is set to one-third the quantity two times Score[i] plus one (block 176), that is, Equation (4). Otherwise, no numerical score adjustment is required. Processing continues with the next iteration (block 177). After all iterations, the search results 38 are resorted (block 178), after which the routine returns.
The search engine 21 consists of five components: parser 531, indexer 532, scorer 533, country biaser 534, and presenter 535. Briefly, the search engine 21 receives a search query 536 communicated via a browser 18 from a user 19, executes a search, generates search results 538, orders the search results 538 in consideration of country preferences, and sends the ordered search results 537. The search query 536 is preferably provided as a HTTP-compliant request message and the ordered search results 537 are preferably provided as HTTP-compliant response messages, although other forms of request and response exchanges are feasible, as would be recognized by one skilled in the art.
In more detail, the parser 531 receives the search query 536. Each search query 536 describes potentially retrievable information, such as Web content 22. The parser 531 then parses the search query 536 into individual tokens. The tokens include header values constituting metadata 548, and an entity body containing the actual search query. The metadata 548 is copied to the country biaser 534.
The indexer 532 executes the search by evaluating the search query 536 against information characteristics maintained in a searchable data repository 547. The information characteristics are either the actual Web content 22 or metadata, such as hyperlinks, describing terms and attributes used to identify Web content. Other structures and organizations of a searchable data repository 547 are feasible, as would be recognized by one skilled in the art. Upon completing the search, the indexer 532 generates a set of search results 538 by applying the characteristics specified in the search query 536 to the stored information. Other structures and organizations of a searchable data repository 547 are feasible, as would be recognized by one skilled in the art.
Potentially, the indexer 532 can identify thousands or even millions of search results 538, so only a subset of the search results 538, typically between 100 to 10,000, are retained as the most promising search results 538. The most promising search results 538 are then qualitatively ranked or scored by degree of match to the search query terms. The search results 538 can be numerically scored to reflect a relative quality or goodness of match. The scorer 533 assigns a numerical score 541 to each search result 538 for indicating a quality of match.
The indexer 532 also detects the countries associated with each search result 538. The country can be determined in several ways. First, the country can be determined from the extension of the Uniform Resource Locator (URL) of each search result 538. For instance, the URL www.whsmith.co.uk is assumed to be either located in or associated with the United Kingdom. Second, the address of the domain registrar can be examined and the country of business inferred. Similarly, the country can be inferred from the IP address of the Web server from which the search result 538 was obtained, from the search result document, or from other Web pages on the same Web site. Finally, the anchor text of the hyperlinks to the search result document, the text near the hyperlinks, or the countries of the Web pages with hyperlinks to the search result documents can be examined. Preferably, a combination of the foregoing methods can be combined to provide more accurate results. In addition, other techniques for detecting the countries associated with search results are possible, as would be recognized by one skilled in the art.
The country biaser 534 performs two primary functions. First, the country biaser 534 determines one or more preferred countries 539 for each search query 536, as further described below with reference to
In the described embodiment, the scorer 533 assigns those search results 538 having a higher degree of match a commensurately higher rank relative to other search results 538. For instance, if Canada was a preferred country 539, those search results 538 originating from Canadian Web servers would have a higher degree of match than search results 538 from, say, Australian Web servers. However, those search results 538 from an alternate preferred country, such as the United States, could also have a higher degree of match than search results 538 from Australian Web servers, but lower degree of match than search results 538 from Canadian Web servers. Alternatively, a counter ranking approach could be used whereby the scorer 533 assigns those search results 538 having a higher degree of match a commensurately lower rank relative to other search results 538. Other styles, assignments or definitions of search result ranking are feasible, as would be recognized by one skilled in the art. As well, the Web servers for a preferred country need not be physically located within the borders of the country and only need present a reasonable nexus to a given country with respect to Web content and logical association, as would be recognized by one skilled in the art.
In another embodiment, the search results 538 are numerically scored to reflect a relative quality or goodness of match. The scorer 533 assigns a numerical score 541 to each search result 538 for indicating a relative quality of match, with higher numerical scores 541 to reflect better quality than lower numerical scores 541. Those numerical scores 541 assigned to search results 538 from a Web server associated with a preferred country are promoted or “boosted” to provide a preferred country bias. For instance, if Canada was a preferred country 539, those search results 538 from Canadian Web servers would have numerical scores 541 boosted higher than search results 538 from, say, Australian Web servers. Those search results 538 from an alternate preferred country, such as the United States, could also have numerical scores 541 boosted higher than search results 538 from Australian Web servers. However, the search results 538 from Canadian Web servers could still be lower than the search results 538 from United States Web servers if the latter search results 538 provide better overall matches. Alternatively, a counter scoring approach could be used whereby the scorer 533 assigns lower numerical scores 541 to reflect better quality than higher numerical scores 541 and those numerical scores 541 assigned to search results 538 from a Web server associated with a preferred country are demoted to provide a preferred country bias. Other styles, assignments or definitions of search result scoring are feasible, as would be recognized by one skilled in the art. As well, the Web servers for a preferred country need not be physically located within the borders of the country and only need present a reasonable nexus to a given country with respect to Web content and political, social and similar associations, as would be recognized by one skilled in the art. For instance, Web content from a Canadian Web server may actually be physically located on a proxy Web server located in another country, such as the United States.
In a further embodiment, a toolbar is provided as part of the presentation of a Web page on the graphical user interface of the Web browser 18. The toolbar can be in the form of a client-side application, as is known in the art. The toolbar includes a log, which counts the countries from which users visit Web sites. The predominant country or countries are then determined based on the log. In addition, the toolbar can identify Web sites having a worldwide appeal and which should therefore remain unassigned to a particular country. For instance, the Web site for a multinational company, such as Starbucks Corporation, would not be assigned to the United States.
To determine the preferred countries 539, the country biaser 534 evaluates any available country preferences 542, interface characteristics (IF Chars) 543, and IP characteristics (IP Chars) 544. The country preferences 542 are maintained independent of each HTTP transaction using cookies and must be retrieved from the client 12 prior to executing a search, or via a log-in procedure. The interface characteristics 543 may be determined from the metadata 548 and search engine interface and express country preferences can often be specified as user options. The IP characteristics 544 may be determined from the metadata 548 and the Internet protocol (IP) address of the client, which can be mapped to a country table 540 to determine a country with which the search results 538 are associated.
The country biaser 534 orders the search results 538. In one embodiment, non-numerically ordered search results 538 are ordered by a shifting factor 545, as further described below with reference to
In another embodiment, preferable when an adjustment formula is available for a range of numerical scores 541, numerically scored search results 538 are adjusted by a weighting factor 546 to promote or “boost” the numerical scores 541, as further describe below with reference to
In the described embodiment, for search results 538 in one of the preferred countries 539, a weighting factor WLP is provided by the equation (5):
The weighting factor is most suitable when numerical scores 541 range between 0.0 and 1.0 and are approximately uniformly distributed. Other ranges of numerical scores and forms of weighting factors could be employed as well, as would be recognized by one skilled in the art.
In a further embodiment, the shifting factor 545 and the weighting factor 546 can be adjusted to accommodate less or more reliable dynamic preferred country determination. For instance, a short search query 536 or sparse search results 537 might lower the accuracy of the dynamic preferred country determination due to less context with which to work. The shifting factor 545 and the weighting factor 546 would be relaxed to less aggressively order the search results 537 Alternatively, a long search query 536 or lengthy search results 537 might increase the accuracy and the shifting factor 545 and the weighting factor 546 would be increased to more aggressively order the search results 537.
In addition, the search engine 21 can optionally include a language promoter (as described above) to determine preferred languages and less preferred languages, such as described in commonly-assigned U.S. provisional patent application Ser. No. 60/459,339, filed Mar. 31, 2003, pending, and U.S. patent application Ser. No. 10/407,476, filed Apr. 3, 2003, pending, the disclosures of which are incorporated by reference. In the described embodiment, the language promoter evaluates interface characteristics, IP characteristics, and search result characteristics for providing preferred language ordering of search results 537, either in conjunction with or as an adjunct to the country biaser 534.
Finally, the presenter 535 presents the ordered search results 537 to the user 19 via the browser 18. Typically, only a part of the ordered search results 537 need be presented since the full set of ordered search results 537 can exceed available presentation space on the browser 18. Presentation is the communication of the ordered search results 537 by means of a search result response message.
A search query 536 is accepted from a user 19 and parsed into metadata 548 (block 581). A search is executed on a searchable data repository 547 by evaluating the search query 536 against information characteristics maintained in the searchable data repository 547 and search results 538 are generated (block 582). Since thousands or even millions of search results 538 can potentially be generated, only a subset of the search results 38, typically between 100 to 10,000, are retained as the most promising search results 538. Prior to providing the search results 538 to the browser 18, the search results 538 can be temporarily staged as “raw” Web pages, structured data, or unstructured data, from which metadata describing the characteristics of each search result 538 can be extracted, as is known in the art. The search results 538 are qualitatively ordered by degree of match to the search query 536 (block 583) to provide a ranking or scoring, including a numerical score 541, reflecting search result quality, as described above with reference to
Up to this point, the search results 538 have been identified and ranked or scored. The preferred countries 539 of the requesting user 19 are then determined (block 585), as further described below with reference to
In a further embodiment, the preferred countries 539 are stored for future use while executing search queries 536 from the same requesting user 19. As well, the ability to present the ordered search results 537 using preferred country ordering could be controlled by enabling or disabling presentation in the preferred countries 539 using a “toggle” provided via the user interface. In a still further embodiment, the ordered search results 537 are grouped together in each of the preferred countries 539 prior to presentation to the requesting user 19. Alternatively, the ordered search results 537 in the preferred countries 539 can be arranged for presentation next to those search results in non-preferred countries, such as by using adjacent columns or cells in a table. The routine then terminates.
First, the interface characteristics 543 are evaluated (block 591) based on the metadata 548 parsed from the search query 536 and the search engine interface, as further described below with reference to
In the described embodiment, the search results 538 are provided in one of two formats. First, the search results 538 can be grouped as a collection of “raw” Web pages from which country characteristics can be determined. Second, the search results 538 can be organized into metadata describing the various characteristics, including country characteristics, and content of the Web pages corresponding to the search results 538. The predominant country or language of each search result 538 can be dynamically determined through content analysis, such as described in U.S. Pat. No. 6,167,369, issued Dec. 26, 2000 to Schulze, the disclosure of which is incorporated by reference.
For each instance in which one or more preferred country 539 has been selected (blocks 593, 596 and 599), related, alternate and less preferred countries, if any, can optionally be selected as additional preferred countries 539 (block 600). Related, alternate and less preferred countries include those countries having a reasonable nexus to a given country with respect to Web content and political, social and similar associations, as would be recognized by one skilled in the art, or which a user simply indicates as being related, alternate and less preferred. For instance, Canada and the United States share numerous attributes and Canadian users may find Web content retrieved from United States Web servers equally useful. Following any additions to the preferred countries 539, the routine returns.
First, any available metadata 548 corresponding to the headers of a search query request message are retrieved (block 611). Any specified countries are determined (block 612) by evaluating the search engine interface. The user interface is generated by the search engine 21 and express country preferences can often be specified as user options. Thus, any available country preferences are first determined. For example, a country-specific search engine interface, such as www.google.co.uk or www.google.de could respectively indicate user preferences for Web content retrieved from Web servers associated with the United Kingdom and Germany. Server-side country preferences are maintained either directly in a cookie stored at the client, or by the search engine 21 and accessed using cookies or log-in procedures to uniquely identify each requesting user 19. If available, the appropriate country-identifying cookie is retrieved, or the appropriate user log-in procedure is performed. If specified (block 613), the specified countries are returned (block 614). Otherwise, no country preferences are returned (block 615).
First, any available metadata 548 corresponding to the headers of a search query request message are retrieved (block 621). Any specified countries are obtained (block 612) by performing lookup mapping the IP address of the client to the country table 540. The location of the client 12 from which the search query 536 was sent can be determined by evaluating the header of the Transmission Control Protocol (TCP) packet within which the search query 536 was sent. The TCP header specifies an IP address, which is a 32-bit numeric address written as four numbers separated by periods. An IP domain can be determined by a Domain Name Service lookup of the last number in the IP address, as is known in the art. Other forms of client address mapping in addition to TCP/IP are feasible, as would recognized by one skilled in the art. In the described embodiment, the predominant country for the domain specified in the IP address of the client 12 is selected using the country table 540 (block 623) and returned (block 624). Otherwise, if no IP address is provided (block 623), no country preferences are returned.
First, the approach utilized by the search engine 21 to rank or order the search results 538 is determined (block 646). If the numerical scores 541 assigned to the search results 538 are suitable for numerical adjustment (block 647), a numerical scoring approach is utilized, whereby the search results 538 are ordered using a weighting factor 546 (block 649), as further described below with reference to
In one embodiment, the routine operates on a subset less than or equal to the total number of search results 538, although other forms of subset selection criteria could be used, as would be recognized by one skilled in the art. A variable n is set to the number of search results to be displayed to the user 19 and an upper limit UL for preferred countries 539 is set to the lesser of the number of search results 538, n, and twice n (block 651). The search results 538 are then ordered in an iterative processing loop (blocks 653-661) as follows. First, an index j is set to the upper limit UL (block 652) and processing is performed while the index j is positive (block 653). The search results are maintained in an array Result[ ]. If Result [j] is associated with a preferred country Pref Country (block 654), Result [j] is skipped. Otherwise, if Result [j] is not associated with a preferred country Pref_Country (block 654), Result [j] is demoted by the shifting factor 545, as follows. A variable target_pos is set to the lesser of twice j and upper limit UL (block 655) and a temporary variable, temp, is set to Result [j] (block 656). The remaining search results 538 are promoted by shifting Results [j+1] through Results [target_pos] up by one (block 657) and Result [target_pos] is set to temp (block 658). The upper limit UL is set to target_pos minus one (block 659). The index j is set to j minus one (block 660) and processing continues with the next loop iteration (block 661), after which the routine returns.
In the described embodiment, the numerical scores 541 increase with the quality of match. For example, a higher numerical score 541 reflects a better quality than lower numerical scores 541. Alternatively, a system may be employed whereby the numerical scores 541 could decrease with quality of match, as would be recognized by one skilled in the art. In the described embodiment, a weighting factor 547 is used to increase the numerical score 541 of each search result 538 in one of the preferred countries 539. For search results 538 in one of the preferred countries 539, a weighting factor WLP is provided by the equation (6):
The weighting factor is most suitable when numerical scores 541 range between 0.0 and 1.0 and are approximately uniformly distributed. Other ranges of numerical scores and forms of weighting factors could be employed as well, as would be recognized by one skilled in the art.
The routine operates on a subset less than or equal to the total number of search results 538 and recalculates the numerical scores 541 through an iterative processing loop (blocks 672-677) as follows. A variable n is set to the number of search results to be multiplied by a margin, for instance 2 or 3 (block 671). The search results 538 are maintained in an array Results[ ]. The numerical score 541 for each search result 538 is recalculated in the iterative processing loop (blocks 672-677) indexed by a variable i. During each iteration (block 672), if Result [i] is associated with a preferred country Pref Country (block 673), Score [i] is set to half the quantity Score[i] plus one (block 674), that is, Equation (5). Otherwise, if Result [i] is not associated with a preferred country, no numerical score adjustment is required and Result [i] is skipped. Processing continues with the next iteration (block 675). After all iterations, the search results 538 are resorted (block 676), after which the routine returns.
While the invention has been particularly shown and described as referenced to the embodiments thereof, those skilled in the art will understand that the foregoing and other changes in form and detail may be made therein without departing from the spirit and scope of the invention.
This application is a continuation-in-part of U.S. patent application Ser. No. 10/407,476, filed Apr. 3, 2003, which claims priority under 35 U.S.C. § 119(e) to U.S. Provisional Application No. 60/459,339, filed Mar. 31, 2003; and is a continuation of U.S. patent application Ser. No. 10/607,927, filed Jun. 27, 2003, which claims priority under 35 U.S.C. § 119(e) to U.S. Provisional Application No. 60/479,166, filed Jun. 16, 2003, all of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
60459339 | Mar 2003 | US | |
60479166 | Jun 2003 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10607927 | Jun 2003 | US |
Child | 10407476 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10407476 | Apr 2003 | US |
Child | 12255253 | US |