python api: allow specifying the stemming language

This commit is contained in:
Jean-Francois Dockes
2012-12-04 08:35:36 +01:00
parent 4c950fd6f8
commit 4ca419ce2b
3 changed files with 20 additions and 9 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ def doquery(db, q):
# Get query object
query = db.query()
# Parse/run input query string
nres = query.execute(q)
nres = query.execute(q, stemming = 1, stemlang="english")
# Print results:
print "Result count: ", nres