diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d27e38e2..b3d88a60f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Current (in progress) -- Nothing yet +- Enable basic search on dataservices [#3148](https://github.com/opendatateam/udata/pull/3148) ## 9.2.0 (2024-09-13) diff --git a/udata/core/dataservices/models.py b/udata/core/dataservices/models.py index 6e8f6310c..c3a148898 100644 --- a/udata/core/dataservices/models.py +++ b/udata/core/dataservices/models.py @@ -94,7 +94,7 @@ class HarvestMetadata(db.EmbeddedDocument): archived_at = field(db.DateTimeField()) -@generate_fields() +@generate_fields(searchable=True) class Dataservice(WithMetrics, Owned, db.Document): meta = { "indexes": [ @@ -130,7 +130,7 @@ class Dataservice(WithMetrics, Owned, db.Document): authorization_request_url = field(db.URLField()) availability = field(db.FloatField(min=0, max=100), example="99.99") rate_limiting = field(db.StringField()) - is_restricted = field(db.BooleanField()) + is_restricted = field(db.BooleanField(), filterable={}) has_token = field(db.BooleanField()) format = field(db.StringField(choices=DATASERVICE_FORMATS))