12. A non-transitory computer-readable storage medium storing one or more sequences of instructions, which when executed, cause one or more processors to perform steps comprising: receiving a search request comprising one or more keywords; retrieving, from an index, a set of location indicators, wherein each location indicator of the set of location indicators is stored in association with at least one keyword of the one or more keywords; wherein a location indicator of the set of location indicators includes: a document identifier identifying a particular XML document in a collection of XML documents containing a particular keyword of the one or more keywords; an order key specifying the hierarchical position of a node within the particular XML document that contains the particular keyword; and a path representation representing a path of the node within the particular XML document that contains the particular keyword; and displaying one or more nodes of the particular XML document that contains the particular keyword, wherein the one or more nodes includes the node located at the hierarchical position specified by the order key.
12. A non-transitory computer-readable storage medium storing one or more sequences of instructions, which when executed, cause one or more processors to perform steps comprising: receiving a search request comprising one or more keywords; retrieving, from an index, a set of location indicators, wherein each location indicator of the set of location indicators is stored in association with at least one keyword of the one or more keywords; wherein a location indicator of the set of location indicators includes: a document identifier identifying a particular XML document in a collection of XML documents containing a particular keyword of the one or more keywords; an order key specifying the hierarchical position of a node within the particular XML document that contains the particular keyword; and a path representation representing a path of the node within the particular XML document that contains the particular keyword; and displaying one or more nodes of the particular XML document that contains the particular keyword, wherein the one or more nodes includes the node located at the hierarchical position specified by the order key. 16. The non-transitory computer-readable storage medium of claim 12 , wherein the path representation comprises a numeric path identifier, wherein the numeric path identifier is a key into an index of path names.