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

Use getSearchReference method instead of reference #18

Merged
merged 2 commits into from
Oct 16, 2023
Merged

Use getSearchReference method instead of reference #18

merged 2 commits into from
Oct 16, 2023

Conversation

duncanmcclean
Copy link
Member

This pull replace replaces the usage of the reference with getSearchReference in the delete method.

This change reflects changes made to the Core Algolia driver as part of the search overhaul made a few major updates ago:

Before:

https://github.com/statamic/cms/blame/07fe80daea2096538b419d58cd1744ebbd980c0b/src/Search/Algolia/Index.php#L47

After:

https://github.com/statamic/cms/blame/6ec5a2f107a8834e6d225f2ba44c10c283c058b7/src/Search/Algolia/Index.php#L47

I'll admit I haven't tested these changes locally but I believe it should resolve the issue from someone using one of my addons, after source diving.

Fixes statamic-rad-pack/runway#345.

@martink635
Copy link

This fixes the issue for me. Without this I am not able to save the resource.

@tao
Copy link
Contributor

tao commented Oct 11, 2023

@duncanmcclean I can't really maintain this anymore because my company moved from MeiliSearch to Elastic. Would you or Statamic like to take it over and help maintain it?

@electroflame
Copy link

@tao It might be worth opening up an issue that you're looking for a maintainer (maybe update the README, too?).

I, for one, hope someone can keep this running (even if it's not @duncanmcclean or the Statamic team), as good search integration is something Statamic sorely needs (and this works great!). It doesn't even have to be expanded, just kept functional.

PHP's not my strong suit, otherwise I'd offer.

@duncanmcclean
Copy link
Member Author

Just as an update: we're planning on moving this add on into the Rad Pack this week.

@duncanmcclean duncanmcclean merged commit 268c212 into statamic-rad-pack:main Oct 16, 2023
1 check passed
@duncanmcclean duncanmcclean deleted the patch-1 branch October 16, 2023 14:35
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

Successfully merging this pull request may close these issues.

Can't save resource when Statamic search is enabled
4 participants