Some other questions related to the Java API:
Using the Java API, what is the preferred way to index a GeoPoint?
Is this not valid?
final Map<String, Object> sourceMap = new HashMap<String, Object>();
sourceMap.put("coordinate", new GeoPoint(event.getLatitudeDeg(),
On Nov 11, 5:11 pm, maverick mauricio.alar...@gmail.com wrote:
As far as I know this is the only way to set the mapping for an index,
is not that you're writing json on your own but instead using the java
API provided to do it.
Anybody wants to add her/his two cents here?
On Nov 11, 2:55 pm, Ronak Patel ronak2...@gmail.com wrote:
So that means this API should not be used?
I would rather not have to deal with building JSON and let the API do
This hides any changes to the ElasticSearch low level protocol away
from my code.
On Nov 11, 1:58 pm, maverick mauricio.alar...@gmail.com wrote:
Why don't you use the provided
and build the json source mapping based on
Take a look tohttps://github.com/elasticsearch/elasticsearch/blob/master/modules/te...
I'm doing via
On Nov 11, 10:30 am, Ronak Patel ronak2...@gmail.com wrote:
I'm trying to register a GeoPoint type with an embedded ElasticSearch
node and am wondering what the correct API usage is.
I understand I have to use the PutMappingRequestBuilder...but what do
I use for the source Map? It lacks generics and as such, I'm confused
what I should add there.
final PutMappingRequestBuilder mappingRequestBuilder = new