public class ElasticHandler
extends java.lang.Object
Constructor | Description |
---|---|
ElasticHandler(org.elasticsearch.client.Client client,
java.lang.String index,
java.lang.String type) |
Modifier and Type | Method | Description |
---|---|---|
org.elasticsearch.action.bulk.BulkResponse |
addItems(java.util.List<OWLDataObject> centralModel) |
|
void |
addNewAttribute(OWLDataObject newAttribute) |
|
Alternatives |
advanceSearch(java.lang.String keyword) |
|
org.elasticsearch.action.admin.indices.create.CreateIndexResponse |
createIndex() |
|
org.elasticsearch.action.admin.indices.delete.DeleteIndexResponse |
deleteIndex() |
|
OWLDataObject |
extractAttribute(org.elasticsearch.search.SearchHit hit) |
|
java.util.List<java.lang.String> |
getDistinctCategories() |
|
java.lang.String |
getDocument() |
|
java.lang.String |
getIndex() |
|
boolean |
isConnected() |
|
Alternatives |
search(java.lang.String keyword) |
|
java.util.List<Entity> |
searchEntities() |
|
org.elasticsearch.search.SearchHits |
searchStringBasic(java.lang.String phrase) |
|
org.elasticsearch.action.admin.indices.mapping.put.PutMappingResponse |
setMapping() |
public ElasticHandler(org.elasticsearch.client.Client client, java.lang.String index, java.lang.String type)
public org.elasticsearch.action.admin.indices.create.CreateIndexResponse createIndex() throws java.lang.Exception
java.lang.Exception
public org.elasticsearch.action.admin.indices.mapping.put.PutMappingResponse setMapping() throws java.lang.Exception
java.lang.Exception
public org.elasticsearch.action.bulk.BulkResponse addItems(java.util.List<OWLDataObject> centralModel)
public void addNewAttribute(OWLDataObject newAttribute) throws java.io.IOException
java.io.IOException
public java.util.List<java.lang.String> getDistinctCategories() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public Alternatives advanceSearch(java.lang.String keyword)
public Alternatives search(java.lang.String keyword)
public java.util.List<Entity> searchEntities()
public org.elasticsearch.search.SearchHits searchStringBasic(java.lang.String phrase)
public OWLDataObject extractAttribute(org.elasticsearch.search.SearchHit hit)
public java.lang.String getIndex()
public java.lang.String getDocument()
public boolean isConnected()
public org.elasticsearch.action.admin.indices.delete.DeleteIndexResponse deleteIndex()