nboire / play2-elasticsearch Goto Github PK
View Code? Open in Web Editor NEWElasticsearch module for play2 application
Elasticsearch module for play2 application
If I try to add the dependencies, with sbt as shown in the wiki, I have got this issue.
There is no more repo on this url : http://cleverage.github.com/play2-elasticsearch/releases/
It's a 404 code error.
Is there a way to add the plugin ?
Hi!
I wouldlike to know if there is a best practice to index a custom object in elasticsearch.
Example. I have a custom object MyObject:
public class CustomObject {
private String name;
private String value;
// Constructor
// ...........................................
// Getters & Setters
// ...........................................
}
Here is the ElasticSearch index object:
@IndexType(name = "myIndex")
public class MyObjectIndex extends Index {
private static Finder<MyObjectIndex> find = ...................;
private String id;
private List<MyObject> myObjectList;
// Getters & Setters
// ..................................................
@Override
public Map toIndex(){
Map<String, Object> map = new HashMap<>();
map.put("id", id);
// Is there a better way to convert my object list?
List<Map<String, String>> convertedObjectList = new ArrayList<>();
for(MyObject myObject : myObjectList){
Map<String, String> convertedObject = new HashMap<>();
convertedObject.put("name", myObject.getName());
convertedObject.put("value", myObject.getValue());
convertedObjectList.add(convertedObject);
}
map.put("myObjectList", convertedObjectList);
return map;
}
}
As you can see in comments: is there a better way the list of myObject? I tried to put directly the object list in the map.put but it indexes the toString() method result.
Thank you :)
I am trying to use this but it gives the following error while I run the example
sbt.ResolveException: unresolved dependency: com.clever-age#play2-elasticsearch;2.1-SNAPSHOT: not found
and hence the compilation fails for references of import com.github.cleverage.elasticsearch.IndexResults;
Also i tried using "com.clever-age" % "play2-elasticsearch" % "0.8.1"
But hits the error : sbt.ResolveException: unresolved dependency: com.typesafe.play#play-server_2.10;2.6.2: not found
Any pointers will be appreciated
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.