public final class ESearchActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator
Constructor and Description |
---|
ESearchActivator() |
Modifier and Type | Method and Description |
---|---|
static void |
asyncIndex(java.lang.String index,
java.lang.String kind,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> obj) |
static org.elasticsearch.client.Client |
createClient(java.util.Collection<java.lang.String> hosts) |
static void |
delete(java.lang.String index,
java.lang.String kind,
java.lang.String id) |
static void |
deleteByQuery(java.lang.String index,
org.elasticsearch.index.query.QueryBuilder query) |
static void |
deleteByQuery(java.lang.String index,
java.lang.String query) |
static void |
disableFlush(java.lang.String... indexes) |
static void |
enableFlush(java.lang.String... indexes) |
static void |
flush(java.lang.String index) |
static org.elasticsearch.client.Client |
getClient() |
static org.elasticsearch.client.Client |
getClient(java.lang.String tag) |
static byte[] |
getIndexSchema(java.lang.String indexName) |
static void |
index(java.lang.String index,
java.lang.String kind,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> obj) |
static void |
initClasspath() |
static void |
initClient(org.elasticsearch.client.Client client) |
static void |
initIndex(org.elasticsearch.client.Client client,
java.lang.String index) |
static void |
initIndex(java.lang.String index) |
static org.elasticsearch.action.search.SearchRequestBuilder |
prepareSearch(java.lang.String index,
org.elasticsearch.index.query.QueryBuilder query) |
static org.elasticsearch.action.search.SearchRequestBuilder |
prepareSearch(java.lang.String index,
java.lang.String query) |
static void |
refreshIndex(java.lang.String index) |
static void |
resetAll() |
static void |
resetIndex(org.elasticsearch.client.Client client,
java.lang.String index) |
static void |
resetIndex(java.lang.String index) |
static org.elasticsearch.search.SearchHits |
search(java.lang.String index,
java.lang.String query) |
static org.elasticsearch.search.SearchHits |
search(java.lang.String index,
java.lang.String query,
int from,
int size) |
static org.elasticsearch.search.SearchHits |
search(java.lang.String index,
java.lang.String query,
int from,
int size,
java.lang.String field) |
void |
start(org.osgi.framework.BundleContext bundleContext) |
void |
stop(org.osgi.framework.BundleContext bundleContext) |
static void |
update(java.lang.String index,
java.lang.String kind,
java.lang.String id,
java.lang.String field,
java.lang.Object value) |
public void start(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
java.lang.Exception
public void stop(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
java.lang.Exception
public static final void initClient(org.elasticsearch.client.Client client)
public static final void initClasspath()
public static final void index(java.lang.String index, java.lang.String kind, java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> obj)
public static final void asyncIndex(java.lang.String index, java.lang.String kind, java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> obj)
public static final void delete(java.lang.String index, java.lang.String kind, java.lang.String id)
public static final void deleteByQuery(java.lang.String index, java.lang.String query)
public static final void deleteByQuery(java.lang.String index, org.elasticsearch.index.query.QueryBuilder query)
public static final org.elasticsearch.search.SearchHits search(java.lang.String index, java.lang.String query)
public static final org.elasticsearch.search.SearchHits search(java.lang.String index, java.lang.String query, int from, int size)
public static final org.elasticsearch.search.SearchHits search(java.lang.String index, java.lang.String query, int from, int size, java.lang.String field)
public static org.elasticsearch.action.search.SearchRequestBuilder prepareSearch(java.lang.String index, java.lang.String query)
public static org.elasticsearch.action.search.SearchRequestBuilder prepareSearch(java.lang.String index, org.elasticsearch.index.query.QueryBuilder query)
public static final void update(java.lang.String index, java.lang.String kind, java.lang.String id, java.lang.String field, java.lang.Object value)
public static org.elasticsearch.client.Client getClient(java.lang.String tag)
public static org.elasticsearch.client.Client getClient()
public static org.elasticsearch.client.Client createClient(java.util.Collection<java.lang.String> hosts)
public static void refreshIndex(java.lang.String index)
public static void disableFlush(java.lang.String... indexes)
public static void enableFlush(java.lang.String... indexes)
public static void flush(java.lang.String index)
public static void resetAll()
public static void resetIndex(java.lang.String index)
public static void resetIndex(org.elasticsearch.client.Client client, java.lang.String index)
public static void initIndex(java.lang.String index)
public static void initIndex(org.elasticsearch.client.Client client, java.lang.String index)
public static byte[] getIndexSchema(java.lang.String indexName)
Copyright © 2021. All Rights Reserved.