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

Advanced Search Plugin: Attempts to index many variants twice #34

Open
toBeOfUse opened this issue Dec 19, 2024 · 1 comment
Open

Advanced Search Plugin: Attempts to index many variants twice #34

toBeOfUse opened this issue Dec 19, 2024 · 1 comment

Comments

@toBeOfUse
Copy link

When the advanced search plugin re-indexing job runs, there are many documents that fail to be indexed:

image

This appears to be because many duplicate variant IDs are fetched while the index is being built, and so the same variant documents are sent to the index multiple times, resulting in the second document failing:

image

I'm not sure exactly why, but I assume it's due to a redundant left join of some sort in the query builder - maybe it's retrieving two of each variant that is in multiple channels?

@toBeOfUse toBeOfUse changed the title Advanced Search Plugin: Attempt to index many variants twice Advanced Search Plugin: Attempts to index many variants twice Dec 19, 2024
@toBeOfUse
Copy link
Author

(This doesn't appear to cause any problems with functionality, since TypeSense rejects the redundant variants, but it does cause error messages and slow things down)

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

1 participant