public class QuickSearchDocumentImpl extends Object implements QuickSearchDocument
Modifier and Type | Field and Description |
---|---|
static IndexedEntityIdField |
FIELD_ID |
static IndexedEntityTextField |
FIELD_KEY |
static IndexedEntityEnumField<QuickSearchDocumentFactory.Type> |
FIELD_TYPE |
SEARCH_FIELD
Constructor and Description |
---|
QuickSearchDocumentImpl(org.apache.lucene.document.Document doc) |
QuickSearchDocumentImpl(long id,
QuickSearchDocumentFactory.Type type,
String key,
Map<String,String> entity,
List<String> searchTokens) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.document.Document |
getDocument()
Override this to provide customised data storage for better rendering.
|
Map<String,String> |
getEntity() |
long |
getId() |
QuickSearchDocumentFactory.Type |
getType() |
public static final IndexedEntityIdField FIELD_ID
public static final IndexedEntityTextField FIELD_KEY
public static final IndexedEntityEnumField<QuickSearchDocumentFactory.Type> FIELD_TYPE
public QuickSearchDocumentImpl(long id, @NotNull QuickSearchDocumentFactory.Type type, @Nullable String key, @NotNull Map<String,String> entity, @NotNull List<String> searchTokens)
public QuickSearchDocumentImpl(@NotNull org.apache.lucene.document.Document doc)
@NotNull public org.apache.lucene.document.Document getDocument()
getDocument
in interface QuickSearchDocument
public long getId()
getId
in interface QuickSearchDocument
public QuickSearchDocumentFactory.Type getType()
getType
in interface QuickSearchDocument
public Map<String,String> getEntity()
getEntity
in interface QuickSearchDocument
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.