[ You are here: XTF -> Tag Reference -> crossQuery -> Query Parser Output Tags -> Section Type Search Tag ]

Section Type Tag

This tag modifies other queries, causing them to apply to only certain portions of the full text of a document. It has the form:
<sectionType>
 
    Term | Clause
 
</sectionType>
This tag may only be used within another query, and has the effect of limiting that query to search only those parts of the full document text whose sectionType attributes match the specified term or clause. The sectionType tag is only allowed within queries on the "text" field. XTF evaluates the specified term or clause against the section type attributes recorded at index time by the Pre-Filter stylesheet using the xtf:sectionType attribute.

For example, if one wanted the option to only search the chapter headings of all books in a repository, then the pre-filter would be modified to mark all the headings with xtf:sectionType="heading", and then a sectionType tag would be added within the main text query, containing term tag on the word "heading".

Within the sectionType tag, Term is a term tag, and Clause is a phrase, exact, and, or, orNear, near, range, resultData, or not tag.