Install Elastic Search Server and mongoosastic search pagination

Download and install Elasticsearch server https://www.elastic.co/downloads/elasticsearch Download and unzip the latest Elasticsearch distribution Run bin/elasticsearch on Unix or sudo dpkg -i elasticsearch-xxx.deb Run curl -X GET http://localhost:9200/ Install and set “mongoosastic” nodejs module npm install –save mongoosastic server: blog.model.js: [js] var mongoosastic = require(‘mongoosastic’); var BlogSchema = new mongoose.Schema({ … }); BlogSchema.methods = { ……

Read More

[mongoosastic] Install Elastic Search Server and mongoosastic for Node.js

Install Elastic Search server Download and install https://www.elastic.co/downloads/elasticsearch Download and unzip the latest Elasticsearch distribution Run bin/elasticsearch on Unix or sudo dpkg -i elasticsearch-xxx.deb Run curl -X GET http://localhost:9200/ Install and set “mongoosastic” nodejs module npm install –save mongoosastic server: blog.model.js: [js] var mongoosastic = require(‘mongoosastic’); var BlogSchema = new mongoose.Schema({ … }); BlogSchema.methods =…

Read More