Questions tagged [nested-documents]

A data/object structure where documents are contained within other documents. Relates to indexing and used in search and database platforms and engines like mongodb, solr and elasticsearch

A data/object structure where documents are contained within other documents. Relates to indexing and used in search and database platforms and engines like mongodb, solr and elasticsearch

64 questions
0
votes
2 answers

How can I get children in nested documents with some conditions?

I have a collection : { _id : ... children : [ { code:0 }, { code:1 }, { code:2 } ] }, { _id : ... children : [ { code:3 …
Jeffrey Kang
  • 77
  • 1
  • 8
0
votes
1 answer

Search for documents in elasticsearch and then query the nested fields

I have an index like this: { "rentals": { "aliases": {}, "mappings": { "rental": { "properties": { "address": { "type": "text" }, "availability": { "type": "nested", …
Pratish Shrestha
  • 1,712
  • 4
  • 17
  • 26
0
votes
2 answers

Mongodb nested document where clause returns many subdocuments

I have a mongodb document that looks similar to this: { "id": 1, "title": "This is the title", "body" : "This is the body", "comments": [ { "email_address": "mirko.benedetti@somemail.com", "name": "Mirko", "surname":…
Mirko Benedetti
  • 81
  • 1
  • 1
  • 10
0
votes
1 answer

Mongoose/MongoDB how to query nested documents as a single array

one item in the collection looks as shown below. { "_id" : ObjectId("4f7ee46e08403d063ab0b4f9"), "name" : "MongoDB", "notes" : [ { "title" : "Hello MongoDB", "content" : "Hello MongoDB" }, …
Xsmael
  • 3,624
  • 7
  • 44
  • 60
1 2 3 4
5