6. A computer-implemented method for providing full-text search integration in XQuery for a binary object XML repository, comprising: interpreting XQuery code and accepting a search query comprising one or more search expressions having one or more search terms; identifying all matching variants in a lexicon for each search term within the search expressions; collecting posting lists for each variant of each search term comprising sequence offset values to candidate elements containing that search term; dispatching an XQuery function calling mechanism comprising at least one argument for the search query based on the search expressions; searching and interpreting a full-text search query syntax for the XQuery function calling mechanism as a built-in search function specified as part of an XQuery language, comprising: applying search query Boolean logic to the sequence offset values; and filtering the posting lists for relations specified in the search query; determining the candidate elements that satisfy at least one of the search terms; returning all of the determined candidate elements that match at least one of the search expressions based on the search query Boolean logic and the relations, wherein each search expression corresponds to a piece of XML syntax; and returning a score that reflects strength of each match.
6. A computer-implemented method for providing full-text search integration in XQuery for a binary object XML repository, comprising: interpreting XQuery code and accepting a search query comprising one or more search expressions having one or more search terms; identifying all matching variants in a lexicon for each search term within the search expressions; collecting posting lists for each variant of each search term comprising sequence offset values to candidate elements containing that search term; dispatching an XQuery function calling mechanism comprising at least one argument for the search query based on the search expressions; searching and interpreting a full-text search query syntax for the XQuery function calling mechanism as a built-in search function specified as part of an XQuery language, comprising: applying search query Boolean logic to the sequence offset values; and filtering the posting lists for relations specified in the search query; determining the candidate elements that satisfy at least one of the search terms; returning all of the determined candidate elements that match at least one of the search expressions based on the search query Boolean logic and the relations, wherein each search expression corresponds to a piece of XML syntax; and returning a score that reflects strength of each match. 11. The method according to claim 6 , further comprising: applying the search query Boolean logic using fast ordered list routines comprising one of union routines and intersect routines.