[Xapian-discuss] Getting document's context

Felix Antonius Wilhelm Ostmann ostmann at websuche.de
Mon Mar 5 11:38:35 GMT 2007

i want to use the same thing, but in think me must get the hole data and
do it without help from xapian. right?

Matti Heinonen schrieb:
> 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

Mit freundlichen Grüßen

Felix Antonius Wilhelm Ostmann
Websuche   Search   Technology   GmbH   &   Co. KG
Martinistraße 3  -  D-49080  Osnabrück  -  Germany
Tel.:   +49 541 40666-0 - Fax:    +49 541 40666-22
Email: info at websuche.de - Website: www.websuche.de
AG Osnabrück - HRA 200252 - Ust-Ident: DE814737310
Komplementärin:     Websuche   Search   Technology
Verwaltungs GmbH   -  AG Osnabrück  -   HRB 200359
Geschäftsführer:  Diplom Kaufmann Martin Steinkamp

More information about the Xapian-discuss mailing list