raystack/compass

search filter[type] does not work

mabdh opened this issue · 1 comments

mabdh commented

Describe the bug
search filter[type] does not work after migrating es index to service as a type.

To Reproduce
Steps to reproduce the behavior:
Try calling search api with filter[type] query params

Expected behavior
Results are filtered by type

mabdh commented

This is because we keep the typeWhiteList logic but in our current flow we don't use type whitelisting anymore. We need to remove typeWhiteList behaviour to allow filter by type to work.