lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject cvs commit: jakarta-lucene/src/test/org/apache/lucene/index DocHelper.java
Date Sun, 10 Oct 2004 16:07:19 GMT
dnaber      2004/10/10 09:07:19

  Modified:    src/test/org/apache/lucene/index DocHelper.java
  Log:
  remove code that was commented out, fix whitespace, no functional change
  
  Revision  Changes    Path
  1.4       +5 -21     jakarta-lucene/src/test/org/apache/lucene/index/DocHelper.java
  
  Index: DocHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/index/DocHelper.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DocHelper.java	10 Oct 2004 16:05:36 -0000	1.3
  +++ DocHelper.java	10 Oct 2004 16:07:19 -0000	1.4
  @@ -57,13 +57,10 @@
     public static Field unStoredField2 = new Field(UNSTORED_FIELD_2_KEY, UNSTORED_2_FIELD_TEXT,
         Field.Store.NO, Field.Index.TOKENIZED, Field.TermVector.YES);
   
  -//  public static Set fieldNamesSet = null;
  -//  public static Set fieldValuesSet = null;
     public static Map nameValues = null;
     
     static
     {
  -    
       nameValues = new HashMap();
       nameValues.put(TEXT_FIELD_1_KEY, FIELD_1_TEXT);
       nameValues.put(TEXT_FIELD_2_KEY, FIELD_2_TEXT);
  @@ -85,6 +82,7 @@
       doc.add(unStoredField1);
       doc.add(unStoredField2);
     }                         
  +
     /**
      * Writes the document to the directory using a segment named "test"
      * @param dir
  @@ -92,9 +90,9 @@
      */ 
     public static void writeDoc(Directory dir, Document doc)
     {
  -    
       writeDoc(dir, "test", doc);
     }
  +
     /**
      * Writes the document to the directory in the given segment
      * @param dir
  @@ -107,6 +105,7 @@
       Similarity similarity = Similarity.getDefault();
       writeDoc(dir, analyzer, similarity, segment, doc);
     }
  +
     /**
      * Writes the document to the directory segment named "test" using the specified analyzer
and similarity
      * @param dir
  @@ -118,6 +117,7 @@
     {
       writeDoc(dir, analyzer, similarity, "test", doc);
     }
  +
     /**
      * Writes the document to the directory segment using the analyzer and the similarity
score
      * @param dir
  @@ -147,19 +147,3 @@
       return result;
     }
   }
  -/*
  -    fieldNamesSet = new HashSet();
  -    fieldNamesSet.add(TEXT_FIELD_1_KEY);
  -    fieldNamesSet.add(TEXT_FIELD_2_KEY);
  -    fieldNamesSet.add(KEYWORD_FIELD_KEY);
  -    fieldNamesSet.add(UNINDEXED_FIELD_KEY);
  -    fieldNamesSet.add(UNSTORED_FIELD_1_KEY);
  -    fieldNamesSet.add(UNSTORED_FIELD_2_KEY);
  -    fieldValuesSet = new HashSet();
  -    fieldValuesSet.add(FIELD_1_TEXT);
  -    fieldValuesSet.add(FIELD_2_TEXT);
  -    fieldValuesSet.add(KEYWORD_TEXT);
  -    fieldValuesSet.add(UNINDEXED_FIELD_TEXT);
  -    fieldValuesSet.add(UNSTORED_1_FIELD_TEXT);
  -    fieldValuesSet.add(UNSTORED_2_FIELD_TEXT);
  -*/
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message