Mercurial Hosting > luan
comparison src/luan/modules/lucene/LuceneIndex.java @ 1129:3234a14bb1f8
minor lucene changes
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 04 Dec 2017 01:26:57 -0700 |
parents | 88b5b81cad4a |
children | cb422386f6b5 |
comparison
equal
deleted
inserted
replaced
1128:34dfed3b5cb0 | 1129:3234a14bb1f8 |
---|---|
302 } finally { | 302 } finally { |
303 snapshotDeletionPolicy.release(ic); | 303 snapshotDeletionPolicy.release(ic); |
304 } | 304 } |
305 } | 305 } |
306 */ | 306 */ |
307 public SnapshotDeletionPolicy snapshotDeletionPolicy() { | |
308 return snapshotDeletionPolicy; | |
309 } | |
310 | |
307 public Object snapshot(LuanState luan,LuanFunction fn) throws LuanException, IOException { | 311 public Object snapshot(LuanState luan,LuanFunction fn) throws LuanException, IOException { |
308 IndexCommit ic = snapshotDeletionPolicy.snapshot(); | 312 IndexCommit ic = snapshotDeletionPolicy.snapshot(); |
309 try { | 313 try { |
310 String dir = fileDir.toString(); | 314 String dir = fileDir.toString(); |
311 LuanTable fileNames = new LuanTable(new ArrayList(ic.getFileNames())); | 315 LuanTable fileNames = new LuanTable(new ArrayList(ic.getFileNames())); |