aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaria Odea B. Ching <oching@apache.org>2008-09-04 11:24:02 +0000
committerMaria Odea B. Ching <oching@apache.org>2008-09-04 11:24:02 +0000
commit14abf5f87e12e38a8ae58f9323bd76d043abed52 (patch)
treee4b0630f2ca2acfaa140648032ccf4f18ef4d671
parent24f7d688a611d3f437584988c98915c8f3b298ed (diff)
downloadarchiva-14abf5f87e12e38a8ae58f9323bd76d043abed52.tar.gz
archiva-14abf5f87e12e38a8ae58f9323bd76d043abed52.zip
merged -r691966 (MRM-934: added version in the key of the search result hit) from branch
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@691968 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/SearchResults.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/SearchResults.java b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/SearchResults.java
index c82097467..4f0a420a8 100644
--- a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/SearchResults.java
+++ b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/SearchResults.java
@@ -74,7 +74,7 @@ public class SearchResults
private void addBytecodeHit( BytecodeRecord bytecode )
{
String key = toKey( bytecode.getArtifact() );
-
+
SearchResultHit hit = (SearchResultHit) this.hits.get( key );
if ( hit == null )
@@ -95,7 +95,8 @@ public class SearchResults
key.append( StringUtils.defaultString( artifact.getModel().getRepositoryId() ) ).append( ":" );
key.append( StringUtils.defaultString( artifact.getGroupId() ) ).append( ":" );
- key.append( StringUtils.defaultString( artifact.getArtifactId() ) );
+ key.append( StringUtils.defaultString( artifact.getArtifactId() ) ).append( ":" );
+ key.append( StringUtils.defaultString( artifact.getVersion() ) );
return key.toString();
}