Spring-data elasticsearch support?


(Andra Bennett) #1

Hello,

I am using spring-data elastic searchhttps://github.com/spring-projects/spring-data-elasticsearchto configure my node and index my data.

I'd like to know how to enable the timestamp feature for the indexing, and
how to map it to a custom field.

Does anyone in the elasticsearch have experience with the spring-data
elasticsearch library? Or this question better suited for the Spring forum.

Thanks,
Andra

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3141bf8b-bd9e-43c8-afdb-3ffcf7fb53a5%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(David Pilato) #2

I guess that you basically have to send a mapping.
I think that once you have a Node you can get a client from it and push a mapping in Java, right?

I did not play yet with spring data project for ES but I will soon.
As author of https://github.com/dadoonet/spring-elasticsearch, I will probably do it like this with it.

Not sure it helps.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 déc. 2013 à 19:23, Andra Bennett andrucu@gmail.com a écrit :

Hello,

I am using spring-data elastic search to configure my node and index my data.

I'd like to know how to enable the timestamp feature for the indexing, and how to map it to a custom field.

Does anyone in the elasticsearch have experience with the spring-data elasticsearch library? Or this question better suited for the Spring forum.

Thanks,
Andra

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3141bf8b-bd9e-43c8-afdb-3ffcf7fb53a5%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/39758AD0-4E10-4018-927F-E080BC2B9A81%40pilato.fr.
For more options, visit https://groups.google.com/groups/opt_out.


(Andra Bennett) #3

Hi David,

I am able to push a mapping in Java, but I see how I can merge that with an
externally defined mapping as you suggest below.

But, is the spring-elasticsearch library compatible with the elasticsearch
spring-data library?

Thanks!
Andra

On Monday, December 16, 2013 1:56:18 PM UTC-5, David Pilato wrote:

I guess that you basically have to send a mapping.
I think that once you have a Node you can get a client from it and push a
mapping in Java, right?

I did not play yet with spring data project for ES but I will soon.
As author of https://github.com/dadoonet/spring-elasticsearch, I will
probably do it like this with it.

Not sure it helps.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 déc. 2013 à 19:23, Andra Bennett <and...@gmail.com <javascript:>> a
écrit :

Hello,

I am using spring-data elastic searchhttps://github.com/spring-projects/spring-data-elasticsearchto configure my node and index my data.

I'd like to know how to enable the timestamp feature for the indexing, and
how to map it to a custom field.

Does anyone in the elasticsearch have experience with the spring-data
elasticsearch library? Or this question better suited for the Spring forum.

Thanks,
Andra

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/3141bf8b-bd9e-43c8-afdb-3ffcf7fb53a5%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/98735908-1e4e-4c6c-9bc0-1a7f4eb5de5e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(smhdiu) #4

Currently this feature is not supported. but looks very handy and useful
feature.
we will think about it soon.
please check my latest reply at
https://jira.springsource.org/browse/DATAES-41

HTH
Mohsin

On Wednesday, 18 December 2013 15:32:02 UTC, Andra Bennett wrote:

Hi David,

I am able to push a mapping in Java, but I see how I can merge that with
an externally defined mapping as you suggest below.

But, is the spring-elasticsearch library compatible with the elasticsearch
spring-data library?

Thanks!
Andra

On Monday, December 16, 2013 1:56:18 PM UTC-5, David Pilato wrote:

I guess that you basically have to send a mapping.
I think that once you have a Node you can get a client from it and push a
mapping in Java, right?

I did not play yet with spring data project for ES but I will soon.
As author of https://github.com/dadoonet/spring-elasticsearch, I will
probably do it like this with it.

Not sure it helps.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 déc. 2013 à 19:23, Andra Bennett and...@gmail.com a écrit :

Hello,

I am using spring-data elastic searchhttps://github.com/spring-projects/spring-data-elasticsearchto configure my node and index my data.

I'd like to know how to enable the timestamp feature for the indexing,
and how to map it to a custom field.

Does anyone in the elasticsearch have experience with the spring-data
elasticsearch library? Or this question better suited for the Spring forum.

Thanks,
Andra

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/3141bf8b-bd9e-43c8-afdb-3ffcf7fb53a5%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5b77905a-5c08-4e1b-9653-3aa8b3f43c2c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #5