|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.search.v2.lucene.AbstractLuceneSearchResult
com.atlassian.confluence.search.v2.lucene.LuceneSearchResult
public class LuceneSearchResult
Constructor Summary | |
---|---|
LuceneSearchResult(org.apache.lucene.document.Document document)
Constructor to create a search result directly from a Lucene hit |
|
LuceneSearchResult(Map<String,String> results)
Helper constructor for use in tests. |
Method Summary | |
---|---|
Map<String,String> |
getExtraFields()
If the retrieved documents contain additional fields that cannot be directly accessed by this interface then they can be retrieved via this method. |
String |
getField(String fieldName)
Returns the contents of the field as a string. |
com.atlassian.bonnie.Handle |
getHandle()
Retrieves the handle that can then be used by the AnyTypeDao to retrieve the database object referenced by this search result. |
boolean |
hasLabels()
|
boolean |
isFieldRequested(String fieldName)
check to see if this SearchFieldName has been requested during the search, if this method returns false then getField will throw a FieldNotRequestedException |
String |
toString()
|
Methods inherited from class com.atlassian.confluence.search.v2.lucene.AbstractLuceneSearchResult |
---|
getContent, getContentVersion, getCreationDate, getCreator, getDateResult, getDisplayTitle, getIntegerResult, getLabels, getLastModificationDate, getLastModifier, getLastUpdateDescription, getOwnerTitle, getOwnerType, getPersonalLabels, getSpaceKey, getSpaceName, getStringResult, getType, getUrlPath, hasLabels, isHomePage, mapExtraFields, populatePersonalLabels |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LuceneSearchResult(org.apache.lucene.document.Document document) throws IOException
hit
- the Lucene hit behind this result
IOException
- if something goes wrong getting data from the hitpublic LuceneSearchResult(Map<String,String> results)
results
- the already-converted map of resultsMethod Detail |
---|
public boolean hasLabels()
public Map<String,String> getExtraFields()
SearchResult
The field names are abstracted from the underlying search implementation and will be centrally defined. Their values are not yet documented.
public com.atlassian.bonnie.Handle getHandle()
BaseSearchResult
AnyTypeDao.findByHandle(com.atlassian.bonnie.Handle)
public String getField(String fieldName)
BaseSearchResult
public String toString()
toString
in class Object
public boolean isFieldRequested(String fieldName)
BaseSearchResult
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |