diff --git a/.hgignore b/.hgignore index afc23adc..1d76ecb3 100644 --- a/.hgignore +++ b/.hgignore @@ -92,5 +92,6 @@ website/usermanual/* website/idxthreads/forkingRecoll.html website/idxthreads/xapDocCopyCrash.html website/pages/recoll-mingw.html +website/pages/recoll-webui-install-wsgi.html website/pages/recoll-windows.html src/doc/user/RCL.SEARCH.SYNONYMS.html diff --git a/src/doc/user/usermanual.html b/src/doc/user/usermanual.html index 8899520a..49fb82a8 100644 --- a/src/doc/user/usermanual.html +++ b/src/doc/user/usermanual.html @@ -20,8 +20,8 @@ alink="#0000FF">
Recoll versions after 1.11 define a Python programming interface, both - for searching and indexing. The indexing portion has - seen little use, but the searching one is used in the - Recoll Ubuntu Unity Lens and Recoll Web UI.
+ for searching and indexing. -The API is inspired by the Python database API - specification. There were two major changes in recent +
The search interface is used in the Recoll Ubuntu + Unity Lens and Recoll WebUI.
+ +The indexing section of the API has seen little use, + and is more a proof of concept. In truth it is waiting + for its killer app...
+ +The search API is modeled along the Python database + API specification. There were two major changes along Recoll versions:
The basis for the Recoll API changed from + Python database API version 1.0 (Recoll versions up to + 1.18.1), to version 2.0 (Recoll 1.18.2 and + later).
+recoll
module became a package
- (with an internal recoll
module) as of Recoll version 1.19, in order
- to add more functions. For existing code, this only
- changes the way the interface must be
- imported.The recoll
module
+ became a package (with an internal recoll
module) as of
+ Recoll version
+ 1.19, in order to add more functions. For
+ existing code, this only changes the way the
+ interface must be imported.
As of Recoll 1.19, + the module can be compiled for Python3.
+The normal Recoll - installer installs the Python API along with the main - code.
+ installer installs the Python2 API along with the main + code. The Python3 version must be explicitely built and + installed.When installing from a repository, and depending on the distribution, the Python API can sometimes be found in a separate package.
+ +The following small sample will run a query and list
+ the title and url for each of the results. It would
+ work with Recoll 1.19
+ and later. The python/samples
source directory
+ contains several examples of Python programming with
+ Recoll, exercising the
+ extension more completely, and especially its data
+ extraction features.
+ from recoll import recoll + + db = recoll.connect() + query = db.query() + nres = query.execute("some query") + results = query.fetchmany(20) + for doc in results: + print(doc.url, doc.title) + +
Methods
-Methods
-Methods
-Methods
-Methods
-Recoll will index an MS-Word document - stored as an attachment to an e-mail message inside - a Thunderbird folder archived in a Zip file (and - more...). It will also help you search for it with a friendly and - powerful interface, and let you open a copy of a PDF at the right - page with two clicks. There is little that will remain - hidden on your disk.
+ stored as an attachment to an e-mail message inside + a Thunderbird folder archived in a Zip file (and + more...). It will also help you search for it with a friendly and + powerful interface, and let you open a copy of a PDF at the right + page with two clicks. There is little that will remain + hidden on your disk.Recoll has extensive documentation. If you run into a problem, or want to @@ -96,8 +96,16 @@