public interface

WrappedHit

com.atlassian.confluence.search.v2.lucene.WrappedHit
Known Indirect Subclasses

Class Overview

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.

Summary

Public Methods
String get(String s)
float getBoost()
Document getDocument()
int getId()
Hit getRawHit()
Get the Lucene hit object, unwrapped.
float getScore()

Public Methods

public String get (String s)

public float getBoost ()

public Document getDocument ()

public int getId ()

Throws
IOException
See Also

public Hit getRawHit ()

Get the Lucene hit object, unwrapped.

Returns
  • the Lucene hit object.

public float getScore ()

Throws
IOException
See Also