[Xapian-discuss] Getting document's context
Matti Heinonen
matti.heinonen at uta.fi
Mon Mar 5 11:29:22 GMT 2007
Hello all,
Is there a way to access an indexed document's contents sequentally
starting from a given position in the document? I've been banging my
thick head on xapian's documentation and wading my feet in the depths of
the Internet for a day or so and not getting anywhere.
I'm using Python bindings for Xapian. Indexing and searching work fine,
but I cannot figure out how to show a bit of textual context around
terms found in a certain document (just like Google does).
When indexing, I am including posting information. When searching, I am
able to get the position information for a term using
database.positionlist(). But how to get the text in the positions around
the term?
Matti
--
Matti Heinonen | email: matti.heinonen at uta.fi
Atk-erikoistutkija | tel: +358 3 215 8523
Yhteiskuntatieteellinen tietoarkisto FSD | fax: +358 3 215 8519
FIN-33014 TAMPEREEN YLIOPISTO | WWW: http://www.fsd.uta.fi/
More information about the Xapian-discuss
mailing list