Mercurial Hosting > luan
comparison src/luan/modules/lucene/SupplementingConfig.java @ 1685:46cf5137cb6b
misc fixes
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 08 Jun 2022 20:13:54 -0600 |
parents | c922446f53aa |
children | c62324841dfb |
comparison
equal
deleted
inserted
replaced
1684:cfbecf7af56f | 1685:46cf5137cb6b |
---|---|
17 import luan.LuanException; | 17 import luan.LuanException; |
18 import luan.LuanRuntimeException; | 18 import luan.LuanRuntimeException; |
19 | 19 |
20 | 20 |
21 final class SupplementingConfig extends MultiFieldParserConfig { | 21 final class SupplementingConfig extends MultiFieldParserConfig { |
22 private final Luan luan; | 22 private final Luan luan = new Luan(); |
23 private final LuanFunction supplementer; | 23 private final LuanFunction supplementer; |
24 | 24 |
25 SupplementingConfig(Version luceneVersion,MultiFieldParser mfp,Luan luan,LuanFunction supplementer) throws LuanException { | 25 SupplementingConfig(Version luceneVersion,MultiFieldParser mfp,LuanFunction supplementer) throws LuanException { |
26 super(luceneVersion,mfp); | 26 super(luceneVersion,mfp); |
27 this.luan = new Luan(luan); | |
28 LuanMutable.makeImmutable(supplementer); | 27 LuanMutable.makeImmutable(supplementer); |
29 this.supplementer = supplementer; | 28 this.supplementer = supplementer; |
30 } | 29 } |
31 | 30 |
32 @Override public IndexWriterConfig newLuceneConfig() { | 31 @Override public IndexWriterConfig newLuceneConfig() { |