Mercurial Hosting > luan
comparison lucene/src/luan/modules/lucene/Lucene.luan @ 312:d34be4588556
add lucene query parsing
git-svn-id: https://luan-java.googlecode.com/svn/trunk@313 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Wed, 24 Dec 2014 11:15:27 +0000 |
parents | fdb4bd391c28 |
children | fed1893821bf |
comparison
equal
deleted
inserted
replaced
311:22ca4f3a65c3 | 312:d34be4588556 |
---|---|
59 | 59 |
60 | 60 |
61 local Query = {} | 61 local Query = {} |
62 index.Query = Query | 62 index.Query = Query |
63 | 63 |
64 Query.parse = java_index.parse | |
65 | |
64 Query.all_docs = MatchAllDocsQuery.new() | 66 Query.all_docs = MatchAllDocsQuery.new() |
65 | 67 |
66 function Query.term(t) | 68 function Query.term(t) |
67 local iter = pairs(t) | 69 local iter = pairs(t) |
68 local field, value = iter() | 70 local field, value = iter() |