11. A computer-implemented method for providing full-text search integration in XQuery, comprising: implementing a built-in search function defined in an XQuery language and initiating a full-text search, wherein the search function comprises one or more search terms and a relation logic; identifying variants for each search term comprised in the search function and obtaining posting lists for one or more of the variants, each posting list comprising values offset from elements containing the search term associated with the variant to which the posting list corresponds; applying the relation logic to the offset values of the posting lists; selecting those elements with offset values that satisfy the relation logic; and providing the elements that satisfy the relation logic as results of the full-text search.
11. A computer-implemented method for providing full-text search integration in XQuery, comprising: implementing a built-in search function defined in an XQuery language and initiating a full-text search, wherein the search function comprises one or more search terms and a relation logic; identifying variants for each search term comprised in the search function and obtaining posting lists for one or more of the variants, each posting list comprising values offset from elements containing the search term associated with the variant to which the posting list corresponds; applying the relation logic to the offset values of the posting lists; selecting those elements with offset values that satisfy the relation logic; and providing the elements that satisfy the relation logic as results of the full-text search. 17. The computer-implemented method according to claim 11 , wherein the search function further comprises an XML node set to be searched using the search terms.