org.apache.nutch.searcher
Class Summary

java.lang.Object
  extended byorg.apache.nutch.searcher.Summary

public class Summary
extends Object

A document summary dynamically generated to match a query.


Nested Class Summary
static class Summary.Ellipsis
          An ellipsis fragment within a summary.
static class Summary.Fragment
          A fragment of text within a summary.
static class Summary.Highlight
          A highlighted fragment of text within a summary.
 
Constructor Summary
Summary()
          Constructs an empty Summary.
 
Method Summary
 void add(Summary.Fragment fragment)
          Adds a fragment to a summary.
 Summary.Fragment[] getFragments()
          Returns an array of all of this summary's fragments.
 String toString()
          Returns an HTML representation of this fragment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Summary

public Summary()
Constructs an empty Summary.

Method Detail

add

public void add(Summary.Fragment fragment)
Adds a fragment to a summary.


getFragments

public Summary.Fragment[] getFragments()
Returns an array of all of this summary's fragments.


toString

public String toString()
Returns an HTML representation of this fragment.



Copyright © 2006 The Apache Software Foundation