I am migrating from another search service to elastic search on an app. I have defined the index (20 fields, 10 nested multilevel objects) and when I try to index, I am getting a stack level too deep error. I am using grape entities to serialise the json for the nested models (some of them also contain dynamic field names) like this:
field :the_model, type: 'object', value: ->{ TheModel::Entity.represent(the_model).as_json }
Have looked on stack overflow, but since there is nothing on there, I decided to post here. I know that it is because of the depth of the objects, because when I remove a couple, the error goes away.
Am using the latest version of chewy, with grape and grape entities, and running locally.
I am migrating from another search service to elastic search on an app. I have defined the index (20 fields, 10 nested multilevel objects) and when I try to index, I am getting a stack level too deep error. I am using grape entities to serialise the json for the nested models (some of them also contain dynamic field names) like this:
Have looked on stack overflow, but since there is nothing on there, I decided to post here. I know that it is because of the depth of the objects, because when I remove a couple, the error goes away.
Am using the latest version of chewy, with grape and grape entities, and running locally.