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) |
<T extends Entity> |
bulkAdd(String indexName,
List<T> entities) |
boolean |
bulkAdd(String indexName,
Pipeline.Type nerType,
List<NamedEntity> namedEntities,
Document parent) |
<T extends Entity> |
bulkUpdate(String indexName,
List<T> entities) |
void |
close() |
boolean |
createIndex(String indexName) |
boolean |
deleteAll(String indexName) |
String |
executeRaw(String method,
String url,
String body) |
<T extends Entity> |
get(String indexName,
String id) |
<T extends Entity> |
get(String indexName,
String id,
String root) |
boolean |
getHealth() |
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
IOExceptionboolean getHealth()
void 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 bulkAdd(String indexName, List<T> entities) throws IOException
IOException<T extends Entity> boolean bulkUpdate(String indexName, List<T> 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
IOExceptionString executeRaw(String method, String url, String body) 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–2021 ICIJ. All rights reserved.