Mercurial Hosting > luan
changeset 770:50f279d3f889
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 12 Aug 2016 07:07:14 -0600 |
parents | c5f5b655f1f7 |
children | dcae4dd718b8 |
files | lucene/src/luan/modules/lucene/Lucene.luan |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
diff -r c5f5b655f1f7 -r 50f279d3f889 lucene/src/luan/modules/lucene/Lucene.luan --- a/lucene/src/luan/modules/lucene/Lucene.luan Wed Aug 10 23:37:23 2016 -0600 +++ b/lucene/src/luan/modules/lucene/Lucene.luan Fri Aug 12 07:07:14 2016 -0600 @@ -63,6 +63,8 @@ end function index.search(query, from, to, sort) + from or error "missing 'from' parameter" + to or error "missing 'to' parameter" local results = {} local function fn(i,doc_fn) if i >= from then