search is debug nested object included
This commit is contained in:
		| @@ -56,7 +56,8 @@ func (wfa DataMongoAccessor) LoadAll() ([]utils.ShallowDBObject, int, error) { | ||||
|  | ||||
| func (wfa *DataMongoAccessor) Search(word string) ([]utils.ShallowDBObject, int, error) { | ||||
| 	objs := []utils.ShallowDBObject{} | ||||
| 	res_mongo, code, err := mongo.MONGOService.Search(word, []string{"name", "short_description", "description", "owner", "source_url"}, wfa.GetType()) | ||||
| 	res_mongo, code, err := mongo.MONGOService.Search(word, []string{"abstractresource.abstractobject.name", "abstractresource.short_description", "abstractresource.description", "abstractresource.owner", "abstractresource.source_url"}, | ||||
| 		wfa.GetType()) | ||||
| 	if err != nil { | ||||
| 		wfa.Logger.Error().Msg("Could not store to db. Error: " + err.Error()) | ||||
| 		return nil, code, err | ||||
|   | ||||
		Reference in New Issue
	
	Block a user