Mercurial Hosting > luan
comparison src/luan/modules/lucene/Lucene.luan @ 1533:28f06ac6ce39
add not_in_transaction
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 02 Aug 2020 21:17:27 -0600 |
parents | 060ff7695317 |
children | 3289674cc440 |
comparison
equal
deleted
inserted
replaced
1532:060ff7695317 | 1533:28f06ac6ce39 |
---|---|
55 | 55 |
56 index.to_string = java_index.to_string | 56 index.to_string = java_index.to_string |
57 index.snapshot = java_index.snapshot | 57 index.snapshot = java_index.snapshot |
58 index.advanced_search = java_index.advanced_search | 58 index.advanced_search = java_index.advanced_search |
59 index.search_in_transaction = java_index.search_in_transaction | 59 index.search_in_transaction = java_index.search_in_transaction |
60 index.delete_all = java_index.delete_all | 60 --index.delete_all = java_index.delete_all |
61 index.delete = java_index.delete | 61 --index.delete = java_index.delete |
62 index.save = java_index.save | 62 --index.save = java_index.save |
63 index.is_in_transaction = java_index.is_in_transaction | |
63 index.run_in_transaction = java_index.run_in_transaction | 64 index.run_in_transaction = java_index.run_in_transaction |
64 index.ensure_open = java_index.ensure_open | 65 index.ensure_open = java_index.ensure_open |
65 index.next_id = java_index.nextId | 66 index.next_id = java_index.nextId |
66 index.highlighter = java_index.highlighter | 67 index.highlighter = java_index.highlighter |
67 index.count_tokens = java_index.count_tokens | 68 index.count_tokens = java_index.count_tokens |
70 index.has_postgres_backup = java_index.hasPostgresBackup() | 71 index.has_postgres_backup = java_index.hasPostgresBackup() |
71 index.rebuild_postgres_backup = java_index.rebuild_postgres_backup | 72 index.rebuild_postgres_backup = java_index.rebuild_postgres_backup |
72 index.restore_from_postgres = java_index.restore_from_postgres | 73 index.restore_from_postgres = java_index.restore_from_postgres |
73 index.force_restore_from_postgres = java_index.force_restore_from_postgres | 74 index.force_restore_from_postgres = java_index.force_restore_from_postgres |
74 index.check = java_index.check | 75 index.check = java_index.check |
76 | |
77 function index.not_in_transaction() end | |
78 | |
79 function index.check_in_transaction() | |
80 if not index.is_in_transaction() then | |
81 index.not_in_transaction() | |
82 end | |
83 end | |
84 | |
85 function index.delete_all() | |
86 index.check_in_transaction() | |
87 java_index.delete_all() | |
88 end | |
89 | |
90 function index.delete(query) | |
91 index.check_in_transaction() | |
92 java_index.delete(query) | |
93 end | |
94 | |
95 function index.save(doc) | |
96 index.check_in_transaction() | |
97 java_index.save(doc) | |
98 end | |
75 | 99 |
76 function index.search( query, from, to, options ) | 100 function index.search( query, from, to, options ) |
77 from or error "missing 'from' parameter" | 101 from or error "missing 'from' parameter" |
78 to or error "missing 'to' parameter" | 102 to or error "missing 'to' parameter" |
79 options = options or {} | 103 options = options or {} |