org.apache.cocoon.components.search
Class LuceneCocoonPager.HitWrapper

java.lang.Object
  extended by org.apache.cocoon.components.search.LuceneCocoonPager.HitWrapper
Enclosing class:
LuceneCocoonPager

public static class LuceneCocoonPager.HitWrapper
extends Object

A helper class encapsulating found document, and its score

Version:
CVS $Id: LuceneCocoonPager.HitWrapper.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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
 String getField(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
 

Constructor Detail

LuceneCocoonPager.HitWrapper

public LuceneCocoonPager.HitWrapper(float score,
                                    org.apache.lucene.document.Document document)
Constructor for the HitWrapper object

Parameters:
score - Description of Parameter
document - Description of Parameter
Method Detail

getDocument

public org.apache.lucene.document.Document getDocument()
Gets the document attribute of the HitWrapper object

Returns:
The document value

getScore

public float getScore()
Gets the score attribute of the HitWrapper object

Returns:
The score value

getField

public String getField(String field)
Gets the field attribute of the HitWrapper object

Parameters:
field - Description of Parameter
Returns:
The field value


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.