Open Ahmadhussain92 opened 7 years ago
What is your version of Elasticsearch ?
It's a forked of zackiles with some adaptation to work with elasticsearch 2 or 5.
Seems Epsilonn2/elasticsearch-odm is also updated frequently and support es5.x
Try again with one of this fork.
I really wanted to work with ElasticSearch-ODM, however its having issues with basic find queries?
My code for connecting to Elastic Search:
Very basic Schema defined:
//Model Created
var sample = elasticSearch.model('sample', sampleSchema);
Querying the the message from the sample '_type'
This is the error I receive, for some reason it seems to be doing a match_all{}. Furthermore, it defines the _type value as 'samples' instead of 'sample'
Here's the Basic JSON structure of my document in Kibana
Any help would be greatly appreciated. I would really like myself & my coworkers to work with this ODM library