new Field( CLASS_FIELDNAME, instanceClass.getName(), Field.Store.YES, Field.Index.UN_TOKENIZED );
doc.add( classField );
idBridge.set( idKeywordName, id, doc, Field.Store.YES, Field.Index.UN_TOKENIZED, idBoost );
}
for ( int i = 0; i < keywordNames.size(); i++ ) {
XMember member = keywordGetters.get( i );
Object value = getMemberValue( instance, member );
keywordBridges.get( i ).set(
keywordNames.get( i ), value, doc, Field.Store.YES,
Field.Index.UN_TOKENIZED, getBoost( member )
);
}
for ( int i = 0; i < textNames.size(); i++ ) {
XMember member = textGetters.get( i );
Object value = getMemberValue( instance, member );
textBridges.get( i ).set(
textNames.get( i ), value, doc, Field.Store.YES,
Field.Index.TOKENIZED, getBoost( member )
);
}
for ( int i = 0; i < unstoredNames.size(); i++ ) {
XMember member = unstoredGetters.get( i );
Object value = getMemberValue( instance, member );
unstoredBridges.get( i ).set(
unstoredNames.get( i ), value, doc, Field.Store.NO,
Field.Index.TOKENIZED, getBoost( member )
);
}
for ( int i = 0; i < fieldNames.size(); i++ ) {
XMember member = fieldGetters.get( i );
Object value = getMemberValue( instance, member );
fieldBridges.get( i ).set(
fieldNames.get( i ), value, doc, fieldStore.get( i ),
fieldIndex.get( i ), getBoost( member )
);