public class ElasticsearchDocument extends Object implements SearchDocument
| Constructor and Description |
|---|
ElasticsearchDocument(org.elasticsearch.search.SearchHit hit)
Deprecated.
|
ElasticsearchDocument(org.elasticsearch.search.SearchHit hit,
com.google.common.base.Function<? super String,? extends com.spatial4j.core.context.SpatialContext> geoContextMapper) |
ElasticsearchDocument(String id,
String type,
String index,
long version,
Map<String,Object> fields,
com.google.common.base.Function<? super String,? extends com.spatial4j.core.context.SpatialContext> geoContextMapper) |
ElasticsearchDocument(String id,
String type,
String index,
String resourceId,
String context,
com.google.common.base.Function<? super String,? extends com.spatial4j.core.context.SpatialContext> geoContextMapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGeoProperty(String name,
String text) |
void |
addProperty(String name) |
void |
addProperty(String name,
String text) |
String |
getContext() |
String |
getId() |
String |
getIndex() |
List<String> |
getProperty(String name) |
Set<String> |
getPropertyNames() |
String |
getResource() |
Map<String,Object> |
getSource() |
String |
getType() |
long |
getVersion() |
boolean |
hasProperty(String name,
String value) |
@Deprecated public ElasticsearchDocument(org.elasticsearch.search.SearchHit hit)
public ElasticsearchDocument(org.elasticsearch.search.SearchHit hit,
com.google.common.base.Function<? super String,? extends com.spatial4j.core.context.SpatialContext> geoContextMapper)
public ElasticsearchDocument(String id, String type, String index, String resourceId, String context, com.google.common.base.Function<? super String,? extends com.spatial4j.core.context.SpatialContext> geoContextMapper)
public String getId()
getId in interface SearchDocumentpublic String getType()
public long getVersion()
public String getIndex()
public String getResource()
getResource in interface SearchDocumentpublic String getContext()
getContext in interface SearchDocumentpublic Set<String> getPropertyNames()
getPropertyNames in interface SearchDocumentpublic void addProperty(String name)
addProperty in interface SearchDocumentpublic void addProperty(String name, String text)
addProperty in interface SearchDocumentpublic void addGeoProperty(String name, String text)
addGeoProperty in interface SearchDocumentpublic boolean hasProperty(String name, String value)
hasProperty in interface SearchDocumentpublic List<String> getProperty(String name)
getProperty in interface SearchDocumentCopyright © 2001-2015 Aduna. All Rights Reserved.