Mercurial Hosting > luan
comparison src/luan/modules/lucene/Lucene.luan @ 1531:fa39e3c356ae
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 02 Aug 2020 16:44:38 -0600 |
parents | 3bd4d7963456 |
children | 060ff7695317 |
comparison
equal
deleted
inserted
replaced
1530:447b7ef9197f | 1531:fa39e3c356ae |
---|---|
38 type(index_dir)=="table" or error "index_dir must be table" | 38 type(index_dir)=="table" or error "index_dir must be table" |
39 index_dir.to_uri_string and matches(index_dir.to_uri_string(),"^file:") or error "must be file" | 39 index_dir.to_uri_string and matches(index_dir.to_uri_string(),"^file:") or error "must be file" |
40 options = options or {} | 40 options = options or {} |
41 local index = {} | 41 local index = {} |
42 index.dir = index_dir | 42 index.dir = index_dir |
43 options.completer = nil -- remove | |
44 local java_index = LuceneIndex.getLuceneIndex(index_dir.java.file,options) | 43 local java_index = LuceneIndex.getLuceneIndex(index_dir.java.file,options) |
45 index.java = java_index | 44 index.java = java_index |
46 | 45 |
47 index.indexed_fields = {} | 46 index.indexed_fields = {} |
48 local mt = {} | 47 local mt = {} |
63 index.save = java_index.save | 62 index.save = java_index.save |
64 index.run_in_transaction = java_index.run_in_transaction | 63 index.run_in_transaction = java_index.run_in_transaction |
65 index.ensure_open = java_index.ensure_open | 64 index.ensure_open = java_index.ensure_open |
66 index.next_id = java_index.nextId | 65 index.next_id = java_index.nextId |
67 index.highlighter = java_index.highlighter | 66 index.highlighter = java_index.highlighter |
68 function index.indexed_only_fields(fields) end -- remove | |
69 index.count_tokens = java_index.count_tokens | 67 index.count_tokens = java_index.count_tokens |
70 --index.close = java_index.close | 68 --index.close = java_index.close |
71 | 69 |
72 index.has_postgres_backup = java_index.hasPostgresBackup() | 70 index.has_postgres_backup = java_index.hasPostgresBackup() |
73 index.rebuild_postgres_backup = java_index.rebuild_postgres_backup | 71 index.rebuild_postgres_backup = java_index.rebuild_postgres_backup |