public class LuceneSearchResult extends AbstractSearchResult
Constructor and Description |
---|
LuceneSearchResult(org.apache.lucene.document.Document document)
Deprecated.
|
LuceneSearchResult(org.apache.lucene.document.Document document,
com.google.common.base.Function<String,ConfluenceUser> userLookup)
Constructor to create a search result directly from a Lucene document
|
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 LuceneSearchResult(org.apache.lucene.document.Document document, com.google.common.base.Function<String,ConfluenceUser> userLookup)
@Deprecated public LuceneSearchResult(org.apache.lucene.document.Document document)
LuceneSearchResult(org.apache.lucene.document.Document, com.google.common.base.Function)
@Deprecated public boolean isFieldRequested(String fieldName)
public String getFieldValue(String fieldName)
AbstractSearchResult
getFieldValue
in class AbstractSearchResult
public Set<String> getFieldValues(String fieldName)
AbstractSearchResult
getFieldValues
in class AbstractSearchResult
Copyright © 2003–2016 Atlassian. All rights reserved.