[Ann] Spring factories 1.4.1 and new project "beyonder"


I just released a new version of Spring factories 1.4.1 for elasticsearch 1.4: https://github.com/dadoonet/spring-elasticsearch https://github.com/dadoonet/spring-elasticsearch

The main change is that the project has been split into 2 projects:

  • elasticsearch-beyonder [1]: which basically is responsible to create new indices/mappings/… based on your classloader but whatever framework you are using if any
  • spring-elasticsearch [2]: the same project as usual which is focusing on providing spring bean factories and is using beyonder to automatically create indices/mappings/… as it was before

Why this change?

  • in another open source project [3], we are not using anymore Spring but RestX [4]. And we found super useful to have the same features that were existing in spring-elasticsearch.
  • in some live coding demos [5], I was using Spring to show how easy it is to integrate elasticsearch within your Java application. But people often thought that they are forced to use spring. The next version of my demo won't use spring anymore to connect to elasticsearch but standard elasticsearch Java API [6]. Though Beyonder will provide services such as automatic index/type creation.
  • spring-data-elasticsearch [7] project also provide a spring integration which can create an elasticsearch client. spring-elasticsearch has less meaning. But as soon as you have created a client with spring-data, you can pass it to elasticsearch-beyonder to create automatically what you need.

How to use beyonder?

Add it as a dependency to your pom.xml:

fr.pilato.elasticsearch elasticsearch-beyonder 1.4.0

Pass your client and you’re done!

It will by convention look into elasticsearch/ dir within your classloader and create index/type/templates…

The full documentation is on github: [1]

The future?

I think that maintaining spring-elasticsearch has less sense now and that users will most likely prefer using spring-data-elasticsearch project. So I don’t think there will new releases of spring elasticsearch other than bug fix release or if users require it.
All the efforts and new features will be done in Beyonder. Note that it’s not complete yet when comparing to spring-elasticsearch as there is no support today for automatic aliases [8].

I hope this project could help some others. Feel free to comment and add your issues, PR to the project [1].

[1] https://github.com/dadoonet/elasticsearch-beyonder https://github.com/dadoonet/elasticsearch-beyonder
[2] https://github.com/dadoonet/spring-elasticsearch https://github.com/dadoonet/spring-elasticsearch
[3] http://www.scrutmydocs.org/ http://www.scrutmydocs.org/
[4] http://restx.io/ http://restx.io/
[5] https://github.com/dadoonet/legacy-search https://github.com/dadoonet/legacy-search
[6] http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current/client.html http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current/client.html
[7] https://github.com/spring-projects/spring-data-elasticsearch https://github.com/spring-projects/spring-data-elasticsearch
[8] https://github.com/dadoonet/elasticsearch-beyonder/issues/2 https://github.com/dadoonet/elasticsearch-beyonder/issues/2

David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfr https://twitter.com/elasticsearchfr | @scrutmydocs https://twitter.com/scrutmydocs

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/A1DA0887-538A-41F6-8032-7473086EFFF4%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.