33. A method performed by one or more server devices, the method comprising: identifying, by a processor of the one or more server devices, a document that is relevant to a search term, the document comprising structural elements, where the structural elements comprise the document, a set of parts of the document, and a set of pages of the document; identifying, by a processor of the one or more server devices, a tree representation of the document, where the pages of the document correspond to leaf nodes, the parts of the document correspond to higher level nodes, and the document corresponds to a root node; assigning, by a processor of the one or more server devices, scores to the leaf nodes based on whether the leaf nodes contain occurrences of the search term; determining, by a processor of the one or more server devices, scores for the higher level nodes based on the scores of associated ones of the leaf nodes; determining, by a processor of the one or more server devices, a score for the root node based on the scores of the higher level nodes; providing, by a processor of the one or more server devices, a threshold, where the threshold is based on at least one of: a number of pages associated with one of the leaf nodes, a number of pages associated with one of the higher level nodes, or a number of pages associated with the root node; selecting, by a processor of the one or more server devices, one of the leaf nodes, one of the higher level nodes, or the root node, as a selected node, based on the scores and the threshold; and providing, by a processor of the one or more server devices, information relating to the selected node.
33. A method performed by one or more server devices, the method comprising: identifying, by a processor of the one or more server devices, a document that is relevant to a search term, the document comprising structural elements, where the structural elements comprise the document, a set of parts of the document, and a set of pages of the document; identifying, by a processor of the one or more server devices, a tree representation of the document, where the pages of the document correspond to leaf nodes, the parts of the document correspond to higher level nodes, and the document corresponds to a root node; assigning, by a processor of the one or more server devices, scores to the leaf nodes based on whether the leaf nodes contain occurrences of the search term; determining, by a processor of the one or more server devices, scores for the higher level nodes based on the scores of associated ones of the leaf nodes; determining, by a processor of the one or more server devices, a score for the root node based on the scores of the higher level nodes; providing, by a processor of the one or more server devices, a threshold, where the threshold is based on at least one of: a number of pages associated with one of the leaf nodes, a number of pages associated with one of the higher level nodes, or a number of pages associated with the root node; selecting, by a processor of the one or more server devices, one of the leaf nodes, one of the higher level nodes, or the root node, as a selected node, based on the scores and the threshold; and providing, by a processor of the one or more server devices, information relating to the selected node. 34. The method of claim 33 , where, when selecting one of the leaf nodes, one of the higher level nodes, or the root node, the method includes at least one of: selecting one of the leaf nodes that contains an occurrence of the search term as a potential result; selecting one of the higher level nodes as a potential result when the score of the one higher level node is greater than the threshold; or selecting the root node as a potential result when the score of the root node is greater than the threshold.