lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject cvs commit: jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant DocumentHandler.java HtmlDocument.java IndexTask.java
Date Fri, 23 Jan 2004 17:40:13 GMT
ehatcher    2004/01/23 09:40:13

  Modified:    contributions/ant/src/main/org/apache/lucene/ant
                        DocumentHandler.java HtmlDocument.java
                        IndexTask.java
  Log:
  more ant touchups
  
  Revision  Changes    Path
  1.3       +1 -2      jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/DocumentHandler.java
  
  Index: DocumentHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/DocumentHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DocumentHandler.java	19 Jan 2004 14:58:33 -0000	1.2
  +++ DocumentHandler.java	23 Jan 2004 17:40:13 -0000	1.3
  @@ -17,9 +17,8 @@
        *
        *@param  file  Description of Parameter
        *@return       The document value
  -     *@throws DocumentHandlerException
        */
  -    public Document getDocument(File file)
  +    Document getDocument(File file)
               throws DocumentHandlerException;
   }
   
  
  
  
  1.3       +1 -2      jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/HtmlDocument.java
  
  Index: HtmlDocument.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/HtmlDocument.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HtmlDocument.java	19 Jan 2004 14:58:33 -0000	1.2
  +++ HtmlDocument.java	23 Jan 2004 17:40:13 -0000	1.3
  @@ -23,7 +23,6 @@
    *  from {@link java.io.File} or {@link java.io.InputStream}.
    *
    *@author     Erik Hatcher
  - *@created    October 27, 2001
    */
   public class HtmlDocument {
       private Element rawDoc;
  @@ -142,7 +141,7 @@
        *@param  args           Command line arguments
        *@exception  Exception  Description of Exception
        */
  -    private static void main(String args[]) throws Exception {
  +    public static void main(String args[]) throws Exception {
   //         HtmlDocument doc = new HtmlDocument(new File(args[0]));
   //         System.out.println("Title = " + doc.getTitle());
   //         System.out.println("Body  = " + doc.getBody());
  
  
  
  1.4       +1 -1      jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.java
  
  Index: IndexTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- IndexTask.java	19 Jan 2004 14:58:33 -0000	1.3
  +++ IndexTask.java	23 Jan 2004 17:40:13 -0000	1.4
  @@ -294,7 +294,7 @@
                   if (doc == null) {
                     totalIgnored++;
                   } else {
  -                  // Add the path of the file as a field named "path".  Use a Text field,
so
  +                  // Add the path of the file as a field named "path".  Use a Keyword field,
so
                     // that the index stores the path, and so that the path is searchable
                     doc.add(Field.Keyword("path", file.getPath()));
   
  
  
  

---------------------------------------------------------------------
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