最近需要些一個可配置的索引構建程序
引用
Nested Class Summary
static class Field
Specifies whether and how a field should be indexed
static class Field
Specifies whether and how a field should be stored
static class Field
Specifies whether and how a field should have term vectors
lucene api中稱之為Nested Class
引用
Field Summary
static Field
Index the tokens produced by running the field
static Field
Expert: Index the tokens produced by running the field
static Field
Do not index the field value
static Field
Deprecated
static Field
Index the field
static Field
Expert: Index the field
static Field
Deprecated
static Field
Deprecated
一個棘手的問題
最後采用了如下方法
//運行時調用Filed
Java代碼
Class<?> cls = org
java
Object indexDeclareFieldType = indexDeclareField
org
//運行時調用Field
Class<?> clsStore = org
java
Object indexStoreDeclareField = indexDeclareField
org
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26078.html