Mercurial Hosting > luan
comparison src/luan/modules/lucene/LuceneIndex.java @ 796:6b8ea0a9b7c9
remove LuanMeta
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 05 Sep 2016 19:52:49 -0600 |
parents | 1a68fc55a80c |
children | 38a42f437fd2 |
comparison
equal
deleted
inserted
replaced
795:dd36eae6aa04 | 796:6b8ea0a9b7c9 |
---|---|
69 import luan.Luan; | 69 import luan.Luan; |
70 import luan.LuanState; | 70 import luan.LuanState; |
71 import luan.LuanTable; | 71 import luan.LuanTable; |
72 import luan.LuanFunction; | 72 import luan.LuanFunction; |
73 import luan.LuanException; | 73 import luan.LuanException; |
74 import luan.LuanMeta; | 74 //import luan.LuanMeta; |
75 import luan.LuanRuntimeException; | 75 import luan.LuanRuntimeException; |
76 import org.slf4j.Logger; | 76 import org.slf4j.Logger; |
77 import org.slf4j.LoggerFactory; | 77 import org.slf4j.LoggerFactory; |
78 | 78 |
79 | 79 |
454 close(searcher); | 454 close(searcher); |
455 } | 455 } |
456 } | 456 } |
457 | 457 |
458 | 458 |
459 | 459 /* |
460 public final LuanMeta indexedFieldsMeta = new LuanMeta() { | 460 public final LuanMeta indexedFieldsMeta = new LuanMeta() { |
461 | 461 |
462 @Override public boolean canNewindex() { | 462 @Override public boolean canNewindex() { |
463 return true; | 463 return true; |
464 } | 464 } |
488 @Override protected String type(LuanTable tbl) { | 488 @Override protected String type(LuanTable tbl) { |
489 return "lucene-indexed-fields"; | 489 return "lucene-indexed-fields"; |
490 } | 490 } |
491 | 491 |
492 }; | 492 }; |
493 | 493 */ |
494 public FieldParser getIndexedFieldParser(String field) { | |
495 return mfp.fields.get(field); | |
496 } | |
497 | |
498 public void setIndexedFieldParser(String field,FieldParser fp) { | |
499 if( fp==null ) { // delete | |
500 mfp.fields.remove(field); | |
501 return; | |
502 } | |
503 mfp.fields.put( field, fp ); | |
504 } | |
494 | 505 |
495 | 506 |
496 private IndexableField newField(String name,Object value,Field.Store store,Set<String> indexed) | 507 private IndexableField newField(String name,Object value,Field.Store store,Set<String> indexed) |
497 throws LuanException | 508 throws LuanException |
498 { | 509 { |