Switch to unified view

a/src/python/samples/recollq.py b/src/python/samples/recollq.py
...
...
17
17
18
def doquery(db, q):
18
def doquery(db, q):
19
    # Get query object
19
    # Get query object
20
    query = db.query()
20
    query = db.query()
21
    # Parse/run input query string
21
    # Parse/run input query string
22
    nres = query.execute(q)
22
    nres = query.execute(q, stemming = 1, stemlang="english")
23
23
24
    # Print results:
24
    # Print results:
25
    print "Result count: ", nres
25
    print "Result count: ", nres
26
    while query.next >= 0 and query.next < nres: 
26
    while query.next >= 0 and query.next < nres: 
27
        doc = query.fetchone()
27
        doc = query.fetchone()