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
1 answer

how to get document count which don't have any nested child in Solr

I am using Nested Document structure to index document in Solr 8.11.1. I have some of the documents which has not any child. I want a count or documents which have no nested child, how can I get it ? ex. { { id: "1", name: "my…
0
votes
1 answer

Solr - Search parent having multiple child documents

I have a Solr index with structure as below. { "id": "1", "bookName_s": "Core Concepts", "bookDescription_s": "This is the description", "isbn_s": "ABCD:123", "reviews": [ { "id": "2", "Name_s": "review1", "detail_s": "sample…
0
votes
0 answers

How to query for a field name that can be in different levels in mongodb

Is it possible to query MongoDB for values of a specific field-name disregarding where it's located in the document structure? For example If I have this document: https://mongoplayground.net/p/ANSezUHhueD { device_name: "host1", ip:…
RaamEE
  • 3,017
  • 4
  • 33
  • 53
0
votes
1 answer

Updating a schema within a schema Mongoose

Been trying to attempt to update a field within a nested array in my document. Such as an example schema here.. childSchema = new Schema ( { foo2 : String, bar2 : String, foobar : String ) }; Within this schema parentSchema = new Schema ( { foo1 :…
0
votes
1 answer

SOLR - Block Join Parent Query parser variation possibility

I recently changed the schema of our Solr cluster and now indexing documents in the nested structure. I have indexed restaurant as parent with its dish as child docs. BJQ (Block Join Query) parent query parser is handy to filter out all the parents…
Saurav Kumar Singh
  • 1,352
  • 7
  • 18
0
votes
0 answers

How is it possible to partial update in Solr?

according to solr documentation The core functionality of atomically updating a document requires that all fields in your schema must be configured as stored (stored="true") or docValues (docValues="true") except for fields which are…
saba safavi
  • 160
  • 7
  • 20
0
votes
2 answers

Mongo query to get field from nested document

I have a mongo collection like this : Collection :rResponse { "_id" : ("59c8248 "), "correlationId" : ("b92b3 "), "rtResponse" : { "rTiming" : { "servicetime" : "2020-04-17 11:50:42.1053555 (GMT-04:00)" } I Was…
Bsr
  • 11
  • 5
0
votes
2 answers

How to read attributes out of multiple nested documents in MongoDB Java?

I need some help with a project I am planing to do. At this stage I am trying to learn using NoSQL Databases in Java. I've got a few nested documents looking like this: MongoDB nesting structure Like you can see on the image, my inner attributes…
0
votes
2 answers

How to display school ID in the textfield?

I want to display the school id in a textfield of a certain view controller but I can't for some reason. I have a function that gets the school ID, of the current School user, and I am able to display it in an alertVC but not a regular VC. I will…
0
votes
1 answer

How to make app automatically recognise current user Firestore document ID when signed in?

When a user is signed up through my form, a document gets created associated with that user. My main goal is to create a global function that can recognize the user that is signed in and get their document ID. I have a function setup for adding…
0
votes
0 answers

How to export nested json object to csv in javascript?

I need to export json data to csv file. I used this code as reference and modified as per my requirement.But I'm not able to export nested data successfully. JSON:(Structure of my JSON) { "id":"101", "name":"User1", "place":{ "city":"City1", …
Thra
  • 87
  • 2
  • 11
0
votes
1 answer

My nested document does not show up, Mongoose, Express

I created a UserSchema for a MERN stack project and I wanted to nest documents in the created users. when I registered the user I tried to post dummy data in the nested documents just to see of they would show in MongoDB Atlas and Postman, but when…
Wadaygo
  • 93
  • 2
  • 16
0
votes
1 answer

mongodb -Query object fields and array fields

{ "_id": "5f6b45ad73cac785f0e7504c", "user_id": "zzzz", "survey_id": "40", "questionList": [ { "isDelete": 1, "choices": [ …
0
votes
3 answers

mongoDB aggregate nested document to only show three at a time

Here is my table: { "_id" : ObjectId("5f2e8e0d4976ed2c04fc2e90"), "reference" : "5f2e8e0d4976ed2c04fc2e8f", "id" : "5e87187f6e8c15766e6994f8", "name" : "no name", "items" : [ { …
TAG
  • 49
  • 7
0
votes
1 answer

Apache Solr mapping custom JSON can't index nested documents

I have some kind of issue and I can't solve it following the documentation. I have this custom JSON that I can't flatten it because comes from an external source. I'm omitting parts of the code to make it easy to read and understand. This is the…
Teleuko
  • 31
  • 1
  • 4