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

Search delayed deltas with Sphinx not working from Sharetribe Go CE v11 #4391

Open
thomasmalbaux opened this issue Jan 24, 2024 · 0 comments

Comments

@thomasmalbaux
Copy link
Contributor

Sharetribe Version

From Sharetribe Go Community Edition v11.0.0.

Description

The search, that is using Sphinx, is working: That command builds the search indexes over the contents of the database. However, deltas are not.

Deltas are used for marketplace additions and modifications since the last time ts:index was run. This allows listings that were just added or modified to be fully searchable right away.

After some investigation, Go CE's user Roman Petrenko discovered that this is probably related to a breaking change in the Thinking Sphinx gem, from release 5.0.0. It seems that callbacks aren’t added automatically for all ActiveRecord models anymore and they have to be added explicitly.

Fix

Roman Petrenko proposed a solution on the Go CE Community Forum as well as the code that worked for them to fix this.

An alternative could be to setup a cron job to index things on a regular basis.

Additional information

This issue and the proposed fix has not been investigated by the Sharetribe team. We may have a look in the future, but we don't have any timeline to share about it.

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