com.atlassian.confluence.search.v2.lucene
Class WrappedHitImpl
java.lang.Object
com.atlassian.confluence.search.v2.lucene.WrappedHitImpl
- All Implemented Interfaces:
- WrappedHit
public class WrappedHitImpl
- extends Object
- implements WrappedHit
WrappedHitImpl
public WrappedHitImpl(org.apache.lucene.search.Hit hit)
getDocument
public org.apache.lucene.document.Document getDocument()
throws org.apache.lucene.index.CorruptIndexException,
IOException
- Specified by:
getDocument
in interface WrappedHit
- Throws:
org.apache.lucene.index.CorruptIndexException
IOException
- See Also:
Hit.getDocument()
getScore
public float getScore()
throws IOException
- Specified by:
getScore
in interface WrappedHit
- Throws:
IOException
- See Also:
Hit.getScore()
getId
public int getId()
throws IOException
- Specified by:
getId
in interface WrappedHit
- Throws:
IOException
- See Also:
Hit.getId()
getBoost
public float getBoost()
throws org.apache.lucene.index.CorruptIndexException,
IOException
- Specified by:
getBoost
in interface WrappedHit
- Throws:
org.apache.lucene.index.CorruptIndexException
IOException
- See Also:
Hit.getBoost()
get
public String get(String s)
throws org.apache.lucene.index.CorruptIndexException,
IOException
- Specified by:
get
in interface WrappedHit
- Throws:
org.apache.lucene.index.CorruptIndexException
IOException
- See Also:
Hit.get(java.lang.String)
getRawHit
public org.apache.lucene.search.Hit getRawHit()
- Description copied from interface:
WrappedHit
- Get the Lucene hit object, unwrapped.
- Specified by:
getRawHit
in interface WrappedHit
- Returns:
- the Lucene hit object.
toString
public String toString()
- Overrides:
toString
in class Object