Switch to unified view

a/src/README b/src/README
...
...
2382
   The following sample would query the index with a user language string.
2382
   The following sample would query the index with a user language string.
2383
   See the python/samples directory inside the Recoll source for other
2383
   See the python/samples directory inside the Recoll source for other
2384
   examples.
2384
   examples.
2385
2385
2386
 #!/usr/bin/env python
2386
 #!/usr/bin/env python
2387
2388
 import recoll
2387
 import recoll
2389
2388
2390
 db = recoll.connect()
2389
 db = recoll.connect()
2391
 db.setAbstractParams(maxchars=80, contextwords=2)
2390
 db.setAbstractParams(maxchars=80, contextwords=2)
2392
2391
...
...
2403
     abs = db.makeDocAbstract(doc, query).encode('utf-8')
2402
     abs = db.makeDocAbstract(doc, query).encode('utf-8')
2404
     print abs
2403
     print abs
2405
     print
2404
     print
2406
2405
2407
2406
2408
2409
     ----------------------------------------------------------------------
2407
     ----------------------------------------------------------------------
2410
2408
2411
                   Chapter 5. Installation and configuration
2409
                   Chapter 5. Installation and configuration
2412
2410
2413
5.1. Installing a binary copy
2411
5.1. Installing a binary copy