Switch to unified view

a/src/python/samples/recollq.py b/src/python/samples/recollq.py
...
...
43
    return outfilename
43
    return outfilename
44
44
45
def doquery(db, q):
45
def doquery(db, q):
46
    # Get query object
46
    # Get query object
47
    query = db.query()
47
    query = db.query()
48
    query.sortby("dmtime", ascending=True)
49
48
    # Parse/run input query string
50
    # Parse/run input query string
49
    nres = query.execute(q, stemming = 0, stemlang="english")
51
    nres = query.execute(q, stemming = 0, stemlang="english")
50
    qs = u"Xapian query: [%s]" % query.getxquery()
52
    qs = u"Xapian query: [%s]" % query.getxquery()
51
    print(qs.encode("utf-8"))
53
    print(qs.encode("utf-8"))
52
    groups = query.getgroups()
54
    groups = query.getgroups()