|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.pangaea.metadataportal.search.SearchResultItem
public class SearchResultItem
This class holds one search result item.
| Field Summary | |
|---|---|
protected Config |
config
|
| Constructor Summary | |
|---|---|
protected |
SearchResultItem(Config config,
float score,
org.apache.lucene.document.Document doc)
Internal use only! |
| Method Summary | |
|---|---|
Object[] |
getField(String fieldName)
Returns the values of the supplied field name. |
Map<String,Object[]> |
getFields()
Returns a mapping of all field names to values. |
String |
getIdentifier()
Returns the identifier of the search result in the index. |
float |
getScore()
Gets score of item ( 0.0<score<=1.0). |
String |
getXml()
Returns the XML source code as String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Config config
| Constructor Detail |
|---|
protected SearchResultItem(Config config,
float score,
org.apache.lucene.document.Document doc)
| Method Detail |
|---|
public float getScore()
0.0<score<=1.0).
public String getXml()
StringReader.
public String getIdentifier()
public Object[] getField(String fieldName)
fieldName - name of field
String, Double, or Date values depending on the data type
(FieldConfig.DataType) in field configuration. Returns null
if the document does not contain a value for this field.
IllegalFieldConfigException - if fieldName is not a stored fieldpublic Map<String,Object[]> getFields()
Map mapping field names to
arrays of String, Double, or Date values depending on the data type
(FieldConfig.DataType) in field configuration
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||