0.1.1 • Published 10 years ago

deep-elastic v0.1.1

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

deep-elastic

elasticsearch client (store) for deepjs

example

require("deep-elastic");

deep.store.Elastic.create("search-fiche", {
	host:"10.211.55.10",  // optional : default = 'localhost'
	port:9200, // optional : default = 9200
	path:'smartrep-fiches/_search',
	fields:["content.{ language }.title","content.{ language }.description"],  
	filter:{ "status":"published" }, // optional : default = {}
	fuzzy:0.99	// optional : default = 0.99,
	defaultOptions:{ language:"fr" }
});

deep.store("search-fiche").get("github").log();
0.1.1

10 years ago

0.1.0

10 years ago