Package org.apache.maven.index

Examples of org.apache.maven.index.UniqueArtifactFilterPostprocessor.addField()


        NexusIndexer indexer = prepare();

        Query q = indexer.constructQuery( MAVEN.GROUP_ID, "commons", SearchType.SCORED );

        UniqueArtifactFilterPostprocessor filter = new UniqueArtifactFilterPostprocessor();
        filter.addField( MAVEN.GROUP_ID );
        filter.addField( MAVEN.ARTIFACT_ID );

        IteratorSearchRequest request = new IteratorSearchRequest( q, filter );

        IteratorSearchResponse response = indexer.searchIterator( request );
View Full Code Here


        Query q = indexer.constructQuery( MAVEN.GROUP_ID, "commons", SearchType.SCORED );

        UniqueArtifactFilterPostprocessor filter = new UniqueArtifactFilterPostprocessor();
        filter.addField( MAVEN.GROUP_ID );
        filter.addField( MAVEN.ARTIFACT_ID );

        IteratorSearchRequest request = new IteratorSearchRequest( q, filter );

        IteratorSearchResponse response = indexer.searchIterator( request );
View Full Code Here

      for (ArtifactInfoFilter filter : filters) {
        if (filter instanceof UniqueArtifactFilterPostprocessor) {
          UniqueArtifactFilterPostprocessor uFilter = (UniqueArtifactFilterPostprocessor) filter;

          if (terms.containsKey(MavenCoordinatesSearcher.TERM_VERSION)) {
            uFilter.addField(MAVEN.VERSION);
          }
          if (terms.containsKey(MavenCoordinatesSearcher.TERM_PACKAGING)) {
            uFilter.addField(MAVEN.PACKAGING);
          }
          if (terms.containsKey(MavenCoordinatesSearcher.TERM_CLASSIFIER)) {
View Full Code Here

          if (terms.containsKey(MavenCoordinatesSearcher.TERM_VERSION)) {
            uFilter.addField(MAVEN.VERSION);
          }
          if (terms.containsKey(MavenCoordinatesSearcher.TERM_PACKAGING)) {
            uFilter.addField(MAVEN.PACKAGING);
          }
          if (terms.containsKey(MavenCoordinatesSearcher.TERM_CLASSIFIER)) {
            uFilter.addField(MAVEN.CLASSIFIER);
          }
View Full Code Here

          }
          if (terms.containsKey(MavenCoordinatesSearcher.TERM_PACKAGING)) {
            uFilter.addField(MAVEN.PACKAGING);
          }
          if (terms.containsKey(MavenCoordinatesSearcher.TERM_CLASSIFIER)) {
            uFilter.addField(MAVEN.CLASSIFIER);
          }

          // in GAV search, we _always_ expand repository
          uFilter.addField(MAVEN.REPOSITORY_ID);
View Full Code Here

          if (terms.containsKey(MavenCoordinatesSearcher.TERM_CLASSIFIER)) {
            uFilter.addField(MAVEN.CLASSIFIER);
          }

          // in GAV search, we _always_ expand repository
          uFilter.addField(MAVEN.REPOSITORY_ID);

          break;
        }
      }
    }
View Full Code Here

          // 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);
            }
View Full Code Here

          // 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)) {
View Full Code Here

            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)) {
View Full Code Here

            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);
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.