A relevance system determines the relevance of a query term to a document
based on spans within the document that contain the query term. The
relevance system aggregates the relevance of the query terms into an
overall relevance for the document. For each query term, the relevance
system calculates a span relevance for each span that contains that query
term. The relevance system then aggregates the span relevances for a
query term into a query term relevance for that document. The relevance
system may aggregate the query term relevances into a document relevance.