Mongoosastic is a mongoose plugin that can automatically index your models into elasticsearch.
Questions tagged [mongoosastic]
134 questions
22
votes
2 answers
How do I do populate on mongoosastic?
My goal is to populate certain fields in mongoosastic search, but if I do the following codes, it will always return
Here's the code
var mongoose = require('mongoose');
var Category = require('./category');
var mongoosastic =…

Jack Moscovi
- 2,195
- 7
- 30
- 49
10
votes
2 answers
Use mongoosastic for an autocomplete
I'm trying to create an autocomplete using mongoosastic and Elastic Search, and so far, I have been able to create it using sense but I'm having trouble porting it to mongoosastic.
I followed this tutorial from ElasticSearch docs, and I was able to…

cyber ice
- 283
- 3
- 12
7
votes
1 answer
Why is mongoosastic populate / elastic search not populating one of my references? I'm getting an empty object
I have two models I'm attempting to reference. Style and Brand.
Brand populates with the needed object, but Style is always empty.
i've tried clearing cache / deleting indexes. With and without include_in_parent and type: 'nested'.
I feel it may…

NoobSter
- 1,150
- 1
- 16
- 39
6
votes
1 answer
mapper_parsing_exception in new elasticsearch 2.1.1 version
Problem : I have created mapping and its working fine in elasticsearch
1.7.1 but after updating to 2.1.1 it will give me exception
EXCEPTION
response: '{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason"
:"analyzer on field [_all]…

Keval Bhatt
- 6,224
- 2
- 24
- 40
6
votes
3 answers
Data not being delete from elasticsearch index via mongoosastic?
I have mongoosastic setup within a MEAN stack program. Everything works correctly except when I delete a document from mongodb it is not deleted in the elasticsearch index. So every time I do a search that includes delete items, the deleted item is…

DropAcid
- 61
- 1
- 6
5
votes
2 answers
How to do instant search with mongoosastic + AJAX?
I have configured mongoosastic successfully, I tried searching and it is working fine, but when it comes to front-end I'm not really sure on how to achieve this, I experimented with a lot of ways but couldn't come up with a good solution.
Here's the…

Jack Moscovi
- 2,195
- 7
- 30
- 49
4
votes
1 answer
Filter against geo_point in an array of nested objects
I'm trying to filter against a geo_point (geo_coordinates) which is nested in an object (Location), which is nested in an array in the queried object (MyObject).
The problem is that the mapping for the object MyObject does not see the…

Quentin Hayot
- 7,786
- 6
- 45
- 62
4
votes
3 answers
Mongoosastic - { [Error: No Living connections] message: 'No Living connections' }
Im trying to use mongoosastic for searching purposes, but I keep getting 'No Living connections' error and mapping problem
Here's the code
var mongoose = require('mongoose');
var mongoosastic = require('mongoosastic');
var Schema =…

Jack Moscovi
- 2,195
- 7
- 30
- 49
4
votes
1 answer
How to write Mapping in mongoosastic in nodejs
Actually i want to remove indexing from some fields now can anyone please tell me how can i write mappings for that my code is given bel;ow can anyone tell me what's wrong in this or can anyone please tell me what is the right way for doing…

divanshu pratap
- 333
- 1
- 4
- 11
3
votes
1 answer
Mangoosastic Full Text Search via Telegram Bot
I have a msg.text variable Incomming from Telegram Bot, msg.text is = My Schema name, How Should I get names Contain words entered by the user ?
schema:
const parentSchema = new Schema({
_id: Number,
name:…

Saeed Heidarizarei
- 8,406
- 21
- 60
- 103
3
votes
1 answer
Is there a plugin like mongoosastic to use with loopback?
I want to use elasticsearch to provide full-text search for my application, After googled i have decided to use mongoosastic, but that plugin is with express. So is there an equivalent plugin to use it with loopback?

jones
- 1,423
- 3
- 35
- 76
3
votes
1 answer
mongoosastic not indexing data on save
for my unit tests I am truncating my models using mongoosastic before I do a bulkindex of my mongoose schemas.
Schema:
model: {
name: {type: String, required: true, es_indexed: true, index: 'not_analyzed'},
aliases: {type: [String],…

jo v
- 302
- 5
- 14
3
votes
0 answers
elasticsearch mongoosastic count api and min_score
Who knows how can I use _count API from elasticserch in mongoosastic with node.js ?
Also I cant query with min_score.
{
min_score: 1,
query_string: {
query : query[ 'search' ]
}
}
this query gives me an error…

Gor
- 2,808
- 6
- 25
- 46
3
votes
1 answer
Mongoosastic, how can i make an Geo Distance Query
My schema looks something like this for mongoose:
var articleSchema = new Schema({
Name: {type: String, es_indexed: true},
geo_with_lat_lon: {
geo_point: {
type: String,
es_type: 'geo_point',
…

laren0815
- 265
- 1
- 5
- 22
3
votes
1 answer
How to fuzzy query against multiple fields in elasticsearch?
Here's my query as it stands:
"query":{
"fuzzy":{
"author":{
"value":query,
"fuzziness":2
},
"career_title":{
"value":query,
"fuzziness":2
}
}
}
This is part of…

IanCZane
- 600
- 4
- 21