[ You are here:
XTF ->
Tag Reference ->
crossQuery ->
Search Result Formatter -> Hit Tag ]
Hit Tag
This tag identifies actual matched text within the context text of a
snippet tag. This tag has the form:
<hit>
…
</hit>
A hit may contain one or more matched words, which are separately marked with term tags.
If the original query used a
near or
and clause, the hit tag will mark the entire range of text between the first and last word found for the clause. For example, for a "man" near "war" query, the result would look like this:
<snippet rank="3" score="86">
that <hit><term>man</term> had never actually been to <term>war</term></hit>, but
he spoke as if he had
</snippet>
For an
OR query, if multiple matched words exist in the snippet, all the matched words will be marked with
Term tags, but only the word that this snippet is centered around will be marked with a hit tag.