You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can reuse ODHs Find Endpoint to search for news by passing the searchterm and activating searchbasetext=true
(https://tourism.opendatahub.bz.it/swagger/index.html#/Search/get_v1_Find) https://tourism.api.opendatahub.bz.it/v1/Find?term=old%20text&odhtype=article&searchbasetext=true&rawfilter=eq(Type,"newsfeednoi")&rawsort=-ArticleDate
but we have also to add the filtering by day and active elements https://tourism.api.opendatahub.bz.it/v1/Find?term=text&odhtype=article&searchbasetext=true&rawfilter=and(le(ArticleDate,"2022-03-15"),eq(OdhActive,true),eq(Type,"newsfeednoi"))&rawsort=-ArticleDate
If we want to get more fields we can add at example &fields=ContactInfos.en.CompanyName,ContactInfos.en.LogoUrl
Thanks @RudiThoeni for listing the available endpoints that support search.
However the responses by those APIs seems different that the ones available from the standard news one.
Also it is not clear how the responses match the proposed UI with search results highlighting directly on the existing interface.
We highly suggest to further analyse together this user story.
This search endpoint is generic so here you have to add all fields you would like to have in the response example (adding ContactInfos,Detail,Type,ArticleDate,ArticleDateTo)
connected to #20
Provide a search functionality with the ODH Find Api
The text was updated successfully, but these errors were encountered: