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) |
ExtractedText |
getExtractedText(String indexName,
String documentId,
int offset,
int limit) |
ExtractedText |
getExtractedText(String indexName,
String documentId,
int offset,
int limit,
String targetLanguage) |
ExtractedText |
getExtractedText(String indexName,
String documentId,
String rootDocument,
int offset,
int limit) |
ExtractedText |
getExtractedText(String indexName,
String documentId,
String rootDocument,
int offset,
int limit,
String targetLanguage) |
boolean |
getHealth() |
Indexer.Searcher |
search(List<String> indexesNames,
Class<? extends Entity> entityClass) |
SearchedText |
searchTextOccurrences(String indexName,
String documentId,
String query,
String targetLanguage) |
SearchedText |
searchTextOccurrences(String indexName,
String documentId,
String rootDocument,
String query,
String targetLanguage) |
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(List<String> indexesNames, 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
IOExceptionExtractedText getExtractedText(String indexName, String documentId, int offset, int limit) throws IOException
IOExceptionExtractedText getExtractedText(String indexName, String documentId, String rootDocument, int offset, int limit) throws IOException
IOExceptionExtractedText getExtractedText(String indexName, String documentId, int offset, int limit, String targetLanguage) throws IOException
IOExceptionExtractedText getExtractedText(String indexName, String documentId, String rootDocument, int offset, int limit, String targetLanguage) throws IOException
IOExceptionSearchedText searchTextOccurrences(String indexName, String documentId, String query, String targetLanguage) throws IOException
IOExceptionSearchedText searchTextOccurrences(String indexName, String documentId, String rootDocument, String query, String targetLanguage) throws IOException
IOExceptionCopyright © 2020–2022 ICIJ. All rights reserved.