A computer-implemented method for searching a corpus of documents includes defining a query as a twig including a root annotation operator having an associated tag specifying a span and having an associated expression indicative of one or more terms whose occurrence within the span will satisfy the query....http://www.google.se/patents/US7895232?utm_source=gb-gplus-sharePatent US7895232 - Object-oriented twig query evaluation