// filters should affect only Keyword and GAVSearch!
// TODO: maybe we should left this to the given Searcher implementation to handle (like kw and gav
// searcer is)
// Downside would be that REST query params would be too far away from incoming call (too spread)
if (searcher instanceof KeywordSearcher || searcher instanceof MavenCoordinatesSearcher) {
UniqueArtifactFilterPostprocessor filter = new UniqueArtifactFilterPostprocessor();
filter.addField(MAVEN.GROUP_ID);
filter.addField(MAVEN.ARTIFACT_ID);
if (Boolean.TRUE.equals(expandVersion)) {
filter.addField(MAVEN.VERSION);
}
if (Boolean.TRUE.equals(expandPackaging)) {
filter.addField(MAVEN.PACKAGING);
}
if (Boolean.TRUE.equals(expandClassifier)) {
filter.addField(MAVEN.CLASSIFIER);
}
filters.add(filter);
uniqueRGA = true;