Method and system for querying a collection of Unstructured or semi-structured
documents to identify presence of, and provide context and/or content for, keywords
and/or keyphrases. The documents are analyzed and assigned a node structure, including
an ordered sequence of mutually exclusive node segments or strings. Each node has
an associated set of at least four, five or six attributes with node information
and can represent a format marker or text, with the last node in any node segment
usually being a text node. A keyword (or keyphrase) is specified, and the last
node in each node segment is searched for a match with the keyword. When a match
is found at a query node, or at a node determined with reference to a query node,
the system displays the context and/or the content of the query node.