Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elements not deleted when skipped by transformer #243

Closed
marten-wirelab opened this issue Jun 21, 2022 · 1 comment
Closed

Elements not deleted when skipped by transformer #243

marten-wirelab opened this issue Jun 21, 2022 · 1 comment

Comments

@marten-wirelab
Copy link

I'm indexing a few different types of entries that may or may not contain certain fields. Currently, I have a few possible criteria whereby I don't want to index an entry, which is done by returning an empty array from the transformer.

The expected behaviour is that items are removed from the index when it changes so it falls within any of the criteria. However, it seems that skipping an entry from the transformer only stops Scout from updating it. It seems that to remove an item from the index, the only way (other than manually calling the deIndex method), is to make sure it doesn't fall within the criteria anymore, which is difficult in my case.

Is this as-designed?

@janhenckens
Copy link
Member

Hey @marten-wirelab, not sure if you're still active and using Scout, but I finally got around to addressing this through #281.

Could you follow along there and there the latest beta release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants