}
// add the product references
for (Iterator<Reference> i = product.getProductReferences().iterator(); i
.hasNext();) {
Reference r = i.next();
doc.add(new Field("reference_orig", r.getOrigReference(),
Field.Store.YES, Field.Index.NO));
doc
.add(new Field("reference_data_store", r
.getDataStoreReference(), Field.Store.YES,
Field.Index.NO));
doc.add(new Field("reference_fileSize", String.valueOf(r
.getFileSize()), Field.Store.YES, Field.Index.NO));
doc.add(new Field("reference_mimeType", r.getMimeType() != null ? r
.getMimeType().getName() : "", Field.Store.YES,
Field.Index.UN_TOKENIZED));
}
// add special field for all products