|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.util.search.SearchHit
public class SearchHit
A class as a struct containing information about a search hit.
| Field Summary | |
|---|---|
org.apache.lucene.document.Document |
doc
|
String |
html
|
protected static ColorLookupTable |
m_clut
The ColorLookupTable used to supply colors for the score display. |
protected static String[] |
m_scoreColors
|
static int |
maxHits
Maximum number of hits to return. |
String |
path
|
static String |
PROPERTY_maxSearchHits
The identifier of the property containing the maximum number of displayed hits. |
static float |
resultOffset
An offset added to the score so that Lucene's result reaches 100 (1.0F) for reasonably-close searches. |
float |
score
|
| Constructor Summary | |
|---|---|
SearchHit(org.apache.lucene.document.Document doc,
float score)
Constructor with Lucene Document and score (match rating). |
|
| Method Summary | |
|---|---|
Color |
getColorForScore()
Return a Color from the ColorLookupTable based on this SearchHit's score. |
String |
getColorSpecForScore()
Return a color specification from the array based on this SearchHit's score. |
String |
getDateString()
Return a formatted date, provided an encoded String (as stored by the search engine). |
protected String |
getScoreRepresentation()
Returns a String representing the score. |
String |
getScoreText()
Returns the String used to display the score, including any markup. |
static SearchHit[] |
getSearchHits(org.apache.lucene.search.Hits hits)
Return an array of SearchHit objects, each representing a search hit. |
String |
getSystemId()
Returns the String used to display the document identifier, including any markup. |
String |
getSystemIdText()
Returns the String used to display the document identifier, including any markup. |
String |
getTitle()
Returns the title String for the hit document. |
String |
toString()
Return a String respresentation of this search result suitable for display in a list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_maxSearchHits
public static int maxHits
public static float resultOffset
public final String path
public float score
public String html
public org.apache.lucene.document.Document doc
protected static ColorLookupTable m_clut
protected static String[] m_scoreColors
| Constructor Detail |
|---|
public SearchHit(org.apache.lucene.document.Document doc,
float score)
| Method Detail |
|---|
public static SearchHit[] getSearchHits(org.apache.lucene.search.Hits hits)
throws IOException
IOExceptionpublic String getDateString()
public Color getColorForScore()
public String getColorSpecForScore()
protected String getScoreRepresentation()
public String getScoreText()
public String getSystemId()
public String getSystemIdText()
public String getTitle()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||