changeset 1541:dc23c96f5021

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 13 Sep 2020 15:50:52 -0600
parents 79f67662d3e7
children d4407e8de707
files src/luan/modules/lucene/Lucene.luan src/luan/modules/lucene/LuceneIndex.java
diffstat 2 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/lucene/Lucene.luan	Sun Sep 13 15:32:51 2020 -0600
+++ b/src/luan/modules/lucene/Lucene.luan	Sun Sep 13 15:50:52 2020 -0600
@@ -70,7 +70,6 @@
 	index.is_in_transaction = java_index.is_in_transaction
 	index.run_in_transaction = java_index.run_in_transaction
 	index.ensure_open = java_index.ensure_open
-	--index.next_id = java_index.nextId
 	index.highlighter = java_index.highlighter
 	index.count_tokens = java_index.count_tokens
 	--index.close = java_index.close
--- a/src/luan/modules/lucene/LuceneIndex.java	Sun Sep 13 15:32:51 2020 -0600
+++ b/src/luan/modules/lucene/LuceneIndex.java	Sun Sep 13 15:50:52 2020 -0600
@@ -119,7 +119,6 @@
 	}
 
 	private static final Version luceneVersion = Version.LUCENE_4_9;
-//	private static final String FLD_NEXT_ID = "nextId";
 	public static final StringFieldParser STRING_FIELD_PARSER = new StringFieldParser(new KeywordAnalyzer());
 	public static final StringFieldParser LOWERCASE_FIELD_PARSER = new StringFieldParser(new LowercaseAnalyzer(luceneVersion));
 	public static final StringFieldParser ENGLISH_FIELD_PARSER = new StringFieldParser(new EnglishAnalyzer(luceneVersion));
@@ -367,10 +366,6 @@
 	private long id;
 
 	private void initId() throws IOException {
-//		TopDocs td = searcher.search(new TermQuery(new Term("type","next_id")),1);
-		writer.deleteDocuments(new TermQuery(new Term("type","next_id")));
-		writer.commit();
-
 		TopDocs td = searcher.search(new MatchAllDocsQuery(),1,new Sort(ID_DESC_SORT));
 		switch(td.scoreDocs.length) {
 		case 0: