python api tests: added rclextract test

This commit is contained in:
Jean-Francois Dockes
2013-10-30 18:28:36 +01:00
parent 4b12c0d06c
commit 338ec6eb42
3 changed files with 53 additions and 2 deletions
+4 -2
View File
@@ -4188,13 +4188,15 @@ or
<listitem>Extract document defined
by <replaceable>ipath</replaceable> and return
a <literal>Doc</literal> object. The doc.text field
has the document text as either text/plain or
has the document text converted to either text/plain or
text/html according to doc.mimetype. The typical use
would be as follows:
<programlisting>
qdoc = query.fetchone()
extractor = recoll.Extractor(qdoc)
text = extractor.textextract(qdoc.ipath)</programlisting>
doc = extractor.textextract(qdoc.ipath)
# use doc.text, e.g. for previewing
</programlisting>
</listitem>
</varlistentry>
<varlistentry>