public interface IndexProvider
extends org.uberfire.commons.lifecycle.Disposable
Modifier and Type | Method and Description |
---|---|
void |
delete(String index) |
void |
delete(String index,
String id) |
boolean |
exists(String index,
String id) |
List<KObject> |
findById(String index,
String id) |
List<KObject> |
findByQuery(List<String> indices,
org.apache.lucene.search.Query query,
int limit) |
List<KObject> |
findByQuery(List<String> indices,
org.apache.lucene.search.Query query,
org.apache.lucene.search.Sort sort,
int limit) |
long |
findHitsByQuery(List<String> indices,
org.apache.lucene.search.Query query) |
long |
getIndexSize(String index) |
List<String> |
getIndices() |
void |
index(KObject object) |
void |
index(List<KObject> elements) |
boolean |
isFreshIndex(KCluster cluster) |
void |
rename(String index,
String id,
KObject to) |
boolean isFreshIndex(KCluster cluster)
void index(KObject object)
void delete(String index)
List<KObject> findById(String index, String id) throws IOException
IOException
long getIndexSize(String index)
List<KObject> findByQuery(List<String> indices, org.apache.lucene.search.Query query, int limit)
List<KObject> findByQuery(List<String> indices, org.apache.lucene.search.Query query, org.apache.lucene.search.Sort sort, int limit)
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.