Permalink
Browse files

Removed some fields from the index, for file size sake

git-svn-id: file:///opt/svn/repositories/sonatype.org/nexus/tags/nexus-indexer-2.0.5-central@7749 2aa8b3fc-8ebb-4439-a84f-95066eaea8ab
  • Loading branch information...
1 parent 32bb6f7 commit 34733d4edd7983e75422132712395b3c542b399d dbradicich committed Jan 14, 2011
@@ -203,16 +203,6 @@ public void updateDocument( ArtifactInfo ai, Document doc )
doc.add( new Field( ArtifactInfo.VERSION, ai.version, Field.Store.NO, Field.Index.TOKENIZED ) );
- if ( ai.name != null )
- {
- doc.add( new Field( ArtifactInfo.NAME, ai.name, Field.Store.YES, Field.Index.NO ) );
- }
-
- if ( ai.description != null )
- {
- doc.add( new Field( ArtifactInfo.DESCRIPTION, ai.description, Field.Store.YES, Field.Index.NO ) );
- }
-
if ( ai.packaging != null )
{
doc.add( new Field( ArtifactInfo.PACKAGING, ai.packaging, Field.Store.NO, Field.Index.UN_TOKENIZED ) );
@@ -160,8 +160,6 @@ public void testUpdateArtifact()
ArtifactInfo ai = res1.iterator().next();
- assertEquals( "Maven Core Integration Test Plugin", ai.name );
-
long oldSize = ai.size;
ai.name = "bla bla bla";
@@ -186,8 +184,6 @@ public void testUpdateArtifact()
ArtifactInfo ai2 = res2.iterator().next();
assertEquals( oldSize + 100, ai2.size );
-
- assertEquals( "bla bla bla", ai2.name );
}
public void testUnpack()

0 comments on commit 34733d4

Please sign in to comment.