|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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)
Deprecated. since 5.2. Use LuceneSearchResult(org.apache.lucene.document.Document, com.google.common.base.Function) |
|
LuceneSearchResult(org.apache.lucene.document.Document document,
com.google.common.base.Function<java.lang.String,ConfluenceUser> userLookup)
Constructor to create a search result directly from a Lucene hit |
|
LuceneSearchResult(java.util.Map<java.lang.String,java.lang.String> results)
Deprecated. since 5.2. Use LuceneSearchResult(java.util.Map, com.google.common.base.Function) |
|
LuceneSearchResult(java.util.Map<java.lang.String,java.lang.String> results,
com.google.common.base.Function<java.lang.String,ConfluenceUser> userLookup)
Helper constructor for use in tests. |
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.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. |
java.lang.String |
getField(java.lang.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(java.lang.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 |
java.lang.String |
toString()
|
Methods inherited from class com.atlassian.confluence.search.v2.lucene.AbstractLuceneSearchResult |
---|
getContent, getContentVersion, getCreationDate, getCreator, getCreatorUser, getDateResult, getDisplayTitle, getIntegerResult, getLabels, getLastModificationDate, getLastModifier, getLastModifierUser, getLastUpdateDescription, getOwnerTitle, getOwnerType, getPersonalLabels, getSpaceKey, getSpaceName, getStringResult, getType, getUrlPath, getUserResult, 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, com.google.common.base.Function<java.lang.String,ConfluenceUser> userLookup) throws java.io.IOException
document
- the Lucene hit behind this result
java.io.IOException
- if something goes wrong getting data from the hit@Deprecated public LuceneSearchResult(org.apache.lucene.document.Document document) throws java.io.IOException
LuceneSearchResult(org.apache.lucene.document.Document, com.google.common.base.Function)
java.io.IOException
public LuceneSearchResult(java.util.Map<java.lang.String,java.lang.String> results, com.google.common.base.Function<java.lang.String,ConfluenceUser> userLookup)
results
- the already-converted map of results@Deprecated public LuceneSearchResult(java.util.Map<java.lang.String,java.lang.String> results)
LuceneSearchResult(java.util.Map, com.google.common.base.Function)
Method Detail |
---|
public boolean hasLabels()
public java.util.Map<java.lang.String,java.lang.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
Because the database and index are not updated at the same time, it is possible for a deleted entity to still be represented in the search index. Do not assume that this handle will always refer to a live object.
AnyTypeDao.findByHandle(com.atlassian.bonnie.Handle)
public java.lang.String getField(java.lang.String fieldName)
BaseSearchResult
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isFieldRequested(java.lang.String fieldName)
BaseSearchResult
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |