public interface Indexer extends Closeable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Indexer.Searcher |
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOGGER |
| Modifier and Type | Method and Description |
|---|---|
<T extends Entity> |
add(String indexName,
T obj) |
boolean |
bulkAdd(String indexName,
Pipeline.Type nerType,
List<NamedEntity> namedEntities,
Document parent) |
<T extends Entity> |
bulkUpdate(String indexName,
List<? extends Entity> entities) |
void |
close() |
boolean |
createIndex(String indexName) |
boolean |
deleteAll(String indexName) |
<T extends Entity> |
get(String indexName,
String id) |
<T extends Entity> |
get(String indexName,
String id,
String root) |
Indexer.Searcher |
search(String indexName,
Class<? extends Entity> entityClass) |
boolean |
tag(Project prj,
List<String> documentIds,
Tag... tags) |
boolean |
tag(Project prj,
String documentId,
String rootDocument,
Tag... tags) |
boolean |
untag(Project prj,
List<String> documentIds,
Tag... tags) |
boolean |
untag(Project prj,
String documentId,
String rootDocument,
Tag... tags) |
<T extends Entity> |
update(String indexName,
T obj) |
Indexer.Searcher search(String indexName, Class<? extends Entity> entityClass)
boolean createIndex(String indexName) throws IOException
IOExceptionboolean deleteAll(String indexName) throws IOException
IOExceptionvoid close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionboolean bulkAdd(String indexName, Pipeline.Type nerType, List<NamedEntity> namedEntities, Document parent) throws IOException
IOException<T extends Entity> boolean bulkUpdate(String indexName, List<? extends Entity> entities) throws IOException
IOException<T extends Entity> void add(String indexName, T obj) throws IOException
IOException<T extends Entity> void update(String indexName, T obj) throws IOException
IOExceptionboolean tag(Project prj, String documentId, String rootDocument, Tag... tags) throws IOException
IOExceptionboolean untag(Project prj, String documentId, String rootDocument, Tag... tags) throws IOException
IOExceptionboolean tag(Project prj, List<String> documentIds, Tag... tags) throws IOException
IOExceptionboolean untag(Project prj, List<String> documentIds, Tag... tags) throws IOException
IOExceptionCopyright © 2020 ICIJ. All rights reserved.