Mercurial Hosting > luan
comparison src/luan/modules/lucene/Lucene.luan @ 1427:a076e89a2879
remove literal
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 24 Nov 2019 18:23:57 -0700 |
parents | e48290f3d9fb |
children | 82415c9c0015 |
comparison
equal
deleted
inserted
replaced
1426:94a6a209d4e2 | 1427:a076e89a2879 |
---|---|
27 long = NumberFieldParser.LONG | 27 long = NumberFieldParser.LONG |
28 double = NumberFieldParser.DOUBLE | 28 double = NumberFieldParser.DOUBLE |
29 } | 29 } |
30 | 30 |
31 Lucene.quote = SaneQueryParser.quote | 31 Lucene.quote = SaneQueryParser.quote |
32 Lucene.literal = Lucene.quote -- tmp | |
33 | 32 |
34 function Lucene.index(index_dir,options) | 33 function Lucene.index(index_dir,options) |
35 type(index_dir)=="table" or error "index_dir must be table" | 34 type(index_dir)=="table" or error "index_dir must be table" |
36 index_dir.to_uri_string and matches(index_dir.to_uri_string(),"^file:") or error "must be file" | 35 index_dir.to_uri_string and matches(index_dir.to_uri_string(),"^file:") or error "must be file" |
37 options = options or {} | 36 options = options or {} |