if (cTerm != null) {
if (Field.NOT_PRESENT.equalsIgnoreCase(cTerm)) {
// bq.add( createQuery( MAVEN.CLASSIFIER, Field.NOT_PRESENT, SearchType.KEYWORD ),
// BooleanClause.Occur.MUST_NOT );
// This above should work too! -- TODO: fixit!
filters.add(0, new ArtifactInfoFilter()
{
public boolean accepts(IndexingContext ctx, ArtifactInfo ai) {
return Strings.isNullOrEmpty(ai.classifier);
}
});