Update of /cvsroot/nutch/nutch/src/java/net/nutch/searcher
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17700/src/java/net/nutch/searcher

Modified Files:
        Summarizer.java 
Log Message:
Make summary length configurable.

Index: Summarizer.java
===================================================================
RCS file: /cvsroot/nutch/nutch/src/java/net/nutch/searcher/Summarizer.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Summarizer.java     15 Jun 2004 15:23:46 -0000      1.6
--- Summarizer.java     1 Nov 2004 20:45:36 -0000       1.7
***************
*** 11,14 ****
--- 11,15 ----
  import org.apache.lucene.analysis.TokenStream;
  
+ import net.nutch.util.NutchConf;
  import net.nutch.searcher.Summary.*;
  import net.nutch.analysis.NutchDocumentAnalyzer;
***************
*** 18,25 ****
  
    /** The number of context terms to display preceding and following matches.*/
!   private static final int SUM_CONTEXT = 5;
  
    /** The total number of terms to display in a summary.*/
!   private static final int SUM_LENGTH = 20;
  
    /** Converts text to tokens. */
--- 19,28 ----
  
    /** The number of context terms to display preceding and following matches.*/
!   private static final int SUM_CONTEXT =
!     NutchConf.getInt("searcher.summary.context", 5);
  
    /** The total number of terms to display in a summary.*/
!   private static final int SUM_LENGTH = 
!     NutchConf.getInt("searcher.summary.length", 20);
  
    /** Converts text to tokens. */



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Nutch-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-cvs

Reply via email to