mongoosastic

Index Mongoose models into elasticsearch automatically. Looking for maintainers!

Github星跟蹤圖

LOOKING FOR MAINTAINERS

This project is looking for contributors/maintainers. Please check issue #457. If you, or anyone you know, work with Mongoose and/or ElasticSearch please let them know that we'd appreciate any help. Thanks!

Mongoosastic

Build Status
NPM version
Coverage Status
Downloads
Gitter

Mongoosastic is a mongoose plugin that can automatically index your models into elasticsearch.

Getting started

  1. Install the package
npm install -S mongoosastic
  1. Setup your mongoose model to use the plugin
var mongoose     = require('mongoose')
  , mongoosastic = require('mongoosastic')
  , Schema       = mongoose.Schema

var User = new Schema({
    name: String
  , email: String
  , city: String
})

User.plugin(mongoosastic)
  1. Query your Elasticsearch with the search() method (added by the plugin)
User.search({
  query_string: {
    query: "john"
  }
}, function(err, results) {
  // results here
});

NOTE: You can also query Elasticsearch with any other method. Example:

curl http://localhost:9200/users/user/_search

Documentation

View docs

主要指標

概覽
名稱與所有者mongoosastic/mongoosastic
主編程語言TypeScript
編程語言JavaScript (語言數: 5)
平台
許可證MIT License
所有者活动
創建於2014-10-24 16:44:30
推送於2023-03-07 16:23:05
最后一次提交2022-09-19 20:24:37
發布數56
最新版本名稱v5.0.0 (發布於 )
第一版名稱0.0.1 (發布於 2012-06-20 02:28:11)
用户参与
星數1.1k
關注者數25
派生數329
提交數659
已啟用問題?
問題數286
打開的問題數11
拉請求數193
打開的拉請求數11
關閉的拉請求數135
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?