CPD Results

The following document contains the results of PMD's CPD 7.0.0.

Duplications

File Line
org/apache/maven/index/examples/indexing/RepositoryIndexer.java 141
org/apache/maven/index/examples/indexing/RepositoryIndexer.java 189
Query query = queryBuilder.build();

        LOGGER.debug(
                "Executing search query: {}; ctx id: {}; idx dir: {}",
                query,
                indexingContext.getId(),
                indexingContext.getIndexDirectory());

        final FlatSearchResponse response = getIndexer().searchFlat(new FlatSearchRequest(query, indexingContext));

        LOGGER.info("Hit count: {}", response.getReturnedHitsCount());

        final Set<ArtifactInfo> results = response.getResults();
        if (LOGGER.isDebugEnabled()) {
            for (final ArtifactInfo result : results) {
                LOGGER.debug("Found artifact: {}", result.toString());
            }
        }

        return results;
    }

    public Set<ArtifactInfo> search(final String queryText) throws ParseException, IOException {