Skip to content

Sect0R/sailsjs-elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Source Love PRs Welcome

sailsjs-elasticsearch

Using elasticsearch in sailsJS framework. Index/Reindex, Search

Documentation

Example reindex command

$http.get('/api/elastic/reindex')
.then(() => {  
	 // ... 
 });

Example search request

$http.get('/api/elastic/search?index=music&where=' +  
 JSON.stringify({  
  or: [  
		 { title:         { contains: 'linkin' } },  
		 { author:        { contains: 'linkin' } }  
	 ]
 }) + '&limit=30')
 .then(() => {  
	 //... 
 });```

About

Using elasticsearch in sailsJS framework. Index/Reindex, Search

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published