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.
Method Summary |
java.lang.String |
get(java.lang.String s)
|
float |
getBoost()
|
org.apache.lucene.document.Document |
getDocument()
|
int |
getId()
|
org.apache.lucene.search.Hit |
getRawHit()
Get the Lucene hit object, unwrapped. |
float |
getScore()
|
getDocument
org.apache.lucene.document.Document getDocument()
throws org.apache.lucene.index.CorruptIndexException,
java.io.IOException
- Throws:
org.apache.lucene.index.CorruptIndexException
java.io.IOException
- See Also:
Hit.getDocument()
getScore
float getScore()
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
Hit.getScore()
getId
int getId()
throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
Hit.getId()
getBoost
float getBoost()
throws org.apache.lucene.index.CorruptIndexException,
java.io.IOException
- Throws:
org.apache.lucene.index.CorruptIndexException
java.io.IOException
- See Also:
Hit.getBoost()
get
java.lang.String get(java.lang.String s)
throws org.apache.lucene.index.CorruptIndexException,
java.io.IOException
- Throws:
org.apache.lucene.index.CorruptIndexException
java.io.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.
Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.