diff --git a/models/resources/resource_accessor.go b/models/resources/resource_accessor.go index 6cf9130..79c8e18 100644 --- a/models/resources/resource_accessor.go +++ b/models/resources/resource_accessor.go @@ -92,11 +92,10 @@ func (wfa *resourceMongoAccessor[T]) Search(filters *dbs.Filters, search string, func (abs *resourceMongoAccessor[T]) getResourceFilter(search string) *dbs.Filters { return &dbs.Filters{ Or: map[string][]dbs.Filter{ // filter by like name, short_description, description, owner, url if no filters are provided - "abstractresource.abstractobject.name": {{Operator: dbs.LIKE.String(), Value: search}}, - "abstractresource.short_description": {{Operator: dbs.LIKE.String(), Value: search}}, - "abstractresource.description": {{Operator: dbs.LIKE.String(), Value: search}}, - "abstractresource.owner": {{Operator: dbs.LIKE.String(), Value: search}}, - "abstractresource.source_url": {{Operator: dbs.LIKE.String(), Value: search}}, + "abstractintanciatedresource.abstractresource.abstractobject.name": {{Operator: dbs.LIKE.String(), Value: search}}, + "abstractintanciatedresource.abstractresource.short_description": {{Operator: dbs.LIKE.String(), Value: search}}, + "abstractintanciatedresource.abstractresource.description": {{Operator: dbs.LIKE.String(), Value: search}}, + "abstractintanciatedresource.abstractresource.owners": {{Operator: dbs.IN.String(), Value: search}}, }, } }