Mercurial Hosting > luan
comparison src/luan/modules/lucene/Lucene.luan @ 1422:e48290f3d9fb
better quoting
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 17 Nov 2019 16:28:51 -0700 |
parents | c7f9dd062eda |
children | a076e89a2879 |
comparison
equal
deleted
inserted
replaced
1421:8ab2f0fc3829 | 1422:e48290f3d9fb |
---|---|
26 integer = NumberFieldParser.INT | 26 integer = NumberFieldParser.INT |
27 long = NumberFieldParser.LONG | 27 long = NumberFieldParser.LONG |
28 double = NumberFieldParser.DOUBLE | 28 double = NumberFieldParser.DOUBLE |
29 } | 29 } |
30 | 30 |
31 Lucene.literal = SaneQueryParser.literal | 31 Lucene.quote = SaneQueryParser.quote |
32 Lucene.literal = Lucene.quote -- tmp | |
32 | 33 |
33 function Lucene.index(index_dir,options) | 34 function Lucene.index(index_dir,options) |
34 type(index_dir)=="table" or error "index_dir must be table" | 35 type(index_dir)=="table" or error "index_dir must be table" |
35 index_dir.to_uri_string and matches(index_dir.to_uri_string(),"^file:") or error "must be file" | 36 index_dir.to_uri_string and matches(index_dir.to_uri_string(),"^file:") or error "must be file" |
36 options = options or {} | 37 options = options or {} |