com.atlassian.confluence.search.v2.lucene
Interface WrappedHit
- All Known Implementing Classes:
- WrappedHitImpl
public interface WrappedHit
Allows us to interface out a Lucene Hit so that we can test the LuceneResultFilter properly. (Hit is final, and
can only be instantiated if you have a Hits collection, a Searcher, and God knows what else). All the methods on
this interface (except getRawHit()
are copied from the Hit class.
getDocument
org.apache.lucene.document.Document getDocument()
throws org.apache.lucene.index.CorruptIndexException,
IOException
- Throws:
org.apache.lucene.index.CorruptIndexException
IOException
- See Also:
Hit.getDocument()
getScore
float getScore()
throws IOException
- Throws:
IOException
- See Also:
Hit.getScore()
getId
int getId()
throws IOException
- Throws:
IOException
- See Also:
Hit.getId()
getBoost
float getBoost()
throws org.apache.lucene.index.CorruptIndexException,
IOException
- Throws:
org.apache.lucene.index.CorruptIndexException
IOException
- See Also:
Hit.getBoost()
get
String get(String s)
throws org.apache.lucene.index.CorruptIndexException,
IOException
- Throws:
org.apache.lucene.index.CorruptIndexException
IOException
- See Also:
Hit.get(java.lang.String)
getRawHit
org.apache.lucene.search.Hit getRawHit()
- Get the Lucene hit object, unwrapped.
- Returns:
- the Lucene hit object.