- Issue created by @a.dmitriiev
- π©πͺGermany breidert
This would be nice to have. If you had 3 content types (page, news, event), the you could have 3 search endpoints with one index:
- General Search (search all content types with a facet for the content types)
- News Search (searching only content of type news)
- Event Search (searching only content of type event)
- πΊπΈUnited States seantwalsh Eatontown, NJ
Would definitely love this feature! How can I help move this forward?
- π©πͺGermany a.dmitriiev
I have already started adding the config schema for filters in the fork branch. The idea is to add some simplified version of Filters as in views on Endpoint edit page and then use the settings in the endpoint controller to apply the conditions.
- π©πͺGermany a.dmitriiev
a.dmitriiev β changed the visibility of the branch 3390462-add-pre-configurable-filters to hidden.
- π©πͺGermany a.dmitriiev
a.dmitriiev β changed the visibility of the branch 3390462-add-pre-configurable-filters to active.
- Merge request !24Draft: Resolve #3390462 "Add pre configurable filters" β (Open) created by a.dmitriiev
- π©πͺGermany a.dmitriiev
I moved a bit further and created a Draft MR. At the moment the basic filtering was added, it is possible to add/edit/delete filter. The exposed feature is not ready yet and UI for setting complex values for filters like "BETWEEN", "IN", "NOT IN", ... is not there. At the moment it is just one textfield for value.
- π©πͺGermany a.dmitriiev
Endpoint edit form now has the "Filters" section at the bottom where one can add pre-defined filters, that will be applied without any query parameters in the request to endpoint. Also, it is possible to add "Exposed" filters. At the moment there are only 3 types of filters: Numeric (for integer and decimal search api type), Date and Fallback (for all others including string)
For backwards compatibility it is still possible to filter by any index field, if no filters are added to endpoint. If at least one filter is added, and it if it is not allowed to be exposed, adding query parameter to endpoint request for the field that corresponds to filter will not be working. Only if the filter allows to be exposed the query parameter will influence results.
- Status changed to Needs review
4 months ago 1:08pm 12 July 2024