|
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)
|
48 |
#query.sortby("dmtime", ascending=True)
|
49 |
|
49 |
|
50 |
# Parse/run input query string
|
50 |
# Parse/run input query string
|
51 |
nres = query.execute(q, stemming = 0, stemlang="english")
|
51 |
nres = query.execute(q, stemming = 0, stemlang="english")
|
52 |
qs = u"Xapian query: [%s]" % query.getxquery()
|
52 |
qs = u"Xapian query: [%s]" % query.getxquery()
|
53 |
print(qs.encode("utf-8"))
|
53 |
print(qs.encode("utf-8"))
|