void (ArtifactInfo ai, Document doc) { if (ai.getPackaging() != null) { doc.add(FLD_PACKAGING_NOT_INDEXED.toField(ai.getPackaging())); } if ("maven-archetype".equals(ai.getPackaging()) && ai.getDescription() != null) { doc.add(FLD_DESCRIPTION_NOT_INDEXED.toField(ai.getDescription())); } }