@ParametersAreNonnullByDefault public class ESSearchResult extends AbstractSearchResult
Constructor and Description |
---|
ESSearchResult(com.google.common.base.Function<String,ConfluenceUser> userLookup,
Map<String,Object> sourceDoc) |
Modifier and Type | Method and Description |
---|---|
String |
getFieldValue(String fieldName)
Return a string value of a field of a given document, if the field has multiple values then return last value,
if there is no such field then return null.
|
Set<String> |
getFieldValues(String fieldName)
Return set of string values of a field of a given document, if the field has single value then return
singleton set of that value, if there is no such field then return empty set.
|
boolean |
isFieldRequested(String fieldName)
Deprecated.
|
getContent, getContentVersion, getCreationDate, getCreator, getCreatorUser, getDateResult, getDisplayTitle, getExtraFields, getField, getHandle, getIntegerResult, getLabels, getLastModificationDate, getLastModifier, getLastModifierUser, getLastUpdateDescription, getOwnerTitle, getOwnerType, getPersonalLabels, getSpaceKey, getSpaceName, getStringResult, getType, getUrlPath, getUserResult, hasLabels, isHomePage, toString
public ESSearchResult(com.google.common.base.Function<String,ConfluenceUser> userLookup, Map<String,Object> sourceDoc)
public String getFieldValue(String fieldName)
AbstractSearchResult
getFieldValue
in class AbstractSearchResult
public Set<String> getFieldValues(String fieldName)
AbstractSearchResult
getFieldValues
in class AbstractSearchResult
@Deprecated public boolean isFieldRequested(String fieldName)
Copyright © 2003–2015 Atlassian. All rights reserved.