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

[7.x] Allow search_indexes on resources #524

Conversation

ryanmitchell
Copy link
Contributor

This PR adds the ability to specify a search_index on resources to use a Statamic search index in both the CP field type and the listing view.

Closes #501

Copy link
Member

@duncanmcclean duncanmcclean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for this pull request!

I've added a test to cover the new search_index setting in both of the fieldtype's. I also added Runway::discoverResources() to your test, otherwise the search_index setting wouldn't actually end up being set on the resource.

However, it seems like all three of these tests are failing. Would you be able to take a look when you get a chance?

@duncanmcclean duncanmcclean merged commit 7a41d1e into statamic-rad-pack:7.x Jun 17, 2024
6 checks passed
Copy link

Released as part of v7.5.0.

@ryanmitchell ryanmitchell deleted the feature/search-index-on-resources branch September 4, 2024 14:11
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.

2 participants