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

Rearrange page search #57

Merged
merged 2 commits into from
Oct 17, 2024
Merged

Conversation

sascha-karnatz
Copy link
Contributor

Previously the page and the ingredients (and in previous versions also essences) were stored as separate PgSearch::Document entries. On search these document were combined to a single document to make it usable in the search itself. These mechanic made it pretty difficult to extend the search with other models. In newer versions of Alchemy the page is only available after a new page version is released and these mechanic is used to create a single PgSearch::Document with the content of the page and all supported ingredients. This change makes the whole search and the index creation less complex.

@tvdeyen tvdeyen added this to the v6.0 milestone Oct 9, 2024
@sascha-karnatz sascha-karnatz force-pushed the rearrange-page-search branch 3 times, most recently from 9a1a408 to fdbc9d5 Compare October 10, 2024 13:54
@sascha-karnatz sascha-karnatz force-pushed the rearrange-page-search branch 3 times, most recently from 905f303 to 57d3108 Compare October 11, 2024 09:21
@sascha-karnatz sascha-karnatz force-pushed the rearrange-page-search branch 2 times, most recently from 7146218 to 35a9c75 Compare October 14, 2024 13:44
Previously the page and the ingredients (and in previous versions also essences) were stored as separate PgSearch::Document entries. On search these document were combined to a single document to make it usable in the search itself. These mechanic made it pretty difficult to extend the search with other models. In newer versions of Alchemy the page is only available after a new page version is released and these mechanic is used to create a single PgSearch::Document with the content of the page and all supported ingredients. This change makes the whole search and the index creation less complex.

The Alchemy module now has searchable_ingredients attribute which makes it easier to change the indexing from the outside. Furthermore a few extensions are now in a Search namespace, because they are not related to the PgSearch gem.
Add headline to the list of supported ingredients. It contains valuable information and should be in the search index.
@tvdeyen tvdeyen merged commit de265fe into AlchemyCMS:main Oct 17, 2024
1 check passed
@sascha-karnatz sascha-karnatz deleted the rearrange-page-search branch October 28, 2024 09:57
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