Comments (3)
Hey @janryWang, I know this is possible but not sure exactly how. I don't really use this project much anymore and have fallen out of understanding all of the intricacies. If you need to you can use the native driver by accessing the static value esClient
(https://github.com/mongoosastic/mongoosastic/blob/master/lib/mongoosastic.js#L28)
MyModel.esClient.search(/ *** /)
You can find the api for the Elasticsearch driver here: http://www.elasticsearch.org/guide/en/elasticsearch/client/javascript-api/current/api-reference.html
from mongoosastic.
@taterbase I give this project a PR,but CI always faild! why?
from mongoosastic.
I think using more than one index in a Mongoose model is beyond this plugin. You should use directly an Elasticsearch client to do that.
from mongoosastic.
Related Issues (20)
- Can't get nested fields. HOT 2
- Dependency Dashboard
- v5.0 Roadmap HOT 17
- Publish new major version to NPM HOT 1
- Unable to es_index values inside discriminator's schemas HOT 2
- Add option to overwrite the default ignore_above mapping value of 256 characters HOT 2
- update `jest` to latest version HOT 2
- synchronize function not working as expected HOT 3
- Improve error messages on bulk request errors HOT 1
- accept string on es_schema HOT 1
- need bulkAdd method to be exposed so we can use it on the model , as we are facing problem with synchronize method HOT 7
- Unable to bulk index - Error: "[action_request_validation_exception] Validation Failed: 1: type is missing;"
- Cannot connect to elasticsearch server from docker container HOT 1
- Option `routing` is not in the documentation HOT 1
- The ElasticSearch result does not contain body - it should be just res.hits HOT 4
- --production flag issue
- Update Mongoose Dependency [Open Vulnerability]
- New Mongoosastic version
- Mongoose Transactions / rollback failure from elasticsearch
- findOneAndUpdate Auto Index Population Side Effects
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongoosastic.