org.apache.cocoon.components.search
Class LuceneCocoonPager.HitWrapper
java.lang.Object
|
+--org.apache.cocoon.components.search.LuceneCocoonPager.HitWrapper
- Enclosing class:
- LuceneCocoonPager
- public static class LuceneCocoonPager.HitWrapper
- extends java.lang.Object
A helper class encapsulating found document, and its score
- Version:
- CVS $Id: LuceneCocoonPager.java,v 1.4 2002/02/22 07:00:12 cziegeler Exp $
- Author:
- Bernhard Huber
Constructor Summary |
LuceneCocoonPager.HitWrapper(float score,
org.apache.lucene.document.Document document)
Constructor for the HitWrapper object |
Method Summary |
org.apache.lucene.document.Document |
getDocument()
Gets the document attribute of the HitWrapper object |
java.lang.String |
getField(java.lang.String field)
Gets the field attribute of the HitWrapper object |
float |
getScore()
Gets the score attribute of the HitWrapper object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneCocoonPager.HitWrapper
public LuceneCocoonPager.HitWrapper(float score,
org.apache.lucene.document.Document document)
- Constructor for the HitWrapper object
- Parameters:
score
- Description of Parameterdocument
- Description of Parameter- Since:
-
getDocument
public org.apache.lucene.document.Document getDocument()
- Gets the document attribute of the HitWrapper object
- Returns:
- The document value
- Since:
-
getScore
public float getScore()
- Gets the score attribute of the HitWrapper object
- Returns:
- The score value
- Since:
-
getField
public java.lang.String getField(java.lang.String field)
- Gets the field attribute of the HitWrapper object
- Parameters:
field
- Description of Parameter- Returns:
- The field value
- Since:
-
Copyright � 1999-2002 Apache Software Foundation. All Rights Reserved.