public abstract static class EntityDocumentFactory.EntityDocumentBuilder<T,C extends EntityDocumentFactory.EntityDocumentBuilder<T,C>> extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.lucene.document.Document |
doc |
Modifier | Constructor and Description |
---|---|
protected |
EntityDocumentBuilder(T entity,
String indexName) |
Modifier and Type | Method and Description |
---|---|
C |
addAllExtractors(Collection<EntitySearchExtractor<T>> extractors) |
C |
addKeywordWithDefault(String name,
Long value,
String defaultValue) |
C |
addKeywordWithDefault(String name,
String value,
String defaultValue) |
C |
addSearchableField(String name,
Date date,
org.apache.lucene.document.Field.Store store) |
C |
addSearchableField(String name,
LocalDate localDate,
org.apache.lucene.document.Field.Store store) |
C |
addSearchableField(String name,
String value,
org.apache.lucene.document.Field.Store store) |
C |
addSortableField(String name,
Date value) |
C |
addSortableField(String name,
String value) |
C |
addTokenizedField(String name,
String value,
org.apache.lucene.document.Field.Store store) |
io.atlassian.fugue.Option<org.apache.lucene.document.Document> |
build() |
protected void |
fieldsAddedByExtractor(Set<String> fieldIds) |
protected abstract String |
getDocumentType() |
public C addAllExtractors(Collection<EntitySearchExtractor<T>> extractors)
public C addTokenizedField(String name, String value, org.apache.lucene.document.Field.Store store)
public C addSearchableField(String name, String value, org.apache.lucene.document.Field.Store store)
public C addSearchableField(String name, Date date, org.apache.lucene.document.Field.Store store)
public C addSearchableField(String name, LocalDate localDate, org.apache.lucene.document.Field.Store store)
public C addKeywordWithDefault(String name, String value, String defaultValue)
protected abstract String getDocumentType()
public io.atlassian.fugue.Option<org.apache.lucene.document.Document> build()
Copyright © 2002-2021 Atlassian. All Rights Reserved.