com.atlassian.confluence.search.v2.lucene
Interface WrappedHit

All Known Implementing Classes:
WrappedHitImpl

Deprecated. since 5.2. Hit abstraction no longer exists in lucene 4.2.x.

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)
          Deprecated.  
 float getBoost()
          Deprecated.  
 org.apache.lucene.document.Document getDocument()
          Deprecated.  
 int getId()
          Deprecated.  
 org.apache.lucene.search.ScoreDoc getRawHit()
          Deprecated.  
 float getScore()
          Deprecated.  
 

Method Detail

getDocument

org.apache.lucene.document.Document getDocument()
                                                throws org.apache.lucene.index.CorruptIndexException,
                                                       java.io.IOException
Deprecated. 
Throws:
org.apache.lucene.index.CorruptIndexException
java.io.IOException

getScore

float getScore()
               throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

getId

int getId()
          throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

getBoost

float getBoost()
               throws org.apache.lucene.index.CorruptIndexException,
                      java.io.IOException
Deprecated. 
Throws:
org.apache.lucene.index.CorruptIndexException
java.io.IOException

get

java.lang.String get(java.lang.String s)
                     throws org.apache.lucene.index.CorruptIndexException,
                            java.io.IOException
Deprecated. 
Throws:
org.apache.lucene.index.CorruptIndexException
java.io.IOException

getRawHit

org.apache.lucene.search.ScoreDoc getRawHit()
Deprecated. 


Copyright © 2003-2014 Atlassian. All Rights Reserved.