-
Notifications
You must be signed in to change notification settings - Fork 60
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
Searchable blocks that make up a page? #25
Comments
Was just thinking along the same lines when I found this thread, would be a great addition. Suppose it's a matter of working out which page/pages the block is on to link to from the search results. |
Would be great. Only problem could be the relationship between page-block isn't always a standard relationship ie. block could be applied to a page via a blockset, that is applied to the page through user defined rules. |
Elemental copies all the blocks contents in the Content of the page. we could instead add an hidden field to the page called SearchableBlockContent, retrieve all the text on all blocks and save it there, then tell the FullTextSearchable module to also index the SearchableBlockContent. Each block could decide to implement or not the SearchableBlock interface and what text to release (for example, Image galleries blocks could release alt tags of the images). |
I've done what's being mentioned here before and had it working ok. Especially if you're using something like Solr search you can collate all the block text into a field and push this to solr. |
Spotted this new module @sheadawson https://github.com/firebrandhq/silverstripe-searchable-dataobjects
Maybe it could be combined with your blocks module to make an uber block content based searchable page?
The text was updated successfully, but these errors were encountered: